硬件加速解码——Chromium/Chrome——因特尔

配置驱动
vaapi——HardwareVideoAcceleration - Debian Wiki
guc/huc——Intel graphics - ArchWiki
配置完后终端运行,关机重启——sudo update-initramfs -c -k all
Chromium——debian12安全更新源里有最新版(中文——chromium-l10n)
Chrome——bing搜一下,sudo gdebi 安装。
安装完后,终端运行应用
Chromium——chromium --ignore-gpu-blocklist --enable-features=VaapiVideoDecodeLinuxGL
Chrome——google-chrome --ignore-gpu-blocklist --enable-features=VaapiVideoDecodeLinuxGL
PS:哔哩哔哩hevc解码(硬件支持随便选),Youtube安装h264扩展。


Chrome 131 版本
google-chrome --enable-features=AcceleratedVideoDecodeLinuxGL,AcceleratedVideoEncoder

我用的是 chromium,刚刚试了你提供的选项,发现不能播放 h265 视频。

我当前用的是这些选项,可以播放 h265 视频:

/usr/bin/chromium --use-gl=angle --use-angle=gl --enable-features=VaapiVideoDecoder,VaapiVideoDecodeLinuxGL

Chromium 还是用之前的 20241117
chromium --enable-features=VaapiVideoDecodeLinuxGL,VaapiVideoEncoder

Vulkan 优点是即使开视频弹幕3D开销也低,缺点是b站hevc会用不了。
google-chrome --enable-features=Vulkan,DefaultANGLEVulkan,VulkanFromANGLE,AcceleratedVideoEncoder

chrome要用新的,chromium用旧的。

1 个赞

在AMD上,vaapi使用的是/usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so,导致报错:
vaapi_video_decoder.cc(1225)] : failed Initialize()ing the frame pool

似乎从Chrome 116开始,只支持iHD_drv_video.so了,:cry:,我A卡十分痛苦!