Chromium hardware acceleration for video decode with amdgpu

Hi,

is anyone able to enable hardware video decoding in chromium with an amd gpu?

No matter what I do under chrome://gpu it always says:
Video Decode: Software only. Hardware acceleration disabled

Also it states under Problems detected:

  • Accelerated video decode has been disabled, either via blocklist, about:flags or the command line.
    Disabled Features: video_decode

My system has the following specs:
CPU: AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx (8) @ 2.300GHz
GPU: AMD ATI 06:00.0 Picasso

I followed the guides:

Also enabled the hardware settings from here: https://github.com/NixOS/nixos-hardware/tree/master/common/gpu/amd

Thanks for any help

1 Like

Try running Chromium with --enable-features=VaapiVideoDecoder

1 Like

Thanks. I had this option set in ~/.config/chromium-flags.conf but seems like this file is ignored by chromium. But starting chromium from the command line with the following flags enabled accelerated video playback for me:

chromium --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --enable-features=VaapiVideoDecoder  

Now when I got to chrome://gpu I see vulkan is disabled and in the terminal i see the error

Warning: Couldn't open libvulkan.so.1
Info: Couldn't load Vulkan
    at LoadVulkan (../../third_party/dawn/src/dawn_native/vulkan/BackendVk.cpp:135)
    at Initialize (../../third_party/dawn/src/dawn_native/vulkan/BackendVk.cpp:139)

I wonder how to install vulkan properly so it can be used by chromium?

Also how can I set those flags for chromium in nix configuration persistently?