Hi,
After getting my mail nicely rejected ;) I tried the nice advice of using the TLEN frame. However very few (actually in my collection, none) mp3 files have such a frame.
Would anybody have some code snippet that I could use to get the nominative bitrate of a file, by using the id3_tag ?
Cheers
On Sat, 2002-01-26 at 05:06, mad-dev-admin@lists.mars.org wrote: <snip>
To answer your question, "bitrate detection" would not be an appropriate feature to add to libid3tag. However, you may be able to approximate the average bitrate using the file size and the TLEN frame from the ID3 tag.
Calculating the actual bitrate requires decoding MPEG audio frames, which is done by libmad (not libid3tag.)"