https://bugs.kde.org/show_bug.cgi?id=478309

--- Comment #13 from Stefan Hoffmeister <stefan.hoffmeis...@econos.de> ---
The Pipewire output suggests the following:

* the preview source data (i.e. "the window" == output) offers only format
DRM_FORMAT_ARGB8888 (VideoFormat:BGRA, VideoFormat:BGRx)
* the preview sink data (i.e. "the preview" == input) accepts only format
VideoFormat:RGBx

That is not compatible. That causes the failure with "Invalid argument (input
format (no more input formats))".

Now, the _output_ offers DRM_FORMAT_ARGB8888 because of special-case code.

And on the input side (in KPipewire) the implementation of queryDmaBufModifiers
may have a logic defect which incorrectly short-circuits processing of _all_
spa_video_formats ("break" vs "continue")

With a bit of hackery in queryDmaBufModifiers, the input will now successfully
accept DRM_FORMAT_ARGB8888, will use the "memfd" path ...

... and will silently _not work_, without any errors / diagnostics, and without
a preview.

TL;DR: whenever kwin forces DRM_FORMAT_ARGB8888 in the screencast plugin,
kpipewire is not prepared to handle that.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to