nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
502 stars 24 forks source link

unable to capture HDR. #199

Closed GloriousEggroll closed 3 months ago

GloriousEggroll commented 4 months ago

Not sure if this is on the OBS side or the game capture side. I was messing around with capturing helldivers using gamecapture (monitor is 32:9 so no capture card will work at that resolution ratio), made a recording and the colors are all washed out due to the source being captured as SDR.

How am I setting this up for HDR?:

KDE 6 to enable hdr on displays + gamescope (need built from git): gamescope --hdr-enabled -w 5120 -W 5120 -h 1440 -H 1440 -b -- mangohud %command%

OBS advanced video settings are also setup for P010 2100 PQ

I've also verified HDR recording works as intended in OBS when using my El Gato 4K X.

nowrep commented 4 months ago

Try with master, you'll need to set OBS_VKCAPTURE_COLOR_SPACE=2 for games running inside gamescope because the WSI layer resets color space to SRGB (or make the vkcapture layer ordered before wsi layer).