Hardware decoding on Linux
Intel and AMD
ffmpeg, both cards are supported by VA-API through
libva-mesa-driver. Make sure that your system does not have the following packages,
You need to use
hwdec=vaapi and other options can be configured according to your GPU. To make it permanent, add it to
Intel HD graphics need
i965-va-driver installed to work properly (at least on debian stretch).
Since dedicated graphics are going to be used, some environment variables are specified to instruct the driver to load specific modules.
DRI_PRIME=1 # for laptops with switchable graphics LIBVA_DRIVER_NAME=r600 # value depends on the driver, check /usr/lib/dri for possible options
In mpv, you specify
gpu-context=x11egl for Xorg.