obs-ffmpeg: Expose VAAPI profile choices

Allow choosing Constrained Baseline, Main and High.
master
Douglas Rhine 2020-04-02 17:48:15 +01:00
parent d002345a11
commit 04d7ff5854
No known key found for this signature in database
GPG Key ID: 31F78E0CF8B761B9
1 changed files with 8 additions and 0 deletions

View File

@ -550,6 +550,14 @@ static obs_properties_t *vaapi_properties(void *unused)
obs_property_list_add_int(list, "H.264 (default)", AV_CODEC_ID_H264); obs_property_list_add_int(list, "H.264 (default)", AV_CODEC_ID_H264);
list = obs_properties_add_list(props, "profile", "Profile",
OBS_COMBO_TYPE_LIST,
OBS_COMBO_FORMAT_INT);
obs_property_list_add_int(list, "Constrained Baseline (default)",
FF_PROFILE_H264_CONSTRAINED_BASELINE);
obs_property_list_add_int(list, "Main", FF_PROFILE_H264_MAIN);
obs_property_list_add_int(list, "High", FF_PROFILE_H264_HIGH);
list = obs_properties_add_list(props, "level", "Level", list = obs_properties_add_list(props, "level", "Level",
OBS_COMBO_TYPE_LIST, OBS_COMBO_TYPE_LIST,
OBS_COMBO_FORMAT_INT); OBS_COMBO_FORMAT_INT);