Proper VA-API support

Summary of issues affecting VDPAU and NVENC/NVDEC:

VDPAU:

  • No video encode support.
  • No Wayland and DMA-BUF support.
  • Poor application support.
  • Missing VP8 decode.

NVENC/NVDEC:

  • Not supported by all applications.
  • Proprietary and only supported on Nvidia GPU.
  • Forces the GPU to P2 state as it depends on CUDA.