From dcae815a5e1a6205f9d35bbfe0bba0f650c1d0eb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 23 Jun 2024 01:41:26 +0200 Subject: Update appdata --- com.dec05eba.gpu_screen_recorder.appdata.xml | 17 +++++++++++------ src/egl.c | 4 ++-- src/main.cpp | 1 + 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/com.dec05eba.gpu_screen_recorder.appdata.xml b/com.dec05eba.gpu_screen_recorder.appdata.xml index 0de98eb..7d05e52 100644 --- a/com.dec05eba.gpu_screen_recorder.appdata.xml +++ b/com.dec05eba.gpu_screen_recorder.appdata.xml @@ -25,8 +25,8 @@

Supported video codecs:

Supported audio codecs:

@@ -48,13 +48,11 @@

If the video doesn't play or you get green/yellow overlay then your video player is missing H264/HEVC video codec. Either install the video codecs or use mpv.

-

- By default on AMD/NVIDIA HEVC video codec is used. This may not play in your video player or browser of choice or discord. The video will still work if you upload it to a site such as youtube. Alternatively you can switch to H264 video codec in advanced view for compatibility with outdated video players/websites. -

If the video is glitched with checkerboard pattern and you are using and Intel integrated GPU on wayland then this is a known issue and right now the only solution is to record on X11 instead.

-

AMD has a driver/hardware fault that causes black bars/distorted colors on the right side/bottom of the video for certain video resolutions. This happens for both av1 and hevc, so if you have this issue then switch to h264 video codec option in advanced settings.

+

AMD has a driver/hardware fault that causes black bars/distorted colors on the right side/bottom of the video for certain video resolutions. This happens for both av1 and hevc, so if you have this issue then switch to h264 video codec option in advanced settings. +

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".

@@ -84,6 +82,13 @@ + + +
    +
  • Default to h264 video codec because of amd driver issues (black bar) and for better compatibility with software
  • +
+
+
    diff --git a/src/egl.c b/src/egl.c index b574f90..79aab1f 100644 --- a/src/egl.c +++ b/src/egl.c @@ -210,7 +210,7 @@ static bool gsr_egl_create_window(gsr_egl *self, bool wayland) { } static bool gsr_egl_load_egl(gsr_egl *self, void *library) { - dlsym_assign required_dlsym[] = { + const dlsym_assign required_dlsym[] = { { (void**)&self->eglGetDisplay, "eglGetDisplay" }, { (void**)&self->eglInitialize, "eglInitialize" }, { (void**)&self->eglTerminate, "eglTerminate" }, @@ -235,7 +235,7 @@ static bool gsr_egl_load_egl(gsr_egl *self, void *library) { } static bool gsr_egl_load_gl(gsr_egl *self, void *library) { - dlsym_assign required_dlsym[] = { + const dlsym_assign required_dlsym[] = { { (void**)&self->glGetString, "glGetString" }, { NULL, NULL } diff --git a/src/main.cpp b/src/main.cpp index 5e52f0f..22ad190 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -394,6 +394,7 @@ static void setup_systray(GtkApplication *app) { app_indicator_set_icon_full(app_indicator, tray_idle_icon_name, "Idle"); // This triggers Gdk assert: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed, // dont know why but it works anyways + app_indicator_set_title(app_indicator, "GPU Screen Recorder"); app_indicator_set_status(app_indicator, APP_INDICATOR_STATUS_ACTIVE); app_indicator_set_menu(app_indicator, GTK_MENU(create_systray_menu(app, SystrayPage::FRONT))); } -- cgit v1.2.3