How To Enable Video Decoding In Chromium Based Browsers on Linux
In this video I cover how to enable video decoding on Chromium based browsers on Linux if you are using an Arch based distribution.
Please note this will not work with 8K videos.
Step 1. Install the VDPAU Back-end for VA API.
https://aur.archlinux.org/packages/libva-vdpau-driver-vp9-git
The package you want to install libva-vdpau-driver-vp9-git which can be installed with your favourite AUR helper.
Step 2. Create a flags.conf file.
The name of the conf file will differ depending on the browser in question, for example for Chromium you would name the file chromium-flags and for Chrome, it would be chrome-flags.
The file will be created in the config directory, which for me is located at home/ryanj/config.
This config directory is usually hidden by default, so you will need to enable show hidden files using your file explorer.
Within the created conf file, you want the following listed.
--disable-gpu-driver-bug-workarounds
--enable-native-gpu-memory-buffers
--enable-gpu-rasterization
--enable-oop-rasterization
--disable-gpu-vsync
--enable-zero-copy
--use-gl=desktop
--enable-accelerated-video-decode
--enable-accelerated-video-encode
--ignore-gpu-blocklist
--enable-gpu-compositing
--enable-smooth-scrolling
--disable-gpu-driver-workarounds
--disable-font-subpixel-positioning
--enable-features=VaapiVideoDecoder
--disable-features=UseChromeOSDirectVideoDecoder
Once done, save the changes and restart the browser.
To check this is working, navigate to chrome://gpu and now Video Decode should read Hardware accelerated.
#chrome #linux #decoding