Skip to content

Instantly share code, notes, and snippets.

@berarma
Last active August 2, 2022 21:33
Show Gist options
  • Save berarma/2a982647463090f2ae70ef925736ab1a to your computer and use it in GitHub Desktop.
Save berarma/2a982647463090f2ae70ef925736ab1a to your computer and use it in GitHub Desktop.
Settings for full video hardware acceleration for Firefox 103 on Debian 11 with Ryzen 5 5500U

Enable Hardware Video Acceleration with VA-API on Firefox and AMD GPU

Requirements

Tested with Firefox 103.1.

Use command vainfo to check supported codecs.

Use radeontop to check for AMD GPU usage.

Enable Wayland

Set MOZ_ENABLE_WAYLAND=1.

Automatically enables hardware WebRender and EGL.

Change these settings in about:about

Enable VA-API: media.ffmpeg.vaapi.enabled true

Force hardware WebRender in case it's still disabled: gfx.webrender.all true

Force enable EGL in case it's still disabled: gfx.x11-egl.force-enabled true

Extension to block unsupported video encodings

https://addons.mozilla.org/es/firefox/addon/enhanced-h264ify/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment