AOSC Wiki / Software / Firefox / .
Also available in: 简体中文

Enable VA-API

Starting from 78, Firefox supports VA-API (starting from 80, if you are using Xorg), but the feature is not enabled by default.

To turn on VA-API capability:

  1. Make sure VA-API is working in the first place. You can check VA-API status via installing libva-utils and run vainfo.
  2. Enable WebRender. Go to about:config and search for gfx.webrender.all, set it to true. If it doesn’t work, you can open OpenGL compositor, Go to about:config and search for layers.acceleration.force-enabled, set it to true.
  3. Also in about:config, set media.ffmpeg.vaapi.enabled to true.
  4. Also in about:config, set media.ffvpx.enabled to false.
  5. If you are using Xorg, set environmental variable MOZ_X11_EGL=1
  6. If you are using Wayland, set environmental variable MOZ_ENABLE_WAYLAND=1.