ffmpeg视频滤镜:压缩-deflate

滤镜简述

deflate

官网链接 => https://ffmpeg.org/ffmpeg-filters.html#deflate

压缩滤镜可以降低视频的质量,从而减少视频的大小,虽然一定程度上影响了观看体验,但是方便传输。

滤镜使用

参数
   threshold0        <int>        ..FV.....T. set threshold for 1st plane (from 0 to 65535) (default 65535)
   threshold1        <int>        ..FV.....T. set threshold for 2nd plane (from 0 to 65535) (default 65535)
   threshold2        <int>        ..FV.....T. set threshold for 3rd plane (from 0 to 65535) (default 65535)
   threshold3        <int>        ..FV.....T. set threshold for 4th plane (from 0 to 65535) (default 65535)

可以针对不同的plane设置压缩程度。

案例

原图

ffmpeg -y -i ffm_media/wonder_girls.jpg -filter_complex "deflate" result/deflate/deflate_test_default.jpg

视觉上看不出不同,放大了以后会发现压缩以后变得模糊,下面我们看一下大小

原始图片的大小:

压缩后的大小

通过ffprobe查看

原始图片的码率

压缩后的码率

## 祝你好运
 
hope("大神多多指点")
topic("有问题可以交流呀")
concat("求求QUN", "61480", "9646")

相关推荐
struggle20256 小时前
2025开源DouyinLiveRecorder全平台直播间录制工具整合包,多直播同时录制、教学直播录制、教学视频推送、简单易用不占内存
图像处理·计算机视觉·开源·音视频·语音识别
追光天使13 小时前
Mac M1 源码安装FFmpeg,开启enable-gpl 和 lib x264
macos·ffmpeg
硬件学长森哥1 天前
音视频多媒体编解码器基础-codec
驱动开发·嵌入式硬件·音视频
小镇拾光1 天前
PPT演示设置:插入音频&同步切换&播放时长计算
powerpoint·音视频·ppt播放设置
cuijiecheng20181 天前
FFmpeg源码:av_base64_decode函数分析
ffmpeg
程序猿玖月柒1 天前
全志 视频输入组件的使用
音视频
soonlyai1 天前
Windows平台最新视频号内容下载工具(MP4格式一键解析)
人工智能·经验分享·产品运营·音视频·流量运营·视频编解码·视频
2035去旅行1 天前
FFmpeg(7.1版本)编译:Ubuntu18.04交叉编译到ARM
arm开发·ffmpeg
消失的旧时光-19431 天前
Android-音频采集
android·音视频
我码玄黄2 天前
FFmpeg:多媒体处理的瑞士军刀
后端·ffmpeg·开源