Head-Fi.org › Forums › Equipment Forums › Dedicated Source Components › How audio is stored in MPG files ?
New Posts  All Forums:Forum Nav:

How audio is stored in MPG files ?

post #1 of 2
Thread Starter 
Does anyone know how mpeg audio (e.g. layer 2 streams) is stored in mpeg1 video files ?
I wanted to write a program that can extract audio from mpg files and have got some problems with it ... I found out that audio frames are usually stored in groups of 9-10 or 14-15 (depending on bitrate ?). And the last frame in the group is decoded as noise (when extracted to file) by Lame --decode (or standart windows decoder) most of the time ! So my question is: what is wrong with those "last" audio frames ?
post #2 of 2
Check out
http://www.mpeg.org/MPEG/mp3.html
and
http://www.mpeg.org/MPEG/aac.html

Good luck!!
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Dedicated Source Components
Head-Fi.org › Forums › Equipment Forums › Dedicated Source Components › How audio is stored in MPG files ?