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

相关推荐
天夏已微凉21 分钟前
OpenHarmony系统HDF驱动开发介绍(补充)
驱动开发·音视频·harmonyos
忆源33 分钟前
【Qt】之音视频编程2:QtAV的使用篇
开发语言·qt·音视频
Unlimitedz2 小时前
iOS视频编码详细步骤(视频编码器,基于 VideoToolbox,支持硬件编码 H264/H265)
ios·音视频
飞猿_SIR2 小时前
Android Exoplayer多路不同时长音视频混合播放
android·音视频
Digitally2 小时前
如何将视频从手机传输到电脑(Android和iPhone)
智能手机·电脑·音视频
忆源6 小时前
【Qt】之音视频编程1:QtAV的背景和安装篇
开发语言·qt·音视频
路溪非溪11 小时前
各种音频产品及场景总结
音视频
科技小E13 小时前
WebRTC技术EasyRTC嵌入式音视频通信SDK打造远程实时视频通话监控巡检解决方案
人工智能·音视频
源码方舟14 小时前
【基于ALS模型的教育视频推荐系统(Java实现)】
java·python·算法·音视频
飞猿_SIR14 小时前
Android Exoplayer 实现多个音视频文件混合播放以及音轨切换
android·音视频