dec05eba/gpu-screen-recorder-issues

[BUG] When recording in HDR GSR also records Nigh Light

Closed this issue · 4 comments

Describe the bug
When recording in HDR GSR also records Nigh Light which is unwanted and makes videos orange.

To Reproduce
Try recording anything with HDR and Night Light enabled on KDE

Screenshots
I think it's better to watch this webm in mpv on desktop since it's encoded in HDR.

Replay_2024-09-16_20-56-05.webm

Desktop (please complete the following information):

  • Wayland
  • Desktop environment/Window Manager: KDE
  • Distro: Arch Linux
  • GPU: RX 6700 XT
  • Version (latest flatpak version, aur or source): aur r770.7145619-1

Additional context
drm_info.txt

Here's another example. As you can see, Spectacle records screen just fine.

_20240916_224716.webm

It's not possible to remove the night light when recording monitor with hdr. Try recording with desktop portal option instead (-w portal if you are using gsr command line). I believe thats what spectacle is using so it should work the same way. This option doesn't support hdr (desktop portal for screencast doesn't support hdr yet) so the video will have hdr tonemapped to sdr instead, just like spectacle (unless im incorrect and spectacle supports hdr somehow).

Or actually, it might be possible to ignore it. Let me look into it.

Ok it cant really be fixed. The night light color is mixed with the hdr data. You have to record with desktop portal option instead. I tested that and it works like spectacle. Select desktop portal (-w portal) and h264/hevc/av1 as codec.