用FFmpeg编码h264视频介绍
2011-05-17 00:33
549 查看
尚在整理中...
Rate control methods available:
constant quantisation parameter – not recommended anymore unless you know you want it
constant rate factor – good for one pass when the priority is quality and file size/bit rate is not really a concern
one pass average bit rate – good for streaming purposes or targeting a bit rate when two-pass is unfeasible
two pass variable bit rate – good for targeting a bit rate when you have the time to spend on two passes (though the first pass can be quite fast) and are writing to a file
Or in prose, CQP mode is mostly deprecated by CRF as CRF maintains more constant quality which was usually the aim of someone using CQP mode. If you care more about quality than bit rate then I would recommend using one pass CRF to save yourself a bit of time. Evaluate various rate factors between about 25 and 15 (a lower value is higher quality and higher bit rate) until you find a quality level/approximate bit rate with which you’re happy and then you can use that value forever more.
One pass average bit rate is good if you need to aim for an approximate bit rate but don’t have time to run two passes. If you have the time then two passes are recommended as the bits will be better distributed to maintain constant quality.
To use one pass CQP:
To use one pass CRF:
To use one pass ABR or two pass VBR:
x264 – Rate Control Choices
Firstly, you need to decide on a rate control method. This controls how bits are allocated within the stream. At a rudimentary level, you want the quality to remain constant but this implies that more complex frames use more bits and less complex frames use less bits.Rate control methods available:
constant quantisation parameter – not recommended anymore unless you know you want it
constant rate factor – good for one pass when the priority is quality and file size/bit rate is not really a concern
one pass average bit rate – good for streaming purposes or targeting a bit rate when two-pass is unfeasible
two pass variable bit rate – good for targeting a bit rate when you have the time to spend on two passes (though the first pass can be quite fast) and are writing to a file
Or in prose, CQP mode is mostly deprecated by CRF as CRF maintains more constant quality which was usually the aim of someone using CQP mode. If you care more about quality than bit rate then I would recommend using one pass CRF to save yourself a bit of time. Evaluate various rate factors between about 25 and 15 (a lower value is higher quality and higher bit rate) until you find a quality level/approximate bit rate with which you’re happy and then you can use that value forever more.
One pass average bit rate is good if you need to aim for an approximate bit rate but don’t have time to run two passes. If you have the time then two passes are recommended as the bits will be better distributed to maintain constant quality.
To use one pass CQP:
-cqp <int>
To use one pass CRF:
-crf <float>
To use one pass ABR or two pass VBR:
-b BIT_RATE
http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/
相关文章推荐
- 图像视频编码和FFmpeg(4)-----h264格式简单介绍
- windows平台下使用ffmpeg对视频进行H264编码总结
- 利用ffmpeg进行摄像头提取视频编码为h264通过RTP发送数据到指定的rtp地址
- 实现 V4L2视频采集与 FFMPEG 编码YUYV 数据 为H264(2)
- 图像视频编码和FFmpeg(1)-----FFmpeg使用介绍
- 使用ffmpeg将BMP图片编码为x264视频文件,将H264视频保存为BMP图片,yuv视频文件保存为图片的代码
- 使用ffmpeg将BMP图片编码为x264视频文件,将H264视频保存为BMP图片,yuv视频文件保存为图片的代码
- 使用ffmpeg将BMP图片编码为x264视频文件,将H264视频保存为BMP图片,yuv视频文件保存为图片的代码
- 图像视频编码和FFmpeg(2)-----YUV格式介绍和应用
- ffmpeg视频编码AV_CODEC_ID_H264 Codec not find解决方法
- h264 svc 可伸缩视频编码及ffmpeg实现
- 实现 V4L2视频采集与 FFMPEG 编码YUYV 数据为H264 (1)
- FFMPEG研究: Android下录制/dev/video0设备h264编码保存为mp4格式视频
- ffmpeg 实现视频h264编码 (一)
- 利用ffmpeg进行摄像头提取视频编码为h264通过RTP发送数据到指定的rtp地址
- 图像视频编码和FFmpeg(2)-----YUV格式介绍和应用
- FFmpeg浅尝辄止(二)——YUV视频序列编码为视频 ~~ 新版修改版-调通
- 将视频 YUV 格式编码成 H264
- 转载 各种主流音频/视频编码格式介绍
- 技术解析:视频编码、封装格式介绍 转载