【问题标题】:ffmpeg append video with different dimensionsffmpeg 附加不同尺寸的视频
【发布时间】:2020-08-04 11:41:24
【问题描述】:

我正在使用以下方法对视频进行裁剪和添加字幕:

ffmpeg -i inputfile.mov -lavfi "crop=720:720:280:360,subtitles=subs.srt:force_style='OutlineColour=&H100000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=20,Fontsize=18'" -crf 1 -c:a copy output.mov

我有另一个名为 credits.mp4 的视频,其尺寸与 output.mov 相同(裁剪后)。我可以在上述过程中执行此操作,还是之后必须使用 concat 之类的东西?

在 Mac 上的终端中使用 bash

【问题讨论】:

    标签: bash macos ffmpeg terminal concat


    【解决方案1】:

    使用concat filter

    ffmpeg -i inputfile.mov -i credits.mp4 -lavfi "[0]crop=720:720:280:360,subtitles=subs.srt:force_style='OutlineColour=&H100000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=20,Fontsize=18',setpts=PTS-STARTPTS[v0];[1]setpts=PTS-STARTPTS[v1];[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" output.mp4
    

    由于没有提供有关您输入的信息,我做了一些假设:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-07-17
      • 1970-01-01
      • 2011-05-06
      • 2021-10-28
      • 2020-12-26
      • 2021-06-30
      • 1970-01-01
      相关资源
      最近更新 更多