[FFmpeg-user] A/V synchronization question

Elżbieta Jakubska elzbieta.jakubska at gmail.com
Thu Aug 21 16:05:35 CEST 2014


Hi,

I have a small problem with A/V synchronization when saving live tv_stream
to avi. I would need to have very good synchronization, or in the worst
case - video before audio, but I have video a little bit after audio (video
goes about half of the video frame after audio, what makes that I can see
previous video frame wile the audio for next one is playing). I use the
following command for dumping the stream to file:

 ffmpeg -y -probesize 6000000 -threads 1 -i http://url -vf scale=640:360
-b:v 800k -acodec libmp3lame -b:a 128k -ac 1 -af aresample=async=1000 -ss 0
-threads 1 -t 120 -f avi test.avi


Please, could you help me to synchronize this? Is it maybe a way to push
video one frame forward? Or maybe using -vsync option would be useful? I
was already trying also with vsync option, but I haven't got good results.

Thank you for your answers,

Ela


More information about the ffmpeg-user mailing list