[FFmpeg-devel] [PATCH v2] libavfilter: add PipeWire-based grab
François-Simon Fauteux-Chapleau
francois-simon.fauteux-chapleau at savoirfairelinux.com
Wed Aug 7 20:29:52 EEST 2024
----- On Aug 6, 2024, at 11:00 PM, Quack Doc quackdoctech at gmail.com wrote:
> For a POC I commented out the fd stuff so it wouldn't fail on me and
> replaced pw_context_connect_fd() with pw_context_connect() and it
> seemed to work fine with gamescope, gamescope only produces RGB frames
> and not YUV frames however. I did try my camera and it did not seem to
> work, which is more or less what I had expected.
>
> perhaps a couple simple if statements would be good enough and adding
> YUV formats?
If all it takes to solve the issue is adding a couple of if statements,
then I'll be more than happy to make the change and include it in the
next version of the patch. Adding a few YUV formats should also be
straightforward.
> also Looking at it, it seems like this only supports 8bit formats?
> Though it didn't make my capture fail despite my monitor running in
> 10bit so perhaps pipewire can handle that itself?
Maybe. I don't know how PipeWire handles pixel formats under the hood,
all I can say is that the patch doesn't explicitly support any 10-bit
format, as you've already noticed.
More information about the ffmpeg-devel
mailing list