-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Scaling on Wayland breaks video streaming #238
Comments
Btw doing |
Same issue on wayfire, it is also wlroots based. |
I was able to get it working by using wlr-randr to change the resolution while the stream was running and that seems to have "fixed" it, needs done every time, though Im wondering if the new fractional scaling stuff might wind up fixing this when it's all merged. |
This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days. |
This issue was closed because it has been stalled for 10 days with no activity. |
I can reproduce this (with v0.19.1) please reopen. |
I can reproduce this on 1.19.1 using Hyprland Edit: Attempting to run with wlr capture method using a 1.5x scaling, just gives me a black screen\ Switching to KMS capture makes the capture work but the mouse doesn't show |
@puffnfresh Just a quick FYI, you can fix it by switching to KMS capture and adding WLR_NO_HARDWARE_CURSORS to your config, this will make KMS have a mouse cursor and work. Why wlr capture doesn't work idrk |
Same here. You can start the stream at 1.0 scaling and then change the factor and it keeps working, but initializing the stream with scaling doesn't work. Edit: both wlr and kms capture behave this way. |
If you are like me and are using sunshine for game streaming, you can use gamescope to start sunshine like this:
This totally works. Even my regular non-gamescope desktop is still getting captured just fine. |
I have the same problem using the I checked the sunshine code and it queries the I tried a ham-fisted patch by slapping my scale factor of two onto
This works for me, but of course is not a proper fix. |
Describe the Bug
On sway, a wlroots based Wayland window manager, if scaling is done, sunshine detects incorrectly the screen resolution and infinitely tries to capture screen but failing. On client, either nothing or a garbled screen appears. I'll gladly provide any other nformation needed.
sunshine.log
Expected Behavior
No response
Additional Context
I have yet to try if it can be replicated on other Wayland compositors or even with scaling on X11. However I'll try this as soon as I can.
Also if I try to run sunshine as root, when it connects to client it segfaults, however I suspect it is a different bug since scaling does not affect it.
Sunshine Host Operating System and Version
Artix Linux
Architecture
64 bit
Sunshine Version
0.14.0
GPU Type
AMD
GPU Model
RX 580
GPU Driver/Mesa Version
22.1.2-3
Capture Method (Linux Only)
Wayland protocol(from what I can tell)
The text was updated successfully, but these errors were encountered: