mutagen icon indicating copy to clipboard operation
mutagen copied to clipboard

Strange bitrate for one mp3 file

Open tyctor opened this issue 4 years ago • 1 comments

hi i am using mutagen for tagging and also validating mp3 files uploaded to django admin in our community internet radio (checking bitrate, channels and sample rate) everything works fine, but yesterday i got one jingle, where MP3.info.bitrate return bitrate 319999 instead of 320000 i tryied to check jingle with exiftool binary, and it reports correct value

Audio Bitrate                   : 320 kbps

i am not able to find out why this happens so adding jingle mp3, if somebody want to try to debug this

https://user-images.githubusercontent.com/44854182/141194443-0326bd18-91ba-4327-9dca-3a82df77a869.mp4

tyctor avatar Nov 10 '21 21:11 tyctor

The file has a constant bitrate set to 320 kbps. But there is also a Xing frame, and information from there (audio data size * sample rates / sampes) calculates to 319999.07587548636 kbps.

Not sure how to handle that. Maybe the values from Xing header should not trump other values in CBR mode.

phw avatar Feb 14 '23 13:02 phw