Want to improve this question? Add details and clarify the problem by editing this post.
Closed 10 years ago.
对于这个问题有很多方法。一种快速方法是通过设置视频比特率来更改视频大小:
ffmpeg -i input.mp4 -b:v 768k -acodec copy output.mp4
或者,对于 h264,您可以指定输出质量,例如使用 -qp 或 -crf选项,这将相应地改变视频大小。有关详细信息,请参阅 x264 FFmpeg 选项指南。
-qp
-crf
There are quite a few approaches to this issue. A quick one would be to change the video size by setting the video bit-rate:
Alternatively, for h264 you can specify the output quality, e.g. using -qp or -crf options, that would change the video size accordingly. See x264 FFmpeg Options Guide for details.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
对于这个问题有很多方法。一种快速方法是通过设置视频比特率来更改视频大小:
或者,对于 h264,您可以指定输出质量,例如使用
-qp
或-crf
选项,这将相应地改变视频大小。有关详细信息,请参阅 x264 FFmpeg 选项指南。There are quite a few approaches to this issue. A quick one would be to change the video size by setting the video bit-rate:
Alternatively, for h264 you can specify the output quality, e.g. using
-qp
or-crf
options, that would change the video size accordingly. See x264 FFmpeg Options Guide for details.