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

相关推荐
xmRao10 小时前
Qt+FFmpeg 实现 PCM 音频转 AAC 编码
qt·ffmpeg·pcm
xmRao10 小时前
Qt+FFmpeg 实现录音程序(pcm转wav)
qt·ffmpeg
阿里巴啦2 天前
python+yt-dlp开源项目,支持 YouTube, Bilibili, TikTok/抖音,快手 等多个平台的视频/音频/字幕下载/ai摘要等功能
python·ffmpeg·whisper·音视频·视频处理·ai摘要·音视频转录
来鸟 鸣间3 天前
linux下ffmpeg源码编译
linux·运维·ffmpeg
Echo_NGC22373 天前
【FFmpeg使用指南】Part 2:滤镜图架构与信号处理
架构·ffmpeg·音视频·信号处理
Echo_NGC22373 天前
【FFmpeg使用指南】Part 1:核心架构与媒体流处理
ffmpeg·音视频·媒体·视频
ssxueyi3 天前
用 Claude Code 从零开发自己的Direct3D 硬件加速播放器
ffmpeg·ai编程·directx·视频播放器·从零开始·claude code·csdn征文活动
Yan_uuu3 天前
ubuntu18.04 安装 x264、ffmpeg、nv-codec-hearers 支持GPU硬件加速
c++·图像处理·ubuntu·ffmpeg
runner365.git3 天前
做一个基于ffmpeg的AI Agent智能体
人工智能·ffmpeg·大模型
彷徨而立3 天前
【FFmpeg】理解 av_packet_from_data 和 av_packet_unref 接口
ffmpeg