From d12f312bc13874b9adf076103cf5f1325a0b1249 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 24 Feb 2025 01:30:16 +0100 Subject: Change jpeg quality parameters --- TODO | 1 + src/main.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index de00211..d4a11ce 100644 --- a/TODO +++ b/TODO @@ -204,6 +204,7 @@ Ffmpeg fixed black bars in videos on amd when using hevc and when recording at s https://github.com/FFmpeg/FFmpeg/commit/d0facac679faf45d3356dff2e2cb382580d7a521 Disable gpu screen recorder black bar handling when using hevc on amd when the libavcodec version is the one that comes after those commits. Also consider the mesa version, to see if the gpu supports this. + The version is libavcodec >= 61.28.100 Use opengl compute shader instead of graphics shader. This might allow for better performance when games are using 100% of graphics unit which might fix issue with 100% gpu usage causing gpu screen recorder to run slow when not using vaapi to convert rgb to nv12(?). diff --git a/src/main.cpp b/src/main.cpp index 42cf4d2..f96240e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2480,16 +2480,16 @@ static gsr_color_range image_format_to_color_range(gsr_image_format image_format static int video_quality_to_image_quality_value(VideoQuality video_quality) { switch(video_quality) { case VideoQuality::MEDIUM: - return 60; - case VideoQuality::HIGH: return 70; - case VideoQuality::VERY_HIGH: + case VideoQuality::HIGH: return 80; + case VideoQuality::VERY_HIGH: + return 85; case VideoQuality::ULTRA: - return 95; + return 97; } assert(false); - return 80; + return 85; } // TODO: 10-bit and hdr. -- cgit v1.2.3-70-g09d2