[gst-devel] A/V sync issues

Pavan Kumar Patale pavanpatale at hotmail.com
Mon Dec 11 19:03:02 CET 2006


Hi,

How does the setting sync property of sink elements effect the 
recording/playback ?

This query came up when i built the below pipeline and observed that there 
is huge different in the playback.

When the below pipeline is exectued  the observations are:-

i. Playback was not smooth
ii. Video frames are getting dropped and A/V sync was happening only at few 
places.

gst-launch-0.10 avimux name=mux ! queue ! avidemux name=demux demux.video_00 
! queue ! video_decoder ! ffmpegcolorspace ! xvimagesink demux.audio_00 ! 
queue ! audio_decoder ! audio_sink v4l2src ! ffmpegcolorspace ! 
video/x-raw-yuv, width=176, height=144, framerate=15 ! videorate ! 
video_encoder ! mux. audio_source ! queue ! audio_encoder ! mux.


If sync property of xvimagesink is set to false

i. Playback is smooth
ii. No loss of audio frames but audio always lags by 2 seconds.

gst-launch-0.10 avimux name=mux ! queue ! avidemux name=demux demux.video_00 
! queue ! video_decoder ! ffmpegcolorspace ! xvimagesink sync=false 
demux.audio_00 ! queue ! audio_decoder ! audio_sink v4l2src ! 
ffmpegcolorspace ! video/x-raw-yuv, width=176, height=144, framerate=15 ! 
videorate ! video_encoder ! mux. audio_source ! queue ! audio_encoder ! mux.


Can someone pls throw light on this issue.

Thanks,
Pavan.

_________________________________________________________________
Spice up your IM conversations. New, colorful and animated emoticons. Get 
chatting! http://server1.msn.co.in/SP05/emoticons/





More information about the gstreamer-devel mailing list