Audio and video sync problem

Chris Tapp opensource at keylevel.com
Wed Jul 17 14:03:08 PDT 2013


Hi Tim,

On 17 Jul 2013, at 21:35, Tim-Philipp Müller wrote:

> 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.

That's what I thought after looking at the .dot, but I can't get the caps to work without them.

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

That's just my typing ;-) Sorry about that!

> 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).

It was worth a try, but unfortunately no difference.

> Cheers
> -Tim
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

Chris Tapp

opensource at keylevel.com
www.keylevel.com





More information about the gstreamer-devel mailing list