ffmpeg视频滤镜: 色温- colortemperature

滤镜简述

colortemperature

官网链接 =》 FFmpeg Filters Documentation

这个滤镜可以调节图片的色温,色温值越大显得越冷,可以参考一下下图:

咱们装修的时候可能会用到,比如选择灯还有地板的颜色的时候,选暖色调还是冷色调的时候,说的就是色温。

滤镜使用

参数
复制代码
   temperature       <float>      ..FV.....T. set the temperature in Kelvin (from 1000 to 40000) (default 6500)
   mix               <float>      ..FV.....T. set the mix with filtered output (from 0 to 1) (default 1)
   pl                <float>      ..FV.....T. set the amount of preserving lightness (from 0 to 1) (default 0)
  • temperature,是色温值
  • mix, 固定temperature情况,这个值越大,显得越冷
  • pl, 固定temperature情况,这个值越大,图片越亮
样例

原图

复制代码
ffmpeg -y -i ffm_media/air.jpg -filter_complex "colortemperature=10000" result/colortemperature/color_test_02.jpg
复制代码
ffmpeg -y -i ffm_media/air.jpg -filter_complex "colortemperature=3500" result/colortemperature/color_test_03.jpg
复制代码
ffmpeg -y -i ffm_media/air.jpg -filter_complex "colortemperature=3500:0.6" result/colortemperature/color_test_04.jpg
复制代码
ffmpeg -y -i ffm_media/air.jpg -filter_complex "colortemperature=3500:pl=0.8" result/colortemperature/color_test_06.jpg

这个是条件pl后的效果,会亮很多。

复制代码
## 祝你好运
 
hope("大神多多指点")
topic("有问题可以交流呀")
concat("求求QUN", "61480", "9646")

相关推荐
寻找华年的锦瑟17 小时前
Qt-FFmpeg案例(0基础,包含环境配置)
开发语言·qt·ffmpeg
大新新大浩浩20 小时前
amazoncorretto:17镜像中安装ffmpeg
ffmpeg
金融小师妹1 天前
基于机器学习框架的上周行情复盘:非农数据与美联储政策信号的AI驱动解析
大数据·人工智能·深度学习·1024程序员节
Industio_触觉智能1 天前
瑞芯微RK3562平台FFmpeg硬件编解码移植及性能测试实战攻略
ffmpeg·视频编解码·瑞芯微·rk3562·触觉智能
八月的雨季 最後的冰吻1 天前
FFmepg--25-h265解码yuv格式
ffmpeg
渣渣盟1 天前
Flink分布式文件Sink实战解析
分布式·flink·scala·1024程序员节
CoderYanger1 天前
优选算法-栈:69.验证栈序列
java·开发语言·算法·leetcode·职场和发展·1024程序员节
weixin_462446231 天前
Python 使用 FFmpeg 给视频添加内嵌字幕(SRT)完整教程(含代码示例)
python·ffmpeg·音视频
百***35512 天前
从MySQL5.7平滑升级到MySQL8.0的最佳实践分享
ffmpeg
android_cai_niao2 天前
编译最新版本FFmpeg为so
ffmpeg·freetype·harfbuzz·drawtext·文字水印