ffmpeg 分辨率 压缩_ffmpeg转成h264编码格式、moov(meta数据)移动到头部、码率做一定压缩、分辨率也降下来...

该博客介绍了如何使用ffmpeg命令进行视频压缩,包括调整编码格式为h264,设置码率,改变分辨率,并将moov元数据移动到文件头部,以实现快速播放。同时,博主分享了不同参数组合对视频质量的影响,以及如何支持边下载边播放。
摘要由CSDN通过智能技术生成

ffmpeg -i test.mp4 -threads 4 -vcodec mpeg4 -b:v 1000k test_A1.mp4

ffmpeg -i test.mp4 -threads 8 -vcodec mpeg4 -b:v 800k test_A2.mp4

ffmpeg -i test.mp4 -threads 8 -vcodec mpeg4 -b 200k test_A3.mp4

--开启8个线程,压缩码率-crf越小清晰度越高

ffmpeg -i test.mp4 -threads 8 -crf 22 -y -vcodec mpeg4 -strict experimental test_B1.mp4

ffmpeg -i test.mp4 -threads 8 -crf 26 -y -vcodec mpeg4 -strict experimental test_B2.mp4

ffmpeg -i test.mp4 -threads 8 -crf 28 -y -vcodec mpeg4 -strict experimental test_B3.mp4

ffmpeg -i test.mp4 -threads 8 -crf 30 -y -vcodec mpeg4 -strict experimental test_B4.mp4

--转h264。-s 640*360

--用的:ffmpeg -i test.mp4 -c:v libx264 -b 600k -r 25 -s 640*360 -ab 48k -strict -2 test_ok.mp4

ffmpeg -i test.mp4 -threads 8 -c:v libx264 -movflags faststart -b 200k -r 25 -ab 48k -strict -2 test_C1.mp4

ffmpeg -i test.mp4 -c:v libx264 -movflags faststart -b 600

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值