Roger Binns
2005-01-16 03:33:02 UTC
If anyone out there is an MP3 guru, I would appreciate you taking
a look at the code in fileinfo for MP3Frame. The problem is
that it sometimes doesn't get the frame length right and
I can't figure out why. In particular use ffmpeg and output
using a sample rate of 22060 and a bitrate of 16 kbits/second.
There is already some disgusting code in there that looks one
back as it seems to always be wrong for ffmpeg output.
If you aren't an MP3 guru and want to have a look anyway (Hi Joe!)
then it is actually pretty simple. It consists of frames just
concatenated together. Sometimes there is a tag at the begining
or end, but the code already copes with that.
You can see the description of a frame at this link (scroll down)
http://mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm
Roger
a look at the code in fileinfo for MP3Frame. The problem is
that it sometimes doesn't get the frame length right and
I can't figure out why. In particular use ffmpeg and output
using a sample rate of 22060 and a bitrate of 16 kbits/second.
There is already some disgusting code in there that looks one
back as it seems to always be wrong for ffmpeg output.
If you aren't an MP3 guru and want to have a look anyway (Hi Joe!)
then it is actually pretty simple. It consists of frames just
concatenated together. Sometimes there is a tag at the begining
or end, but the code already copes with that.
You can see the description of a frame at this link (scroll down)
http://mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm
Roger