Combine MOV video files

I'm on Arch Linux 4.13.10 and I'd like to combine multiple .MOV files shot with a Canon EOS camera.

I tried to convert the files to transport streams (.ts files) using FFmpeg, as shown here, but sound was missing from the resulting file.

I'd prefer if the resulting file would be .mp4, but this is not strictly required.

How do I do this?


Solution 1:

I succeeded merging the files using FFmpeg's demuxing feature. For .mp4 conversion, I had to explicitly convert the audio stream to avoid this error:

Could not find tag for codec pcm_s16le in stream #1, codec not currently supported in container

This is the command combining the files to merged.mp4:

ffmpeg -safe 0 -f concat -i files_to_combine -vcodec copy -acodec aac -strict -2 -b:a 384k merged.mp4

If the output file can be also a .MOV file, the command is:

ffmpeg -safe 0 -f concat -i files_to_combine -vcodec copy -acodec copy merged.MOV

Here's the content of the text file files_to_combine:

file ./first_file.MOV
file ./second_file.MOV