Firefox package maintainer for Fedora Linux
Hardware accelerated video decoding in Firefox is made possible by
On systems with Intel graphics cards, acceleration only works with the libva-intel-driver driver (the libva-intel-hybrid-driver driver is currently
After that, you need to make sure that you use the VA-API to speed up when watching videos (there may be compatibility issues with codecs, video sizes and libraries), for which you can enable debug mode by running Firefox with the MOZ_LOG environment variable and check the output for the "VA- API FFmpeg init successful" and
"Got one VAAPI frame output".
MOZ_LOG="PlatformDecoderModule:5" MOZ_ENABLE_WAYLAND=1 firefox
The use of acceleration when watching Youtube depends on the video encoding method (H.264, AV1, etc.). You can view the format in the right-click context menu in the "Stats for nerds" section. To select the format supported by the hardware video decoding system, you can use the add-on
Separately, it is noted that packages with Firefox 77.0 for Fedora include additional patches that affect performance and stability, which are not included in the regular builds of Firefox 77.0 from Mozilla. Inclusion of these patches in the main composition is expected only in Firefox 78.0 (users can use the beta version of Firefox 78 or nightly builds from Mozilla by launching the browser with the command "MOZ_ENABLE_WAYLAND=1 ./firefox"). In addition, Mozilla builds use the built-in libvpx library that does not support VA-API to decode VP8/VP9 - if you need to speed up VP8/VP9 decoding, disable libvpx by setting the "media.ffvpx.enabled" variable in about: config to " false" (in the package from the Fedora repository, libvpx is already disabled).
Source: opennet.ru