How to concatenate 2 (or more) mp4 files with ffmpeg

published Sep 20, 2019 01:12   by admin ( last modified Sep 20, 2019 01:12 )

On Linux, put the file names with paths and prefix each with "file" in a file called e.g. files.txt:

file ./foo.mp4

file /bar.mp4

Then

ffmpeg -safe 0 -f concat -i files.txt -c copy concatenated.mp4