gpt4 book ai didi

ffmpeg - 使用 FFMPEG 在一个基础图像上叠加多个图像

转载 作者:行者123 更新时间:2023-12-04 22:47:08 24 4
gpt4 key购买 nike

我有命令覆盖 2 个图像,并且工作正常,

"-y -i \(image1) -i \(image2) -filter_complex [0][1]overlay=(W-w)/2:(H-h)/2 \(out)"

我希望添加多个图像,例如:我们有四个图像 [image1,image2,image3,image4]。

现在 image1 将是基本的,我想将 image1 上的其他 3 个图像作为叠加层。

图像位置可以随机变化。
我一直试图在谷歌上搜索这个,一切都重定向到视频上的多个图像或组合视频。

有谁能够帮我。

最佳答案

您需要使用多个 overlay过滤器。一个基本的例子:

ffmpeg -i input0 -i input1 -i input2 -i input3 
-filter_complex "[0][1]overlay[bg0];[bg0][2]overlay[bg1];[bg1][3]overlay[v]"
-map "[v]" output

关于ffmpeg - 使用 FFMPEG 在一个基础图像上叠加多个图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53774355/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com