合并视频并添加叠加 ffmpeg

合并视频并添加叠加 ffmpeg

我正在尝试将简介和结尾视频合并到我的主要输入视频中,并在主输入视频中添加覆盖图像。我写了这个。

!ffmpeg -i "$introScreen" -i "$inputVideo" -i "$endScreen" \
-filter_complex "[1:v]overlay=W-w-5:H-h-5[v1]; [0:v][0:a][v1][1:a][2:v][2:a]concat=n=3:v=1:a=1[outv][outa]" \
-map "[outv]" -map "[outa]" "$outputFolder"/"$fileNameUncomp"

但这给了我一个错误......

[Parsed_concat_1 @ 0x5651239f8040] Input link in0:v0 parameters (size 640x360, SAR 1:1) do not match the corresponding output link in0:v0 parameters (1920x1080, SAR 1:1)
[Parsed_concat_1 @ 0x5651239f8040] Failed to configure output pad on Parsed_concat_1
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #2:1
Conversion failed!

相关内容