Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a "sample" in MP3?

Tags:

audio

mp3

It is said, that MP3 frame contains 1152 samples. What is a "sample" then? A pair of values for right AND left channel? Or an individual value fro right OR left channel?

like image 631
Suzan Cioc Avatar asked Jun 28 '12 21:06

Suzan Cioc


People also ask

What is a sample audio file?

Audio sampling is the process of transforming a musical source into a digital file. Digital audio recording does this by taking samples of the audio source along the soundwaves at regular intervals.

What is the sample rate for MP3?

mp3 Basic Tips Use either 22.05kHz or 44.1kHz (44.1kHz is CD quality and recommended) sample rate. Other sample rates will playback in some players incorrectly, typically making you sound like one of the Chipmunks.

Does sample rate matter in MP3?

MP3 is a digital sound format, and digital waves are represented as square waves, like each step in a staircase. The higher the sampling rate, the more steps used to approximate the curve, and the closer the digital signal sounds to the original sine wave.

What sample rate is 320 kbps?

A Sample Rate of 44100 Hz and a Bit Depth of 16/Bit Rate of about 320 kbps is known as the Red Book standard for audio CDs.


1 Answers

The language that is used can get a little bit confusing. The just of it is that each frame will have 1152 (or 384, or 576 depending on MPEG version and layer) per audio channel. How that data actually gets stored is more complicated than a single value for each channel because of compression.

If you want to learn more I would recommend http://blog.bjrn.se/2008/10/lets-build-mp3-decoder.html for a nice, detailed blog that builds up the reader's understanding of the MP3 format for the sake of building a decoder.

You can also see http://wiki.hydrogenaudio.org/index.php?title=MP3#Polyphase_Filterbank_Formula for rather technical information. Link is anchored to a section that says specifically: "Audio is processed by frames of 1152 samples per audio channel" But the whole page describes aspects of the MP3 format.

like image 156
vossad01 Avatar answered Oct 08 '22 14:10

vossad01