Currently I do encounter an issue with OBS Studio on Wayland:
Capturing individual display using the Pipe Wire Capture source does not work reliably.
Selecting single displays will only capture the mouse pointer but the captured desktop keeps blank.
If you then intend to switch the screen to be captured Pipe Wire will stop doing so with the error message: [pipewire] Failed to start screencast, denied or cancelled by user
What does work is a full desktop capture of all displays.
But that one comes with serve performance issues / FPS drops in the resulting footage.
Already reported this to the OBS Studio developers but they seem not to officially support Wayland on nVidia as of now.
That’s why I try my luck here :)
Hello there,
many thanks for the reply and dropping the very useful links.
I verified that:
pipewire.service is running
wireplumber.service is running (as this is running the media-session service is not required according to the r/kde reddit sidebar)
I run on pipewire 0.3.56
qt5-wayland is installed as of version 5.15.5+kde39
xdg-desktop-portal is installed as of version 1.14.6
xdg-desktop-portal-kde as version 5.25.4 (which is the one required according to the reddit sidebar or r/kde)
also the protals for gtk and wlroots are isntalled as well but shouldn’t be required according to the docs I’ve read.
xwayland is installed as version 22.1.3
KMS is also properly enabled and working via a the GRUB commandline parameter: nvidia-drm.modeset=1
libgbm is also installed as of version 22.1.4
libnvidia-egl-wayland1 as of version 1.1.9
Also read the appendix regarding known issues but can’t figure out if any of the mentioned limitations is related to the not working display share.
Side note: sharing individual Wayland and XWayland clients using just the Pipe Wire Window capture works fine.
It seems only the Desktop Capture seems not to work as expected.
According to all the things I’ve read and ensure I have everything setup correctly for this to work as it seems.
Is there anything else I might miss or could check if there is a configuration issue on my end?
"No matter what browser you are using, the WebRTC code will check that the environment variable :
XDG_SESSION_TYPE=wayland`
is set in order to use xdg-desktop-portal.
It is set automatically when recent versions of wlroots and systemd are in use."
OpenSuse (Tumbleweed)
OBS Studio Pipewire 0.3 Patch
“A libpipewire0_2 package containing the Pipewire 0.2 client library is also available, so that binaries like Chrome and Electron apps that can’t be patched to use Pipewire 0.3 can still work.”
“Make sure xdg-desktop-portal-wlr and PipeWire are running properly and add a “Screen Capture (PipeWire)” source in OBS.”
OBS Linux Vulkan/OpenGL game capture
Pretty confident its not an nVidia issue.
Check out the Archwiki OBS Studio - Pipewire - Flatpak
“PipeWire also supports containers like Flatpak and does not rely on the audio and video user groups. Instead, it uses a Polkit-like security model, asking Flatpak or Wayland for permission to record screen or audio.”