A
Anonymous
Guest
storsvante:
So how do you store the data and what are the challenges?
Formats
There are many audio file formats, generally in 3 categories: uncompressed (eg WAV or raw PCM), compressed (eg FLAC or Apple Lossless), and formats with lossy compression (eg MP3, AAC, Vorbis). The format describes how the audio is organised in the audio file.
The most 'vanilla' format is raw PCM or WAV, which is not much more than the PCM data, sample by sample, organised in a long sequence.
FLAC is getting a lot of attention right now. It uses linear prediction to convert the audio samples to a series of small, uncorrelated numbers which are stored efficiently, and usually reduces the overall size by about 50% (compared to raw PCM data). The encoding is completely reversible, ie the data can be decompressed into an identical copy to the original, hence the term lossless.
changing emphasis slightly I think this is worth reiterating. I've seen people say that there are listenable differences between WAV, Apple lossless and FLAC. I believe this to be impossible and any differences down to placebo. uncompressed to PCM these formats are identical in terms of the data they present. A application can be compressed as a zip file, this is also lossless compression. A play of a CD and a play of a FLAC might produce differences due to variations in how the CDP interprets the disk each time.
So how do you store the data and what are the challenges?
Formats
There are many audio file formats, generally in 3 categories: uncompressed (eg WAV or raw PCM), compressed (eg FLAC or Apple Lossless), and formats with lossy compression (eg MP3, AAC, Vorbis). The format describes how the audio is organised in the audio file.
The most 'vanilla' format is raw PCM or WAV, which is not much more than the PCM data, sample by sample, organised in a long sequence.
FLAC is getting a lot of attention right now. It uses linear prediction to convert the audio samples to a series of small, uncorrelated numbers which are stored efficiently, and usually reduces the overall size by about 50% (compared to raw PCM data). The encoding is completely reversible, ie the data can be decompressed into an identical copy to the original, hence the term lossless.
changing emphasis slightly I think this is worth reiterating. I've seen people say that there are listenable differences between WAV, Apple lossless and FLAC. I believe this to be impossible and any differences down to placebo. uncompressed to PCM these formats are identical in terms of the data they present. A application can be compressed as a zip file, this is also lossless compression. A play of a CD and a play of a FLAC might produce differences due to variations in how the CDP interprets the disk each time.