GNOME Bugzilla – Bug 623409
mp3 wrong duration decreasing to the correct one during playback
Last modified: 2010-07-03 14:51:44 UTC
Hello I have a mp3 file which is actually 3:06, but when I start it in any gstreamer players (totem, banshee) the detected duration is much higher (for example in totem-video-indexer I get 25:26) While playing, the duration progressively decreases to the correct value (reached only almost at the end of the song). example mp3: http://dl.dropbox.com/u/989015/example.mp3
That's expected and can't be easily fixed for VBR MP3 files without a valid VBRI or XING header. Problem is, that you can't know the duration unless you look at the complete file.
Part of the problem is lack of API GStreamer side. We don't provide a way for apps to say that they care about duration accuracy, or for apps to query the reliability of the duration returned. Apps don't even know if the duration is an estimate or based on an index or stream-embedded timestamps. This is something we're well aware of though, and there are bugs open for this elsewhere, see e.g. bug 564749 comment 23.