From b385eb4687b51dcae140c29159c399db95b95718 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 14 Feb 2024 00:09:19 +0100 Subject: Improve troubleshooting for missing h264/hevc --- com.dec05eba.gpu_screen_recorder.appdata.xml | 7 ++++++- src/main.cpp | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/com.dec05eba.gpu_screen_recorder.appdata.xml b/com.dec05eba.gpu_screen_recorder.appdata.xml index 7ce13e0..af544cd 100644 --- a/com.dec05eba.gpu_screen_recorder.appdata.xml +++ b/com.dec05eba.gpu_screen_recorder.appdata.xml @@ -43,7 +43,7 @@ and pkexec needs to be installed on the system and a polkit agent needs to be running.

- If H264/HEVC video encoding is not available on your AMD/Intel system that you know supports those codecs then you may need to install mesa-extra freedesktop runtime by running this command: flatpak install --system org.freedesktop.Platform.GL.default//23.08-extra + If H264/HEVC video encoding option is not available on your AMD/Intel system but you know that your supports those codecs then you may need to install mesa-extra freedesktop runtime by running this command: flatpak install --system org.freedesktop.Platform.GL.default//23.08-extra

Recording a single window is also only possible on X11. Hotkeys are not supported on wayland either (wayland doesn't really support this). Use X11 if you want a proper desktop experience in general. @@ -69,6 +69,11 @@ + + +

Better error message for missing h264/hevc, ignore user nvidia vaapi setting

+ +
    diff --git a/src/main.cpp b/src/main.cpp index 144ba53..361722a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3133,7 +3133,7 @@ static void load_config(const gpu_info &gpu_inf) { "Switched video codec to AV1 since H264/HEVC video encoding is either missing or disabled on your system. If your know that your system supports H264/HEVC video encoding then " "try installing mesa-extra freedesktop runtime by running this command:\n" "flatpak install --system org.freedesktop.Platform.GL.default//23.08-extra\n" - "and then restarting GPU Screen Recorder. If that doesn't work then you may have to install another mesa package for your distro."); + "and then restart GPU Screen Recorder. If that doesn't work then you may have to install another mesa package for your distro."); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); config.main_config.codec = "av1"; @@ -3143,7 +3143,7 @@ static void load_config(const gpu_info &gpu_inf) { "H264/HEVC video encoding is either missing or disabled on your system. If your know that your system supports H264/HEVC video encoding then " "try installing mesa-extra freedesktop runtime by running this command:\n" "flatpak install --system org.freedesktop.Platform.GL.default//23.08-extra\n" - "and then restarting GPU Screen Recorder. If that doesn't work then you may have to install another mesa package for your distro."); + "and then restart GPU Screen Recorder. If that doesn't work then you may have to install another mesa package for your distro."); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); g_application_quit(G_APPLICATION(select_window_userdata.app)); -- cgit v1.2.3