libva-2.23.0

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 10. Graphics APIs

- Prev

  libgbm-1.0.4

- Next

  DRI from Mesa-25.3.5

- Up
- Home

# libva-2.23.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.

### Important

For the lib32 installation instructions, they require new Meson cross files from MLFS, as `--libdir=/usr/lib32` has been moved to the cross files and no longer appear in the instructions. Install the new cross files so that 32-bit libraries don't get installed in `/usr/lib`.

- Download: https://github.com/intel/libva/archive/2.23.0/libva-2.23.0.tar.gz

### libva Dependencies

Required
Xorg build environment and libdrm-2.4.131
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 * &&
    meson setup --prefix=/usr            \
                --buildtype=release      \
                --cross-file=lib32       \
                .. &&
    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.3.5 page to see how to break it.

- For Intel iGPUs, Haswell CPUs or earlier, install intel-vaapi-driver.

- For Intel iGPUs, Broadwell CPUs or later, and Intel Arc GPUs, install intel-media-driver.

- For ATI/AMD Radeon HD 2xxx GPUs and later, install Mesa-25.3.5.

- For supported NVIDIA GPUs, using Mesa's open source drivers, install Mesa-25.3.5.

- For NVIDIA GPUs, using NVIDIA, install NVIDIA-VA-API-Driver-0.0.14.

## Command Explanations

### 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

- Prev

  libgbm-1.0.4

- Next

  DRI from Mesa-25.3.5

- Up
- Home