how to use ffmpeg to apply 1:1 SAR before concat on large complex filter

前端 未结 1 1662
情歌与酒
情歌与酒 2021-01-15 13:37

I use ffmpeg to concat videos in a fashion similar to this:

I ran into a weird error with my inputs

[Parsed_concat_0 @ 000000002a05bb80] Input link i         


        
相关标签:
1条回答
  • 2021-01-15 14:11

    Add the setsar filter:

    ffmpeg -i 0.mp4 -i 1.mp4 -i 2.mp4 -filter_complex "[0:v]setsar=1[v0];[v0][1:v][2:v]concat=n=3:v=1:a=0[v]" -map "[v]" out.mp4
    

    This example is assuming that 0.mp4 is the video with the wrong SAR.

    0 讨论(0)
提交回复
热议问题