obs-ffmpeg: Add option to use b-frames as reference

According to nvidia's documentation using b-frames as reference results in
a slight quality improvement with no/negligible performance impact and is
recommended to be enabled by default when using multiple b-frames.
This commit is contained in:
derrod
2019-02-20 04:48:23 +01:00
parent 4722b764ca
commit adf3337d3c
3 changed files with 13 additions and 0 deletions

View File

@@ -404,6 +404,7 @@ void nvenc_defaults(obs_data_t *settings)
obs_data_set_default_string(settings, "preset", "hq");
obs_data_set_default_string(settings, "profile", "high");
obs_data_set_default_bool(settings, "psycho_aq", true);
obs_data_set_default_bool(settings, "bframes_as_ref", true);
obs_data_set_default_int(settings, "gpu", 0);
obs_data_set_default_int(settings, "bf", 2);
}
@@ -497,6 +498,10 @@ obs_properties_t *nvenc_properties_internal(bool ffmpeg)
obs_module_text("NVENC.PsychoVisualTuning"));
obs_property_set_long_description(p,
obs_module_text("NVENC.PsychoVisualTuning.ToolTip"));
p = obs_properties_add_bool(props, "bframes_as_ref",
obs_module_text("NVENC.BFramesAsRef"));
obs_property_set_long_description(p,
obs_module_text("NVENC.BFramesAsRef.ToolTip"));
}
obs_properties_add_int(props, "gpu", obs_module_text("GPU"), 0, 8, 1);