我正在尝试使用ffmpeg在视频中嵌入各种图像。到目前为止,我有:
ffmpeg -i testclip.mp4 -i question2.png -i question1.png -filter_complex "[0:v][1:v] overlay=(W-w)/2:20:enable='between(t,2,5)'; [0:v][1:v] overlay=(W-w)/2:20:enable='between(t,10,15)'" -pix_fmt yuv420p -c:a copy 123.mp4
然而,这只会嵌入第一张图片。有没有办法养成多个人?
答案 0 :(得分:0)
Nevermind, figured it out:
ffmpeg -i testclip.mp4 -i question2.png -i question1.png -filter_complex "[0][1] overlay=(W-w)/2:20:enable='between(t,2,5)'[q1]; [q1][2] overlay=(W-w)/2:20:enable='between(t,10,15)'" -pix_fmt yuv420p -c:a copy 123.mp4