我想在 10 秒的视频上叠加 10 张不同的图像。我目前能够使用 FFMPEG 在视频的整个时间跨度上叠加一张图像。我希望能够在视频中每秒看到不同的图像。
如果可能,我该如何实现?
问候, 鲁本
最佳答案
是的,命令应该类似于这样:
ffmpeg -y
-i foo.mp4 -i foo.jpg -i bar.jpg [...put more pics here...]
-filter_complex "
[0:v][1:v] overlay=25:25:enable='between(t,0,1)' [tmp];
[tmp][2:v] overlay=25:25:enable='between(t,1,2)' [tmp]
...continue the same way...
"
bar.mp4
关于image - 是否可以使用 FFMPEG 在视频的每一帧上叠加图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34670111/