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")

相关推荐
kuinnebula2 小时前
FFmpeg基础
ffmpeg
这辈子谁会真的心疼你6 小时前
怎样让所有mp3声音大小一样?统一声音的两个方法
人工智能·ffmpeg·音视频
unable code7 小时前
[HNCTF 2022 WEEK2]ez_ssrf
网络安全·web·ctf·1024程序员节
landihao7 小时前
ffmpeg推流的个别错误和图片压缩视频
ffmpeg·音视频
神秘剑客_CN7 小时前
使用ffmpeg+python实现自动给视频添加移动水印
python·ffmpeg·音视频
unable code1 天前
[NISACTF 2022]easyssrf
网络安全·web·ctf·1024程序员节
琪伦的工具库1 天前
批量视频根据参数重命名工具使用指南
ffmpeg·音视频
糖炒栗子03261 天前
SRS + FFmpeg WebRTC 循环推流环境搭建
ffmpeg·webrtc
破阵子443281 天前
从零开始:Windows 系统下 FFmpeg 安装与使用完全指南
windows·ffmpeg
要开心吖ZSH2 天前
MP4 转 WAV 音频转码方案详解(ProcessBuilder + FFmpeg)
java·ffmpeg·音视频