VAAPI

VAAPI (Video Acceleration API) Article description::provides access to graphics hardware (GPU) acceleration for video processing.

Global
VAAPI support can be enabled system-wide by adding the  value to the USE variable:

Enabling VAAPI support will pull in the package, which has the following USE flags:

These flags can be adjusted in.

The system needs to be updated if the USE variable has been set to :

Usage
Emerge and run  to check VAAPI support.

It is possible to override the automatic VAAPI driver selection with the LIBVA_DRIVER_NAME variable:


 * Intel:
 * For libva-intel-driver use
 * For libva-intel-media-driver use
 * NVIDIA:
 * For Nouveau use
 * For NVIDIA use
 * ATI/AMD:
 * For AMDGPU driver use

When setting LIBVA_DRIVER_NAME to a driver for a secondary GPU, be sure to set DRI_PRIME accordingly as well.

Firefox
Firefox state can checked in.

VLC
VLC supports VAAPI natively. Activate the appropriate setting through the preferences menu.

mpv
mpv also supports the VAAPI acceleration through the command-line option.

If the hardware supports only h264 decoding, creating a configuration file similar to the following will enable the hardware to use VAAPI for h264 decoding to watch YouTube:

If hardware decoding works for Intel GPU - in the following activity can be observed in in Video line: