Opened 4 months ago

Last modified 2 months ago

#10742 new enhancement

Add Wayland/Pipewire support for Screen Recording

Reported by: Lucas Varsky Owned by:
Priority: important Component: ffmpeg
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Ffmpeg's screen recording capabilities are in my experience the most efficient on Linux, allowing under-powered devices such as laptops to screen record effectively.
But this functionality is hampered by being X11 only due to using x11grab and probably more technical parts I'm not aware of.
I am a user, not a developer, I'm sure I missed technical details, eitherway.

This is the ideal moment for adding support for screen recording using the Linux Wayland stack (Pipewire, XDG Portals) as most Linux developers are desperate to complete the migration from X11 to Wayland, going as far as removing X11 from Fedora KDE in the next version.
They feel it's ready for widespread use and time for porting is running out before bug trackers get flooded with bug reports.

The current behavior of screen recording with ffmpeg on wayland is a black screen as output.

Change History (1)

comment:1 by Shmerl, 2 months ago

To add the the above, even though ffmpeg has kmsgrab option, it's not an adequate method for Wayland and Linux desktop in general either. So ffmpeg really needs pipewire + xdg portal support to work for screen and window capturing.

See what KDE developers have to say about that here: https://bugs.kde.org/show_bug.cgi?id=470440

> kmsgrab is not a good way to do screen recording and will only get more problematic over time, as we start to use more hardware features it can't deal with.

> In general, please use the xdg portal system to do screen casting, which handles these sort of things automatically.

Last edited 2 months ago by Shmerl (previous) (diff)
Note: See TracTickets for help on using tickets.