X264速率控制集
x264 rate control set
我已经学习x264编码好几个月了。我需要的是控制速率,得到一个平均比特率。以下是我的设置,我有一个平均比特率,但图像质量很差,所以我需要你的建议或一些可以帮助我了解更多关于x264的东西。
Params.rc.i_rc_method = X264_RC_ABR ;
Params.rc.i_bitrate = nBitRate*0.65/1000 ;
Params.rc.i_vbv_buffer_size = nBitRate/1000;
Params.rc.i_vbv_max_bitrate = nBitRate*0.65/1000 ;
Params.rc.f_vbv_buffer_init = 1.0 ;
Params.rc.f_rate_tolerance = 1.0 ;
Params.i_fps_num = ParamIn.dFrameRate*0.6 ;
Params.i_fps_den = 1 ;
Params.i_width = ParamIn.nWidth ;
Params.i_height = ParamIn.nHeight ;
嗯,如果你的视频质量很差…你需要提高比特率。这是我使用的编码:-
x264 --preset fast --profile high --level 4.1 --tune animation --ref 10 --subme 9 --merange 32 --bitrate 500 --me umh --input-res 848x480 --trellis 2 --pass 1 -o Outvideo.mp4 input.mp4
x264 --preset fast --profile high --level 4.1 --tune animation --ref 10 --subme 9 --merange 32 --bitrate 330 --me umh --input-res 848x480 --trellis 2 --pass 2 -o Outvideo.mp4 input.mp4
好吧,我做2通过,因为它比1通过有很多原因,如果你正在做基于比特率的编码,2通过总是有帮助的!您可以使用"--bitrate x
"选项来选择比特率。只要把" x
"改成你想要的平均比特率。
相关文章:
- 控制允许动态运行c++的并发操作数
- 从控制台中删除最后打印的元素
- 是否可以使用if constexpr删除控制流语句
- 无法在windows控制台中为C++程序提供必要的输入
- 控制到达非空函数clang(-Wreturn-type)的末尾
- 使用专用显卡进行 OpenGL 渲染时帧速率较低
- 查找 GCD:并非所有控制路径都返回值
- 通过 API 控制 DJI 相机
- 禁止在控制台上记录谷神星
- 是否可以使用一个类来控制 C++ 中另一个类的对象?(阿杜伊诺)
- 在打开多个其他窗口时使用全屏窗口时帧速率非常低
- 如何删除列出的"QGraphicsPathItem"对象以控制进程内存使用情况?
- 我在 C++ 代码中遇到错误警告:控制到达非空函数 [-Wreturn 类型] 的末尾
- C++ Python 模块在 Blender 中崩溃,但在 Python 控制台中不会崩溃
- wx通用目录控制错误"wxTheFileIconsTable was nullptr"
- 视频流控制帧速率x264
- LIBAV视频编码速率控制.cpp:766.
- 游戏循环帧速率控制问题
- X264速率控制集
- 如何在Qt 3D中控制帧速率