How to concatenate two MP4 files using FFmpeg?

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

    The concat protocol described here; https://trac.ffmpeg.org/wiki/Concatenate#protocol

    When implemented using named pipes to avoid intermediate files

    Is very fast (read: instant), has no frames dropped, and works well.

    Remember to delete the named pipe files and remember to check if the video is H264 and AAC which you can do with just ffmpeg -i filename.mp4 (check for h264 and aac mentions)

提交回复
热议问题