Understanding Audio Formats & Codecs

  • Thread starter Thread starter taupune
  • Start date Start date
  • Tags Tags
    Audio Format
AI Thread Summary
Audio formats and codecs serve distinct functions in audio processing. A codec encodes and decodes raw audio data, while an audio format specifies how that data is stored, including essential information like sampling rate and data length. Different audio formats, such as MP3 or WAV, do not alter the underlying binary data but organize it differently for storage and playback. File formats also allow for efficient navigation through audio data by storing it in chunks, which raw data streams cannot do. Hardware codecs typically support specific formats, meaning an MP3 codec chip can only decode MP3 file streams.
taupune
Messages
25
Reaction score
0
Can someone explain the difference between audio format and codecs?

wikipedia says this:
A codec performs the encoding and decoding of the raw audio data while the data itself is stored in a file with a specific audio file format.

I don't get this.
lets says 1000 1111 is the digital value which when passing through the codec is translated as "HELLO".

what would different formats turn this value into? Like MP3 or WAV , etc. If they modify this binary value and that value goes through the same codec than it would something else other than HELLO , right?
 
Engineering news on Phys.org
No. File format is for storing both 1000 1111 and all other necessary information, like sampling rate, data length, number of bits and so on. You first pass these information to codec so that it knows what to do with raw data that follows. File format may also store data split in chunks that allows fast scrolling forward and back, you won't be able t do that with just a raw data stream, as you have to know where it can be cut.

In general it is not a problem to design a codec that will code its information directly into the data, but solution in which these things are separated in much more flexible.
 
Thanks Borek, very clear answer indeed.
One more question. The hardware codecs would play only specific format woyldnt they?
For example mp3 codec chips. They can play the mp3 file stream, just that right?
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top