gpt4 book ai didi

ffmpeg 调整对比度,显示直方图

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

我试图首先调整从 mp4 中提取的帧的对比度,然后将结果帧的直方图叠加在顶部。我在这里的命令完成了所有这些,但也调整了直方图本身的对比度。有没有单ffmpeg可以做我想做的事的命令?

enter image description here

    ffmpeg -ss 3.5 -i in.mp4 -an -y -vf \
"split=2[a][b],[b]eq=0.5:0:1:1:1:1:1,histogram=levels_mode=logarithmic:\
components=1:level_height=100, [a]overlay,eq=0.5:0:1:1:1:1:1" \
-vframes 1 -q:v 2 out.jpg

最佳答案

利用

ffmpeg -ss 3.5 -i in.mp4 -an -y -filter_complex \
"eq=0.5:0:1:1:1:1:1,split=2[a][b];[b]histogram=levels_mode=logarithmic:\
components=1:level_height=100[b];[a][b]overlay" -vframes 1 -q:v 2 out.jpg

关于ffmpeg 调整对比度,显示直方图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50787155/

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