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?
 
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top