How do people get browser video hardware acceleration working reliably on Fedora?

I recently started watching high-resolution YouTube videos on Fedora, but Firefox struggles with them. Playback is sometimes janky, and I sometimes see visual artifacts.

After some trial and error, I managed to get Chrome Canary to play H.264, H.265, and AV1 videos with hardware-accelerated decoding. YouTube AV1 videos now work well with this command:

/usr/bin/google-chrome-canary \
  --enable-unsafe-webgpu \
  --ozone-platform=x11 \
  --use-angle=vulkan \
  --enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,AcceleratedVideoDecoder,AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,VaapiIgnoreDriverChecks

I’m using an AMD GPU. Also, Chrome Stable does not work with this command, so I had to use the Canary version.

I’m curious how other Fedora users handle browser video playback with hardware acceleration.

By not using Chrome browsers, SCNR :slight_smile:

Hardware Video Acceleration - Fedora Project Wiki
https://fedoraproject.org/wiki/Firefox_Hardware_acceleration