下面是我用来连接视频并应用水印的命令。我想将我的第一个视频缩放到 360⨉480:
"-i",inputFile1,"-i",inputFile2,"-i",watermarkImagePath,"-v","debug","-strict","-2",
"-filter_complex","[1:v][2:v]overlay=15:main_h-overlay_h[over];[over][0:a][1:v][1:a]concat=n=2:v=1:a=1[v][a]",
"-map","[v]","-map","[a]",outUrl
答案1
您根本没有使用第一个输入视频。要缩放它,请在您的滤镜链中使用此视频:
[0:v]scale=360:480[v0]
然后用于v0
进一步的过滤图。