libva-2.22.0

Introduction to libva

The libva package contains a library which provides access to hardware accelerated video processing, using hardware to accelerate video processing in order to offload the central processing unit (CPU) to decode and encode compressed digital video. The VA API video decode/encode interface is platform and window system independent targeted at Direct Rendering Infrastructure (DRI) in the X Window System however it can potentially also be used with direct framebuffer and graphics sub-systems for video output. Accelerated processing includes support for video decoding, video encoding, subpicture blending, and rendering.

libva Dependencies

Required
Xorg build environment and libdrm-2.4.129

Recommended
libglvnd-1.7.0

Optional
Wayland-1.24.0, and intel-gpu-tools

Installation of libva

Install libva by running the following commands:

cd build &&

meson setup --prefix=/usr --buildtype=release &&

ninja

Now, as the root user:

ninja install

lib32 Installation of libva

Install lib32-libva by running the following commands:

rm -rf * &&
CC="gcc -m32" CXX="g++ -m32"         \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
meson setup --prefix=/usr            \
            --libdir=/usr/lib32      \
            --buildtype=release &&

ninja

Now, as the root user:

DESTDIR=$PWD/DESTDIR ninja install                     &&
cp -vr DESTDIR/usr/lib32/* /usr/lib32                  &&
rm -rf DESTDIR                                         &&
ldconfig

Using VA-API

In order to use VA-API, you need a VA-API driver. Which one you will need depends on your GPU and driver in use for that GPU. The drivers are needed at runtime. For VA-API drivers that come from Mesa, there is a cirular dependency. Read from the Mesa-25.2.2 page to see how to break it.

Command Explanations

[Note]

Note

Inspect meson_options.txt or meson.options for a full list of options.

Contents

Installed Programs: None
Installed Libraries: libva-drm, libva-glx, libva, libva-wayland, and libva-x11
Installed Directory: /usr/include/va

Short Descriptions

libva

contains API functions which provide access to hardware accelerated video processing