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:
- Make sure VA-API is working in the first place. You can check VA-API status via installing
libva-utilsand runvainfo. - Enable
WebRender. Go toabout:configand search forgfx.webrender.all, set it totrue. If it doesn’t work, you can openOpenGL compositor, Go toabout:configand search forlayers.acceleration.force-enabled, set it totrue. - Also in
about:config, setmedia.ffmpeg.vaapi.enabledtotrue. - Also in
about:config, setmedia.ffvpx.enabledtofalse. - If you are using Xorg, set environmental variable
MOZ_X11_EGL=1 - If you are using Wayland, set environmental variable
MOZ_ENABLE_WAYLAND=1.