Rick Johnson rantingrickjohnson at
Wed Feb 27 23:02:59 CET 2013

On Wednesday, February 27, 2013 3:58:03 PM UTC-6, fabriceS wrote:
> Is anybody know how to get the lenght (in seconds) of a mp3 file ?

Well Mp3's have a huge header with tons of info stuffed inside. And i remember seeing a nice recipe on the Python cookbook (or maybe SO) for parsing the data. I am sure the duration will be in there somewhere. Hopefully the mp3 is encoded in CBR, if however it was VBR; who the heck knows what to believe!

More information about the Python-list mailing list