Hello! There is a video file video1.mp4 that is 11 minutes long and there is a video file video2.avi that is 45 seconds long ... tell me how to mix ffmpeg so that the video2.avi file overlaps the video1.mp4 file in 5 minutes (the fps and resolutions of both files are the same ) output mp4 file

    1 answer 1

    I will answer:

    ffmpeg -i video1.mp4 -i video2.avi -filter_complex "[0:v][1:v] overlay=1:1:enable='between(t,300,345)'" output.mp4