rtmp-services: Add ability to specify tune param

Some services need to set up tune=zerolatency
for low-latency streaming
This commit is contained in:
Andrei Nistor
2016-09-01 14:48:01 +03:00
committed by jp9000
parent c99f65a0df
commit 4b0f22d05a

View File

@@ -346,6 +346,12 @@ static void apply_video_encoder_settings(obs_data_t *settings,
}
}
item = json_object_get(recommended, "tune");
if (item && json_is_string(item)) {
const char *tune = json_string_value(item);
obs_data_set_string(settings, "tune", tune);
}
item = json_object_get(recommended, "x264opts");
if (item && json_is_string(item)) {
const char *x264_settings = json_string_value(item);