dec05eba / gpu-screen-recorder-issues

GPU Screen Recorder issue tracker
20 stars 0 forks source link

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

Closed OlegAckbar closed 2 months ago

OlegAckbar commented 2 months ago

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):

Additional context drm_info.txt

OlegAckbar commented 2 months ago

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

Запись экрана_20240916_224716.webm

dec05eba commented 2 months ago

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

dec05eba commented 2 months ago

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

dec05eba commented 2 months ago

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.