After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321857 - [mp3parse] needs to post DURATION message for VBR mp3s
[mp3parse] needs to post DURATION message for VBR mp3s
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
git master
Other Linux
: Normal normal
: 0.10.8
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-19 11:03 UTC by Tim-Philipp Müller
Modified: 2008-05-05 08:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simple patch (1.41 KB, patch)
2006-11-21 13:01 UTC, Tim-Philipp Müller
none Details | Review

Description Tim-Philipp Müller 2005-11-19 11:03:07 UTC
Duration queries are cached. This is not desirable when we have VBR mp3s where
the first query might have been very inaccurate. mad needs to post a DURATION
message on the bus to clear the duration query cache and/or inform the
application that it should query again for a better value in case of VBRs.
Comment 1 Артём Попов 2006-04-28 01:07:54 UTC
Hmm, but VBR mp3s commonly have the "duration" system tag. It is parsed very early and all applications use this tag for finding out mp3 duration, because quering is not exact at least until a large segment of data have been played back.
Comment 2 Tim-Philipp Müller 2006-11-21 13:01:33 UTC
Created attachment 76968 [details] [review]
simple patch

Simple patch; might cause a bit too much flooding, not sure. Haven't tested it extensively.
Comment 3 Sebastian Dröge (slomo) 2008-05-05 08:43:26 UTC
I've added something like this to mp3parse now. Implementing it in mad too seems unnecessary as with recently new gst-plugins-ugly mp3parse will always be autoplugged before mad and used for duration queries and similar things.

2008-05-05  Sebastian Dröge  <slomo@circular-chaos.org>

        * gst/mpegaudioparse/gstmpegaudioparse.c:
        (gst_mp3parse_emit_frame):
        Send a new duration message if the average bitrate changed and
        we don't know the duration from the Xing or VBRI header.
        Fixes bug #321857.