VBR support in MAD

Erik Jälevik <[email protected]>
Newsgroups gmane.comp.audio.mad.devel
Message-ID <00e101c4168c$46f7bd50$a59d0050@Komputer>
Is there any support for VBR headers in MAD?

I'm trying to calculate the length of files and for CBR
fileSize/(header.bitrate/8) works fine. For VBR, this obviously gives an
incorrect answer.

If reading VBR headers is fiddly, I was also thinking of checking the bitrate in
say 10 or so frames at the start, take their average bit rate and use that in
the calculation above. Would that be even remotely accurate for VBR?

Thanks,
Erik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.