Audio and video sync problem

Tim-Philipp Müller t.i.m at zen.co.uk
Wed Jul 17 13:35:01 PDT 2013


On Wed, 2013-07-17 at 20:20 +0100, Chris Tapp wrote:

Hi Chris,

> 
> I am using a pipeline of the form:
> 
>    playbin2 uri=<some-video> video-sink="ffmpegcolorspace ! videoscale ! video/x-raw-rgb width=300 height=200 ! fakesink sync=1" audio-sink="autoaudiosink"

1) I don't think you need the ffmpegcolorspace ! videoscale, playbin2
should plug those already. But of course the don't hurt.

2) There should be commas before width=300 and height=200

3) try sync=true instead of sync=1


> My aim is to allow the audio to run live and to use the 'frame' property of playbin to grab video images which I then render manually.
> 
> This basically works ok, but on one system I'm getting poor sync
> between audio and video where the video lags the audio (and the lag
> gets longer as the clip plays). This only seems to happen for some
> media types - e.g. media.w3.org/2010/05/sintel/trailer.webm.

This sounds like sync=true might not have been set correctly, hence my
suggestion in 3) (also, the .dot file doesn't show that it's set).

Cheers
 -Tim



More information about the gstreamer-devel mailing list