Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

193.3. libva-2.24.1

VA-API — hardware video decode and encode

2.24.1-1 · MIT · 0.1 SBU · 961.3 KiB, 44 files · 42_graphics, 7 of 189 · ports/core/gpu/libva

Homepage: https://github.com/intel/libva

libva is the VA-API loader: the library a program calls to decode or encode video on the GPU. It opens a display (a DRM render node or a Wayland connection), loads the VA-API driver for the GPU behind it from /usr/lib/dri (iHD or i965 for Intel, Mesa’s Gallium driver for AMD, nouveau and virgl) and passes every call through. ffmpeg, mpv, GStreamer, Kodi, VLC, OBS Studio, Qt Multimedia, Qt WebEngine and Chromium reach the hardware decoders through it. Which driver serves which GPU, and how to see what a machine offers, is in Media, colour and time.

Depends on: meson, ninja, libdrm, wayland.

Required by (17): chromium, fastfetch, ffmpeg, gst-plugins-bad, intel-media-driver, kodi, kpipewire, libva-intel-driver, libva-utils, mesa, mpv, obs-studio, opencv, qt6-qtmultimedia, qt6-qtwebengine, thunderbird, vlc.

Sources: libva-2.24.1.tar.gz (299.1 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install libva'

build.sh:

meson setup build \
	--prefix=/usr --libdir=lib \
	--buildtype=release \
	-Dwith_x11=no \
	-Dwith_glx=no \
	-Dwith_win32=no \
	-Dwith_wayland=yes \
	-Ddisable_drm=false \
	-Denable_docs=false
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

Libraries: libva-drm.so, libva-wayland.so, libva.so.

Directories: /usr/include/va, /usr/share/licenses/libva.

libva tries the Intel drivers in order, iHD from intel-media-driver before i965 from libva-intel-driver, so each machine loads the one that serves it. When no driver loads, ffmpeg and mpv fall back to software decoding without saying so; vainfo, from libva-utils, shows which profiles the loaded driver offers.