Merge video files together with FFmpeg

First things first… We can merge video files together with ffmpeg. In ffmpeg terminology this is called concatenation. The general rule here is that the video files has to have the same codecs but different file containers are allowed. Make a list: For the concatenation to work we need to make a list of every file we want to include in the output. The list should have the following format:

file '001.mp4'
file '002.mp4'
file '003.mp4'

Remember that the order of the list will determine the order of the videos in the output. In windows command line:

ffmpeg -f concat -i list.txt -c copy output.mp4

In Directory Opus button:

Clipboard COPYNAMES=nopaths REGEXP "(.*)" "file '\1'" Clipboard PASTE AS list.txt ffmpeg.exe -f concat -i list.txt -c copy "{d!}merged-video.mp4" del list.txt