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
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.
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!
+1 for renaming `pipewire` use-flag into `screencast` as it also used by www-client/chromium. And, perhaps, should it be enabled by default?
(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