gpt4 book ai didi

ffmpeg 色键过滤器 : blend parameter does not what it should

转载 作者:行者123 更新时间:2023-12-04 22:59:56 27 4
gpt4 key购买 nike

我想删除绿屏背景,但对我所取得的成就并不完全满意,因为我仍然有绿色边框(尤其是在头发等半透明区域,当我移动头部时)。

色键过滤器的混合参数文档说

blend

Blend percentage.

0.0 makes pixels either fully transparent, or not transparent at all.

Higher values result in semi-transparent pixels, with a higher transparency the more similar the pixels color is to the key color.



所以我认为,在使用如下命令删除背景时,我可以使用它来最大限度地减少绿屏出血(这是术语吗?):
ffmpeg -i DSCN0015.MOV -vf "[in] hqdn3d=4:4:8:8 [dn]; [dn] scale=iw*3:-1 [sc]; [sc] chromakey=0x005d0b:0.125:0.0 [out]" -r 24 -an -c:v ffvhuff 4.mov

但是当我使用 0.0 以外的任何值进行混合时,它似乎确定了某种最小透明度并且整个帧都会受到影响。

以下是一些可视化的图片:第一张是来自相机的原 Material 。第二个显示了混合 = 0.0 得到的结果,最后一个显示了问题:混合 = 0.5,但整个框架几乎完全透明。

[ Raw material as from camera]

[ blend=0.0]

[ blend=0.5]

最佳答案

最终的解决方案是降低 Mulvya 所指出的相似性值,并在混合参数中使用非常低的值。两者的 0.06 都适用于我剪辑中的照明情况。

关于ffmpeg 色键过滤器 : blend parameter does not what it should,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43675909/

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