From ddcf2436c177073038f603a12555a2fdf8f26a6e Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 19 Sep 2015 08:52:11 -0700 Subject: [PATCH] obs-x264: Adjust log message Use the actual parameter from the x264 params for CRF, and also make sure to specify that CRF is meant to be 0 if CBR is enabled. --- plugins/obs-x264/obs-x264.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/obs-x264/obs-x264.c b/plugins/obs-x264/obs-x264.c index 7108c6dcb..1c7db3158 100644 --- a/plugins/obs-x264/obs-x264.c +++ b/plugins/obs-x264/obs-x264.c @@ -435,7 +435,7 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t *settings, info("settings:\n" "\tbitrate: %d\n" "\tbuffer size: %d\n" - "\tcrf: %d\n" + "\tcrf: %d%s\n" "\tfps_num: %d\n" "\tfps_den: %d\n" "\twidth: %d\n" @@ -445,7 +445,8 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t *settings, "\tcbr: %s", obsx264->params.rc.i_vbv_max_bitrate, obsx264->params.rc.i_vbv_buffer_size, - crf, + (int)obsx264->params.rc.f_rf_constant, + cbr ? " (0 when CBR is enabled)" : "", voi->fps_num, voi->fps_den, width, height, obsx264->params.i_keyint_max,