[FFmpeg-user] How to sync both audio and video to get correct output

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Sep 15 00:48:45 EEST 2018

2018-08-28 7:59 GMT+02:00, chetan goni <cgoni25 at gmail.com>:

> I am issuing below command to get correct output but when i played
> output.mkv , audio file quicker then video.it mean video is lagging behing
> *
> ".//ffmpeg -i H264-media-3.264  -i G711ULAW-media-1.wav  -c copy
> output.mkv"  *

For how long is the video supposed to play?

If the video input is not exactly constant frame rate (which would
not be unusual if the input is from a network camera), you cannot
get A/V sync with above command line.

Carl Eugen

More information about the ffmpeg-user mailing list