[FFmpeg-devel] [PATCH v2] libavfilter: add PipeWire-based grab
François-Simon Fauteux-Chapleau
francois-simon.fauteux-chapleau at savoirfairelinux.com
Fri Aug 2 22:41:01 EEST 2024
----- On Aug 2, 2024, at 12:11 PM, Quack Doc quackdoctech at gmail.com wrote:
> Pipewire video capture is more generic. Some compositors like weston
> support pipewire as a backend without portals. Gamescope also creates a
> pipewire output without need for portals, it would be *really* nice to
> support gamescope capture with this. Pipewire also gives access to video
> devices directly as well without needing portals, which allows
> ergonomically letting multiple apps accsess v4l2 devices for instance like
> firefox and say discord. So being able to support the file descriptor
> directly, or using target-object much like the pipewiresrc gstreamer would
> be greatly appreciated.
The patch already supports passing a file descriptor and a PipeWire node ID
directly via the "fd" and "node" options. The portal is only used if these
values are not provided by the user.
The original motivation for adding these options was to allow communication
with the portal to be handled outside of FFmpeg, but I imagine they could also
be used on e.g. Weston to bypass the portal entirely.
More information about the ffmpeg-devel
mailing list