我正在尝试使用concat
将一些视频ffmpeg
合并为一个视频。这是我的ffmpeg cmd:
ffmpeg -i input1.avi -i input2.mkv -filter_complex [0:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[v0];[v0][0:a][1:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[v1];[v1][1:a]concat=n=2:v=1:a=1[outv][outa] -map [outv] -map [outa] -vcodec libx264 -crf 27 -preset ultrafast out.mp4
但出现错误:
[AVFilterGraph @ 0xd177f500] Too many inputs specified for the "scale" filter.
E AVLOG : Error initializing complex filters.
E AVLOG : Invalid argument
E AVLOG : At least one output file must be specified
I AVLOG : Stream mapping:
I AVLOG : Press [q] to stop, [?] for help
I AVLOG : No more output streams to write to, finishing.
E AVLOG :
F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 17256 (IntentService[v)
有任何想法吗?
非常感谢。