Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

black screen capture on wayland (swaywm, nvidia, gentoo) #9741

Closed
Xephobia opened this issue Oct 21, 2023 · 3 comments
Closed

black screen capture on wayland (swaywm, nvidia, gentoo) #9741

Xephobia opened this issue Oct 21, 2023 · 3 comments
Labels
Linux Affects Linux

Comments

@Xephobia
Copy link

Operating System Info

Other

Other OS

Gentoo

OBS Studio Version

29.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/lObQWdzHmyH6Back

OBS Studio Crash Log URL

No response

Expected Behavior

When using a pipewire screen capture, it should be able to record videos.

Current Behavior

The output is black, with an error: [pipewire] Error id:2 seq:10 res:-32 (Unknown error -32): no more input formats error
This occurs when using the nvidia gpu (with prime-run) but i haven't been able to test on the integrated amd gpu because of #9733

Steps to Reproduce

  1. launch obs with prime-run obs
  2. create a Screen Capture (PipeWire) input
  3. black screen, even after selecting the monitor to record
    ...

Anything else we should know?

I did setup everything right for screen capture on my side, as can be proven both by

  1. trying screen capture on firefox (works)
  2. trying the xdp-screen-cast.py script (also works)
@kkartaltepe
Copy link
Collaborator

kkartaltepe commented Oct 21, 2023

please test the current master commit, and include the compositor and xdg implementation you are using.

@kkartaltepe kkartaltepe added the Linux Affects Linux label Oct 21, 2023
@Xephobia
Copy link
Author

Hi, the error is gone on the last commit, as well as #9733. Now another interesting issue is that red and blue seems to be inverted (as can be seen on the screenshot)
image

a relevant bit in the log seems to be :

info: [pipewire] Negotiated format:
info: [pipewire]     Format: 7 (Spa:Enum:VideoFormat:RGBx)
info: [pipewire]     Size: 1920x1080
info: [pipewire]     Framerate: 0/1

as for the compositor, I am using sway (wlroots) and the xdg implementation I'm using is xdg-desktop-portal-wlr

@kkartaltepe
Copy link
Collaborator

Closing since this is not occuring on main. the other bug is already noted elsewhere and has a fix pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Affects Linux
Projects
None yet
Development

No branches or pull requests

2 participants