ffmpeg: Combine/merge multiple mp4 videos not working, output only contains the first video

前端 未结 10 838
逝去的感伤
逝去的感伤 2020-12-22 22:48

Here is the command I am using to combine multiple videos:

ffmpeg -i 75_540_38HQ2.mp4 -i 76_70_20.mp4 -i 76_173_80.mp4 -i 81_186_35.mp4 -vcodec copy -acodec copy M         


        
10条回答
  •  隐瞒了意图╮
    2020-12-22 23:22

    From the ffmpeg man page "Examples" section:

    You can put many streams of the same type in the output:

    ffmpeg -i test1.avi -i test2.avi -vcodec copy -acodec copy \
           -vcodec copy -acodec copy test12.avi -newvideo -newaudio
    

    In addition to the first video and audio streams, the resulting output file test12.avi will contain the second video and the second audio stream found in the input streams list.

    The "-newvideo", "-newaudio" and "-newsubtitle" options have to be specified immediately after the name of the output file to which you want to add them.

    If you meant you want to concatenate them, the FAQ has instructions.

    I'm not sure if this question/answer belongs on SuperUser.

提交回复
热议问题