[gst-devel] Audio/video sync problems

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Apr 29 17:27:48 CEST 2010


On Thu, 2010-04-29 at 12:14 -0300, Daniel Drake wrote:

> But in the end, I solved the problem and obtained the best sync simply
> by sticking with the 2-pass technique, but adding a queue buffer in
> the audio recording path, after alsasrc. It seems like the queue is
> able to smooth out the overruns/underruns that occur at the start of
> recording, which was throwing off the sync for the whole recording
> session.
> 
> I think this indicates a bug somewhere in gstreamer or alsa -- if the
> audio recording can't keep up for whatever reason, I feel like it
> should resync later on, but that's not working well.

A queue between capture source and encoder is not a bad idea in any
case, but an audiorate element before the audio encoder might also help
smooth over any gaps in the input.

 Cheers
  -Tim





More information about the gstreamer-devel mailing list