7

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?

13

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
1
  • From the single MOV, you can use mp4box to get a MP4. mp4box -add merged.mov -new merged.mp4
    – Gyan
    Oct 4 '17 at 19:42
0
find *.MOV | sed 's:\ :\\\ :g'| sed 's/^/file /' > fl.txt; ffmpeg -f concat -i fl.txt -c copy output.mp4; rm fl.txt
2
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review Jul 24 at 2:49
  • No, it does many .MOV to single .MP4 conversion Jul 25 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.