Understanding Audio Formats & Codecs

  • Thread starter Thread starter taupune
  • Start date Start date
  • Tags Tags
    Audio Format
Click For Summary
SUMMARY

The discussion clarifies the distinction between audio formats and codecs, emphasizing that a codec encodes and decodes raw audio data while the audio format serves as a container for this data, including essential metadata like sampling rate and data length. For instance, formats like MP3 and WAV store the same digital value (e.g., 1000 1111) but may contain different metadata and chunking structures. The separation of codec and format allows for more flexibility in audio processing. Additionally, hardware codecs are designed to play specific formats, such as MP3 codec chips that exclusively handle MP3 file streams.

PREREQUISITES
  • Understanding of audio codecs and their functions
  • Familiarity with audio file formats like MP3 and WAV
  • Knowledge of digital audio concepts such as sampling rate and bit depth
  • Basic comprehension of data encoding and decoding processes
NEXT STEPS
  • Research the differences between lossy and lossless audio codecs
  • Explore the structure of audio file formats, focusing on MP3 and WAV
  • Learn about audio metadata and its importance in file formats
  • Investigate hardware audio codecs and their specific format compatibilities
USEFUL FOR

Audio engineers, software developers working with multimedia applications, and anyone interested in the technical aspects of audio processing and file management.

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?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
17
Views
6K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
19
Views
4K
Replies
1
Views
3K