是否可以使用FFMPEG在视频的每个帧上叠加图像

Reu*_*nCH 5 video ffmpeg image video-watermarking

我试图在10秒的视频上叠加10个不同的图像.我目前能够使用FFMPEG在视频的整个时间跨度上覆盖一个图像.我想能够在视频的每一秒看到不同的图像.

如果有可能,我怎样才能实现这一目标?

问候,鲁本

Dim*_*ski 4

是的,命令应该类似于:

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
Run Code Online (Sandbox Code Playgroud)