命令行
ffmpeg -i input.mp4 -r 10 -b:a 32k output.mp4
介绍
有的视频,如一些视频学习教程通常画面都是不大变化的,和变动速度快的打斗视频所需要的帧数完全不同,音质也不需要很高。可以降低fps和音频码率的方法大大压缩文件大小,而清晰度不变!
通常转成.mp4,采用H.264视频压缩算法和AAC音频压缩算法,视频帧率10fps,音频码率32k
Additional options that might be worth considering is setting the Constant Rate Factor, which lowers the average bit rate, but retains better quality. Vary the CRF between around 18 and 24 — the lower, the higher the bitrate.
ffmpeg -i input.mp4 -vcodec libx264 -crf 20 output.mp4
参考文章:https://www.kancloud.cn/zhenhuamcu/ffmpeg/759506

本文介绍如何使用ffmpeg通过调整视频帧率和音频码率来压缩视频文件大小,特别适合画面变化不大的教学视频。同时,讨论了设置Constant Rate Factor以保持更高质量的同时降低平均比特率的方法。
3916

被折叠的 条评论
为什么被折叠?



