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

相关推荐
王者鳜錸2 小时前
基于Selenium和FFmpeg的全平台短视频自动化发布系统
selenium·ffmpeg·音视频
aqi003 小时前
FFmpeg开发笔记(七十三)Windows给FFmpeg集成MPEG-5视频编解码器
ffmpeg·音视频·直播·流媒体
DogDaoDao1 天前
HEVC/H.265 码流分析工具 HEVCESBrowser 使用教程
ffmpeg·音视频·h.265·hevc·码流分析工具·elecard·hevcsbrowser
hjjdebug3 天前
ffplay6 播放器关键技术点分析 1/2
c++·ffmpeg·音视频
泰勒朗斯3 天前
ffmpeg 中config 文件一些理解
windows·microsoft·ffmpeg
泰勒朗斯3 天前
ffmpeg下编译tsan
ffmpeg
lzb_kkk5 天前
【C++】C++四种类型转换操作符详解
开发语言·c++·windows·1024程序员节
xmode5 天前
centos7.9安装ffmpeg6.1和NASM、Yasm、x264、x265、fdk-aac、lame、opus解码器
ffmpeg·centos
王江奎5 天前
FFmpeg 升级指北
ffmpeg
雨夜和阳晨5 天前
FFmpeg录制屏幕及声音
ffmpeg