Leite-sama / lavfilters

Automatically exported from code.google.com/p/lavfilters
GNU General Public License v2.0
0 stars 0 forks source link

Incorrect MP3 Duration #482

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the issue you're having:
LAV reports the wrong duration for certain MP3 files (VBR). Sample linked 
below. On the sample, LAV incorrectly reports a duration of 5:48. If you try to 
seek past 5:25, you will see that it does not work - as the sample is only 5:25 
(using DC-BASS will show you that the song ends at 5:25 as well). Blight 
reported this to you a while back, but I see it isn't on your tracker, so I 
assume you had forgotten about it and should log it so you can fix it.

How can the issue be reproduced? Sample File?
As above.

What version of the product are you using? In which Player?
LAV v0.62.0, Zoom Player v9.3

Please provide any additional information below.
Sample (13.2MB): 
https://dl.dropboxusercontent.com/u/105555957/LAV%20Incorrect%20Duration.mp3

Original issue reported on code.google.com by forum.an...@gmail.com on 6 Sep 2014 at 12:22

GoogleCodeExporter commented 9 years ago
You can't determine the duration of VBR MP3 files, without reading the entire 
file, and thats not something thats likely to be done.

Original comment by h.lepp...@gmail.com on 6 Sep 2014 at 12:49

GoogleCodeExporter commented 9 years ago
In fact there was a small tweak that improved the duration for this particular 
file, since it doesn't seem to be truely VBR but 320 kbps rather consistenly.

However the general point stands, unless a VBR MP3 has a header that informs us 
about the duration (a VBRI tag), its all just guessing.

Original comment by h.lepp...@gmail.com on 6 Sep 2014 at 1:02