Skip to content

Hardware decoding on Linux

Jagannathan Tiruvallur Eachambadi edited this page May 29, 2018 · 5 revisions

Intel and AMD

With recent mesa and ffmpeg, both cards are supported by VA-API through libva>=2.1. Make sure that your system does not have the following packages,

  1. libva-vdpau
  2. libva-va-gl
  3. libvdpau-va-gl

Intel

You need to set hwdec=vaapi and other options can be configured according to your GPU.

AMD with PRIME

Since dedicated graphics are going to be used, some environment variables are specified to instruct the driver to load specific modules.

DRI_PRIME=1
LIBVA_DRIVER_NAME=r600

In mpv, you specific hwdec=vaapi and gpu-context=x11egl for Xorg.