Просмотр исходного кода

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".
jp9000 9 лет назад
Родитель
Сommit
2801cf0f37
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugins/rtmp-services/rtmp-common.c

+ 1 - 1
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)) {