Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913341 - media-video/obs-studio pipewire/screencast inconsistent use flag naming
Summary: media-video/obs-studio pipewire/screencast inconsistent use flag naming
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Chiitoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-30 10:36 UTC by ktoupt
Modified: 2024-03-13 13:04 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ktoupt 2023-08-30 10:36:52 UTC
media-libs/libsdl2 and media-video/mpv use the pipewire flag to mean that the sound will use PipeWire

sys-apps/xdg-desktop-portal and www-client/firefox use the screencast flag to mean enabling support for screen cast using PipeWire

media-video/obs-studio, inconsistently, uses the pipewire use flag to allow for screen capture via PipeWrire (not sound). There is, thankfully, a warning when neither the alsa or pulseaudio use flags are enabled; however, I still think it is better to rename the pipewire use flag to screencast for consistency...

Although, looking at https://www.gentoo.org/support/use-flags/, it looks like there are other ebuilds that use the pipewire use flag for things other than sound, so...

Reproducible: Always
Comment 1 Enne Eziarc 2023-08-31 00:57:01 UTC
I want to add that it's also lacking an explanation that you *need* to be running under Wayland for Pipewire video capture to work (which imo is worth an upstream bug).

In X11 there's apparently no option to grab a PW video source (e.g. something running inside gamescope) and no error messages either; it just disables it completely.

This is also a bit confusing because there's a third-party pipewire *audio* plugin as well.
Comment 2 Chiitoo gentoo-dev 2023-09-01 20:50:24 UTC
Yeah, I don't use PipeWire myself, and what it actually can do with OBS Studio is a bit of a mystery for me still.  Will need to try it out sometime (soon I hope).

Certainly wasn't aware of the Wayland bit.

Thank you for the report!
Comment 3 Gentookh 2024-03-13 11:45:45 UTC
+1 for renaming `pipewire` use-flag into `screencast` as it also used by www-client/chromium. And, perhaps, should it be enabled by default?
Comment 4 Chiitoo gentoo-dev 2024-03-13 13:04:48 UTC
(In reply to Gentookh from comment #3)
> +1 for renaming `pipewire` use-flag into `screencast` as it also used by
> www-client/chromium. And, perhaps, should it be enabled by default?

Yeah, I will likely rename it for that use-case soon, especially considering there is some audio-related work going on as well [1].

As for defaults, the screencast functionality seems to be for Wayland only, so prooobably not going to be enabled by default (I did see a comment suggesting it should be possible to enable in on X11 too, but I could not get it to work yet... though they may have been talking about audio capture).

Furthermore, looking at other packages, it seems to be default only for two KDE meta packages, as well as the Plasma profile.

1. https://github.com/obsproject/obs-studio/pull/6207
2. https://github.com/obsproject/obs-studio/pull/6207#issuecomment-1079094383