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

标签 image video ffmpeg video-watermarking

我想在 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/

相关文章:

javascript - Video.js this.tech 未定义 firefox

Python OpenCV 2.4 写入半完整的PNG视频帧

sql-server - 在 WCF 中处理图像

image - 更新Grails数据库中的图像

java - 查找图像的最小可视矩形的尺寸

video - AV帧数据格式

video - ffmpeg 输出 25fps 视频的第一帧仅显示 1ms

audio - FFmpeg 错误地连接两个 m4a 文件

video - 我不能用 ffplay 播放 HEVC 编码的 Flv 格式的视频文件

image - 检测灰度或二值图像中的六边形形状