From 04d7ff585420d7dc3e7850884fe597bbe002cd6f Mon Sep 17 00:00:00 2001 From: Douglas Rhine <59268455+dgcampea@users.noreply.github.com> Date: Thu, 2 Apr 2020 17:48:15 +0100 Subject: [PATCH] obs-ffmpeg: Expose VAAPI profile choices Allow choosing Constrained Baseline, Main and High. --- plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c b/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c index 4e4b460f0..b3d2415d4 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c @@ -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); + 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", OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_INT);