How to concatenate two MP4 files using FFmpeg?

后端 未结 22 3066
遇见更好的自我
遇见更好的自我 2020-11-22 02:32

I\'m trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I\'m converting the two files into .ts files and th

22条回答
  •  梦如初夏
    2020-11-22 03:11

    I found the pipe operator did not work for me when using option 3 to concat several MP4s on a Mac in the accepted answer.

    The following one-liner works on a Mac (High Sierra) to concatenate mp4s, with no intermediary file creation required.

    ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -c copy output.mp4

提交回复
热议问题