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

Screenshare orientation on vertical monitor #292

Open
LazyWings opened this issue Oct 29, 2024 · 7 comments
Open

Screenshare orientation on vertical monitor #292

LazyWings opened this issue Oct 29, 2024 · 7 comments

Comments

@LazyWings
Copy link

Managed to configure screen sharing to work, but my left side monitor is vertical (transformation settings defined in the hyprland config file). I've tested on Vesktop and OBS studio - issue persists on both.

@id3v1669
Copy link

id3v1669 commented Nov 4, 2024

Can confirm on vesktop, chrome and firefox, but could not replicate in obs.
shot_2024-11-04_12:14:03

@MagneticNeedle
Copy link

can confirm
2024-11-10-225111_hyprshot

@iggyZiggy
Copy link

does anyone have a good workaround for this until it gets fixed?
currently i have to rotate the input in obs and share obs scene instead of my screen for screen sharing purposes

@MagneticNeedle
Copy link

i'll try to fix this, i know why its happening, should be a simple fix, as for workaround i dont think there is any, we will just need to wait till fix is in upstream

@galister
Copy link

It seems that SPA_META_VideoTransform is not present in the buffer metadata for PipeWire streams. This is what many apps, including browsers use to determine if and how the captured image needs to be rotated.

@neta540
Copy link

neta540 commented Nov 28, 2024

I am using a screen with transform 1 and I experience quite similar behavior.

Screenshots and screencasts are partially drawn, with a black area covering parts of the screen.
Screencasts are rotated wrongly as well.

image

Screenshot taken by grim:

image

@Stinjul
Copy link

Stinjul commented Dec 14, 2024

Haven't seen anyone mention this but if your issue is that when you're using full screen capture and only the rotation is wrong (so no partially black captures) you're most likely hitting this issue in WebRTC, which is what all browsers and browser based desktop apps use.

Basically WebRTC doesn't support the SPA_META_VideoTransform metadata XDPH/Pipewire sends.

The workaround as mentioned is using OBS as that does support the transform metadata since 29.1 (or rotate it manually if your version is older) but otherwise we'll have to wait for WebRTC to fix it.

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

No branches or pull requests

7 participants