Mp3 audio frame length calculated incorrectly?

Vitali Lovich vlovich at gmail.com
Fri Nov 14 04:31:16 CET 2008


It seems as if the mp3 frame length is calculated incorrectly (off by about
a factor of two).  All the equations I've seen online (and I've verified
that they work on the files I'm testing) use:

144000 * bitrate / sampleRate + ispadded

whereas TagLib::MPEG::Header uses

72000 * bitrate / sampleRate + ispadded

Am I missing something, or is this incorrect?  If it's a mono/stereo issue,
shouldn't the header account for this or is the user supposed to multiply by
2 & subtract 1 if it's padded?

Thanks,
Vitali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20081113/960b4b89/attachment.htm 


More information about the taglib-devel mailing list