Question / Help FFMPEG VAAPI no option for 4K encoding

MikeGav

New Member
# obs --version
OBS Studio - 23.0.0 (linux)

Screenshot from 2019-02-28 21-07-37.png

Only: 480p30, 720p30,720p60,1080p30 and 1080p60 is available.
But i want 2160p30 and 2160p60
GPU: Vega 64
 
Last edited:

Tuna

Member
This is just the H.264 level description. This is first and foremost an informational field. It does not actually set the output resolution.

You may add some more values with this patch:

Code:
diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c b/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c
index 6f6e9b69..516990c8 100644
--- a/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c
+++ b/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c
@@ -489,6 +489,12 @@ static obs_properties_t *vaapi_properties(void *unused)
                        list, "Compatibility mode  (4.0 default)", 40);
        obs_property_list_add_int(list, "720p60/1080p30 (4.1)", 41);
        obs_property_list_add_int(list, "1080p60 (4.2)", 42);
+       obs_property_list_add_int(list, "1920p30 (5.0)", 50);
+       obs_property_list_add_int(list, "2160p30 (5.1)", 51);
+       obs_property_list_add_int(list, "2160p60 (5.2)", 52);
+       obs_property_list_add_int(list, "8Kp30 (6.0)", 60);
+       obs_property_list_add_int(list, "8Kp60 (6.1)", 61);
+       obs_property_list_add_int(list, "8Kp120 (6.2)", 62);
 
        obs_properties_add_int(props, "bitrate", obs_module_text("Bitrate"), 0,
                        300000, 50);

But again this does not say anything whether these modes are available on your hardware or not.
 
Top