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

相关推荐
unable code6 小时前
内存取证-easy_mem_1
网络安全·ctf·misc·1024程序员节·内存取证
Knight_AL17 小时前
如何用 FFmpeg 处理 PCM 音频 & 判断 PCM 文件到底是什么格式
ffmpeg·音视频·pcm
binderIPC2 天前
macos环境下FFmpeg打包成.so文件
macos·ffmpeg·音视频
binderIPC2 天前
macos的FFmpeg环境搭建
macos·ffmpeg·音视频
TEC_INO2 天前
Linux_19:RV1126的OSD模块和SDL_TTF结合输出H264文件
linux·运维·ffmpeg
小鹿软件办公3 天前
一行命令搞定!用 FFmpeg 按指定码率压缩视频
ffmpeg·音视频
青芒.4 天前
10个20GB大视频如何高效处理?M3 Mac + FFmpeg 最佳实践全解析
macos·ffmpeg·音视频
❀͜͡傀儡师4 天前
SpringBoot + FFmpeg + ZLMediaKit 实现本地视频推流
spring boot·ffmpeg·音视频
大黄说说4 天前
基于 fluent-ffmpeg 实现 HLS 视频切片:从完整视频到 .ts + .m3u8 流媒体传输
ffmpeg·音视频
❀͜͡傀儡师5 天前
把AI塞进工作流编辑器:FlowMix工作流正式开源
spring boot·ffmpeg·音视频