提交 1a0bfe32 编写于 作者: J jp9000

obs-x264: Use regular CBR if x264 version < 139

Some linux packages on linux are way too old.  Very annoying.
上级 53fe31e1
......@@ -244,9 +244,14 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t settings,
/* use the new filler method for CBR to allow real-time adjusting of
* the bitrate */
if (cbr) {
obsx264->params.rc.b_filler = true;
obsx264->params.rc.f_rf_constant = 0.0f;
#if X264_BUILD >= 139
obsx264->params.rc.b_filler = true;
obsx264->params.rc.i_rc_method = X264_RC_ABR;
#else
obsx264->params.rc.i_nal_hrd = X264_NAL_HRD_CBR;
#endif
} else {
obsx264->params.rc.i_rc_method = X264_RC_CRF;
obsx264->params.rc.f_rf_constant = (float)crf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册