How to concatenate two MP4 files using FFmpeg?

后端 未结 22 3039
遇见更好的自我
遇见更好的自我 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:17

    ffmpeg \
      -i input_1.mp4 \
      -i input_2.mp4 \
      -filter_complex '[0:v]pad=iw*2:ih[int];[int][1:v]overlay=W/2:0[vid]' \
      -map [vid] \
      -c:v libx264 \
      -crf 23 \
      -preset veryfast \
      output.mp4
    

提交回复
热议问题