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

相关推荐
the3clipse1 天前
Windows 11 26H2 声音与音频问题排查指南:没声音、麦克风不收音与蓝牙音频优化
音视频·le audio·windows 11 26h2·win11没声音·麦克风没声音·蓝牙耳机音质·音频服务修复
开开心心就好2 天前
PDF水印怎么去掉?勾选对象再点匹配
java·前端·mysql·支持向量机·pdf·音视频·模拟退火算法
RobinDevNotes2 天前
Claude Code 剪视频,不上传、不要 API Key
人工智能·python·音视频·开发工具·ipython
伯奥克客服2 天前
2026年视频综合一体机架构选型:从接口协议到流媒体底层的深度技术解析
架构·音视频
开开心心就好3 天前
两张表格数据对比工具,不用写函数也能查
算法·spring·智能手机·pdf·电脑·intellij-idea·音视频
FansAI_art3 天前
多角色 AIGC 短片的双模型分工:静态生图与图生视频怎么接
aigc·音视频
山顶夕景4 天前
【ECCV2026】流式视频理解Thinking in Streaming Video
音视频·vlm·视频理解·多模态理解·流式视频
StarsGreen5 天前
ffmpeg中常用结构体以及函数简介以及版本变化情况
ffmpeg
zhanlang02175 天前
HTML 零基础入门到企业实战【第五章 5.4】内嵌网页 iframe 标签:嵌入网页、视频、地图实战
前端·html·音视频
TengTaiTech5 天前
头戴耳机做运动相机外接麦:一颗麦克风同时服务蓝牙通话与 3.5mm 录音的底层重构
数码相机·音视频·蓝牙·qcc