rtmp-services: Allow services to override bframe count

This commit is contained in:
jp9000
2017-07-14 12:39:59 -07:00
parent 339a0686f6
commit 4d1672719f
+4
View File
@@ -387,6 +387,10 @@ static void apply_video_encoder_settings(obs_data_t *settings,
}
}
item = json_object_get(recommended, "bframes");
if (item && json_is_integer(item))
obs_data_set_int(settings, "bf", 0);
item = json_object_get(recommended, "x264opts");
if (item && json_is_string(item)) {
const char *x264_settings = json_string_value(item);