[gstreamer-bugs] [Bug 419351] [avi/a52dec] AV synchronization problems

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri May 9 09:37:41 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=419351

  GStreamer | gst-plugins-base | Ver: 0.10.x

Wim Taymans changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|gst-plugins-good            |gst-plugins-base
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |0.10.20




------- Comment #13 from Wim Taymans  2008-05-09 16:37 UTC -------
very subtle problem caused by rounding errors in the conversion from number of
samples to nanoseconds. The rounding errors accumulated and caused a slight
drift.
Should be fixed now with this patch:

        * gst-libs/gst/audio/gstaudiosink.c: (gst_audioringbuffer_acquire):
        Choose to allocate one less segment but require one additional segment
        as latency.

        * gst-libs/gst/audio/gstaudiosrc.c: (gst_audioringbuffer_acquire):
        No need to increment the number of segments in the source.

        * gst-libs/gst/audio/gstbaseaudiosink.c:
        (gst_base_audio_sink_get_time), (clock_convert_external),
        (gst_base_audio_sink_resample_slaving),
        (gst_base_audio_sink_skew_slaving),
        (gst_base_audio_sink_none_slaving), (gst_base_audio_sink_render),
        (gst_base_audio_sink_async_play):
        Remove adding latency when returning the internal time while
subtracting
        it again when we use the value a little later.
        When calculating the end timestamp, we are making a rounding error
        with the current algorithm. Ensure that we don't accumulate these
        rounding errors when aligning samples by not resampling at all if we
        don't need to. Fixes #
        Make the initial calibration of the clock slaving a little more
        predictable and accurate. Also handle the case where we don't do
        clock slaving.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=419351.




More information about the Gstreamer-bugs mailing list