A simple(*) test program that demonstrates how to play video in drmprime buffers from ffmpeg to Wayland. It has two modes - it can play to an EGL surface mapped onto a Wayland buffer or it can map the drmprime buffer directly to a wayland buffer and play using that (more efficient).
It has both simple output pacing and letter/pillarboxing for video.
(*) Nothing in Wayland is ever truly simple
sudo apt install libavcodec-dev libavformat-dev libavfilter-dev libdrm-dev\ libepoxy-dev libwayland-dev libwayland-bin\ libwayland-client0 libwayland-egl1 wayland-protocols
sudo apt install libfreetype-dev fonts-freefont-ttf
sudo apt install libgbm-dev libgles-dev
meson setup build cd build meson compile
To play directly to Wayland:
./hello_wayland
To play via EGL:
./hello_wayland -e
To play stream with ticker & cube
./hello_wayland --cube --ticker "Hello World! "
To get a full list of options: ./hello_wayland -h