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 631993 - [flacparse] imperfect timestamping
[flacparse] imperfect timestamping
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.21
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-12 17:03 UTC by Tim-Philipp Müller
Modified: 2010-10-13 09:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tim-Philipp Müller 2010-10-12 17:03:54 UTC
gst-launch-0.10 http://media.xiph.org/BBB/BigBuckBunny-stereo.flac ! flacparse ! identity check-imperfect-timestamp=true ! fakesink -m
...
Got message #100 from element "identity0" (element): imperfect-timestamp, prev-timestamp=(guint64)6058666666, prev-duration=(guint64)85333333, prev-offset=(guint64)6143999999, prev-offset-end=(guint64)294912, cur-timestamp=(guint64)6144000000, cur-duration=(guint64)85333333, cur-offset=(guint64)6229333333, cur-offset-end=(guint64)299008;
Got message #101 from element "identity0" (element): imperfect-timestamp, prev-timestamp=(guint64)6314666666, prev-duration=(guint64)85333333, prev-offset=(guint64)6399999999, prev-offset-end=(guint64)307200, cur-timestamp=(guint64)6400000000, cur-duration=(guint64)85333333, cur-offset=(guint64)6485333333, cur-offset-end=(guint64)311296;
Got message #102 from element "identity0" (element): imperfect-timestamp, prev-timestamp=(guint64)6570666666, prev-duration=(guint64)85333333, prev-offset=(guint64)6655999999, prev-offset-end=(guint64)319488, cur-timestamp=(guint64)6656000000, cur-duration=(guint64)85333333, cur-offset=(guint64)6741333333, cur-offset-end=(guint64)323584;
...


This messes up transcoding to vorbis big time, because vorbisenc resets the encoder whenever there's a discontinuity that's too large, which causes nasty crackles/pops when played back.
Comment 1 Mark Nauwelaerts 2010-10-13 09:08:02 UTC
IMHO, vorbisenc is far too picky, but following commit is in any case The Way To Go:

commit 697419b7556f8d5f59e1ea6877885f1cd1a1fdfe
Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Date:   Wed Oct 13 11:00:01 2010 +0200

    flacparse: tweak setting buffer metadata; avoid timestamp jitter
    
    Fixes #631993.