Got the last bug fixed to make #gtk4 play video *with overlay* in full zero-copy / hardware plane only mode \o/
This allows highly efficient playback with e.g. subtitles and other overlays, only using the GPU when GTK needs to repaint parts of the main window / the overlay.
I'll talk more about this at my presentation at #fosdem2024, see https://fosdem.org/2024/schedule/event/fosdem-2024-3557-the-state-of-video-offloading-on-the-linux-desktop/
Relevant unmerged work:
- https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6618
- https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1443
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5727
Only for V4L2 devices:
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5890
Note that it'll still take a while until #gnomeshell / Mutter will be able to do such more complex hardware plane stuff.
Having software that already makes use of these features widely available will make things much easier though. And people working on #embedded #Linux might want to consider giving #gtk4 a look - even *very* slow GPUs should be able to render only occasionally updating parts of the screen while the video plays smoothly.
@rmader excited to see this talk!
@rmader Awesome news!