[gst-devel] Audio and video synchronization question

Ronald S. Bultje rbultje at ronald.bitfreak.net
Fri Sep 3 05:54:11 CEST 2004

Hi Bob,

On Thu, 2004-09-02 at 22:02, Robert Stewart wrote:
> I notice that during playback the audio and video are very much
> out of sync with each other.  The video stream plays back at a
> greatly accelerated pace.
> How do I synchronize the streams?  How do I control the rate of
> playback?

Synchronization is automatic, but that timestamps on your buffer should
be correct for that. Set buffers using GST_BUFFER_TIMESTAMP (buf) =
time_in_nanoseconds; in your loop function.


Ronald S. Bultje <rbultje at ronald.bitfreak.net>

More information about the gstreamer-devel mailing list