View Full Version : Retrieving the length of a file encoded with different codecs

02-27-2008, 05:33 AM
I would like to compare the length of a file A.wma that has been encoded to a file B.mp3 (for example). So, I will use the method called get_AudioProperties (C*) on those files.

But I am wondering : how reliable is this method ? What is the error margin, depending on the codec ?

02-27-2008, 07:18 AM
Depends on encoder used, mp3 can have varying lengths displayed if a VBR encoder is used and hte correct VBR header is not written to the file.

02-27-2008, 08:28 AM
And if all the files I want to compare are converted using dBpoweramp ?

02-27-2008, 10:37 AM
Should be almost sample accurate (our mp3 Lame encoding and decoding is), not 100% of WMA, I think it is gapless, but as said not 100% as there are different codecs within WMA.

02-27-2008, 02:29 PM
Thank you for all your answers :thumbup:
And sorry for my weird questions :)

03-05-2008, 09:17 AM
Another question comes to my mind : is it possible to get a more precise duration than in seconds with the "get_AudioProperties" method ?

03-05-2008, 03:21 PM
Yes run dBpoweramp configuration and set the reference options for for length to one of the more accurate ones.

03-06-2008, 05:01 AM
Thanks :thumbup: