2825 explained code solutions for 75 technologies

ffmpegHow to delay (sync with video) audio channel in video file

We can use audio delay to fix unsynced audio/video channels:

ffmpeg -i in.mp4 -itsoffset 5 -i in.mp4 -map 1:v -map 0:a -c copy out.mp4ctrl + c

delays input stream by specified number of seconds


delay first input stream (audio channel) by 5 seconds, use negative value to trim instead of delay

-i in.mp4

input video file (first - for audio, and second - for video)


map input channels to output


use second input (index 1) for video


use first input (index 0) for audio

-c copy

do not encode/convert, only copy


resulting video file