Chromium和Chrome通用

F12打开调试工具,在More tools里添加Media,

然后查看正在播放的视频是否调用VAAPI硬件解码,

在浏览器启动时添加以下参数即可强制开启硬件解码

(参考:https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/gpu/vaapi.md

VaAPI on Linux with Vulkan

./out/gn/chrome --use-gl=angle --use-angle=vulkan \
--enable-features=AcceleratedVideoEncoder,VaapiOnNvidiaGPUs,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE \
--ignore-gpu-blocklist --disable-gpu-driver-bug-workaround