From 2801cf0f378e9f34f73ea19ff6bb3d72ea4920e5 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 8 May 2016 11:19:02 -0700 Subject: [PATCH] rtmp-common: Use "rate_control" to set CBR mode Instead of using "cbr" to set the rate control mode for encoders (which is now considered deprecated for all encoders), set "rate_control" to "CBR". --- plugins/rtmp-services/rtmp-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rtmp-services/rtmp-common.c b/plugins/rtmp-services/rtmp-common.c index 6ebf6b7d5..a15790cb0 100644 --- a/plugins/rtmp-services/rtmp-common.c +++ b/plugins/rtmp-services/rtmp-common.c @@ -329,7 +329,7 @@ static void apply_video_encoder_settings(obs_data_t *settings, obs_data_set_int(settings, "keyint_sec", keyint); } - obs_data_set_bool(settings, "cbr", true); + obs_data_set_string(settings, "rate_control", "CBR"); item = json_object_get(recommended, "profile"); if (item && json_is_string(item)) { -- GitLab