mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
obs-x264: Set CRF value conditionally
Matches value seen when encoding with FFmpeg.
This commit is contained in:
parent
dd552df15c
commit
abf6a97ca9
@ -518,10 +518,9 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t *settings,
|
||||
}
|
||||
} else {
|
||||
obsx264->params.rc.i_rc_method = X264_RC_CRF;
|
||||
obsx264->params.rc.f_rf_constant = (float)crf;
|
||||
}
|
||||
|
||||
obsx264->params.rc.f_rf_constant = (float)crf;
|
||||
|
||||
if (info.format == VIDEO_FORMAT_NV12)
|
||||
obsx264->params.i_csp = X264_CSP_NV12;
|
||||
else if (info.format == VIDEO_FORMAT_I420)
|
||||
|
Loading…
Reference in New Issue
Block a user