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

猜你喜欢

转载自blog.csdn.net/u014686399/article/details/143232165