[FFmpeg-user] A/V synchronization question

Anatol anatol2002 at gmail.com
Thu Aug 21 20:38:47 CEST 2014

Try "-async 1" on input (place it BEFORE th "-i")

On Thu, Aug 21, 2014 at 5:05 PM, Elżbieta Jakubska <
elzbieta.jakubska at gmail.com> wrote:

> 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
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

More information about the ffmpeg-user mailing list