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

相关推荐
h39747 小时前
MFC文件-写MP4
c++·windows·音视频·mfc
王江奎14 小时前
音视频小白系统入门课-4
音视频
Oliverro16 小时前
嵌入式WebRTC音视频实时通话EasyRTC助力打造AIOT智能硬件实时通信新生态
网络·人工智能·音视频
h397416 小时前
MFC文件-屏幕录像
c++·windows·音视频·mfc
TYYJ-洪伟17 小时前
【Vulkan 入门系列】创建帧缓冲、命令池、命令缓存,和获取图片(六)
音视频·gpu·vulkan·图像渲染
hello_simon20 小时前
丰富多样功能的小白工具,视频提取音频,在线使用,无需下载软件
音视频·pdf转html·excel转pdf格式
unix2linux20 小时前
YOLO v5 Series - FFmpeg & (HTML5 + FLV.js ) & ONNX YOLOv5s Integrating
yolo·ffmpeg·html5
Antonio9151 天前
【音视频】FFmpeg解封装
ffmpeg·音视频
hello_simon1 天前
小白工具视频转MPG, 功能丰富齐全,无需下载软件,在线使用,超实用
音视频
Antonio9152 天前
【音视频】FFmpeg内存模型
ffmpeg·音视频