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

相关推荐
程序员老陆1 天前
说一说FFmpeg6在Linux平台的编译
linux·运维·服务器·ffmpeg
用户518186005661 天前
FFmpeg 剪辑:为什么 `-c copy` 往往做不到帧准确剪切
ffmpeg
福大大架构师每日一题2 天前
mediamtx v1.19.3正式发布:认证安全、WebRTC跨域、MoQ稳定性、RTSP与HLS全面升级
安全·ffmpeg·webrtc
AI大佬的小弟2 天前
大模型名词精讲06:Top-P(核采样)
大模型·top-p·temperature·ai入门·核采样·采样策略·ai调参
cpp_learner2 天前
FFmpeg 解复用全流程解析
ffmpeg
程序员老陆3 天前
FFmpeg时间基相关函数大杂烩
ffmpeg·时间基·timebase
u0103055273 天前
AI驱动的安卓UI自动生成功能实现
人工智能·1024程序员节
程序员老陆4 天前
FFmpeg libswresample 模块的关键函数swr_convert 到底在干嘛?
ffmpeg·音视频·格式转换·音频重采样
海兰4 天前
ffmpeg-wasm 完整安装指南(Ubuntu 24.04)
ubuntu·ffmpeg·wasm
u0103055274 天前
长株潭智能体赋能腾讯元器链接共享
1024程序员节