obs-x264: Use regular CBR if x264 version < 139
Some linux packages on linux are way too old. Very annoying.master
parent
53fe31e1ac
commit
1a0bfe3244
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue