[FFmpeg-user] Captured video is not smooth (Solved but Lip Sync Occur)

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Feb 2 11:53:47 CET 2013


mohamed hefny <m.hefny <at> nilesat.com.eg> writes:

> Thank you very much for your help. Motion is smooth now after 
> using the following command (Removing +ilme+ildct) and 
> Replacing (-Top 1 with -vf yadif=0:1):
> 
> ffmpeg -f dshow -i video="Decklink Video Capture (2)":
> audio="Decklink Audio Capture (2)" -y -s 720x576
> -r 25 -aspect "4:3" -pix_fmt yuv420p -flags +cgop 
> -vf yadif=0:1 -sc_threshold 1000000000 -g 12 -bf 2
> -flags2 +sgop -vcodec mpeg2video -b:v 2800K 
> -maxrate 2800K -minrate 2800K -bufsize 2000k -crf 23
> -acodec mp2 -ab 128K -metadata service_provider="MHEFNY" 
> "c:\\outx.m2t" 
> 
> But the audio is out of sync by about 0.3 Sec

Do you only see the A/V desync with your (complicated) 
command line or also with the following:
$ ffmpeg -f dshow -i video=...:audio=... -qscale 2 out.avi
$ ffmpeg -f dshow -i video=...:audio=... -qscale 2 -strict -2 out.mov
$ ffmpeg -f dshow -i video=...:audio=... -qscale 2 -mbd 2 out.mpg

Does ffplay -f dshow work? If yes, does it play the 
capture in sync or out-of-sync like ffmpeg?

Please do not top-post here, Carl Eugen



More information about the ffmpeg-user mailing list