Google Chrome 稳定版 109 之后不再有硬件加速

Google Chrome 稳定版 109 之后不再有硬件加速

我遇到了一个问题,在 109 版之后,google-chrome-stable 无法为视频提供硬件加速。这只是一个 chrome 问题。我使用 chrome 在 4 个操作系统之间共享密码和书签

我使用的是 i5-12400。也使用 CPU 进行图形处理。安装了图形驱动程序,运行 Kubuntu 22.04

htpc@htpc:~$ vainfo 
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI
      VAProfileHEVCMain               : VAEntrypointEncSliceLP
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointEncSliceLP
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSliceLP
      VAProfileVP9Profile1            : VAEntrypointVLD
      VAProfileVP9Profile1            : VAEntrypointEncSliceLP
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointEncSliceLP
      VAProfileVP9Profile3            : VAEntrypointVLD
      VAProfileVP9Profile3            : VAEntrypointEncSliceLP
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointEncSlice
      VAProfileHEVCMain422_10         : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointEncSlice
      VAProfileHEVCMain422_12         : VAEntrypointVLD
      VAProfileHEVCMain422_12         : VAEntrypointEncSlice
      VAProfileHEVCMain444            : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         : VAEntrypointVLD
      VAProfileHEVCMain444_10         : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          : VAEntrypointVLD
      VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         : VAEntrypointVLD
      VAProfileHEVCSccMain444         : VAEntrypointEncSliceLP
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP

Chrome 109 “chrome://gpu” 输出启动时google-chrome-stable --use-gl=egl --disable-gpu-driver-bug-workarounds --disable-gpu-driver-workarounds --enable-zero-copy --disable-features=UseChromeOSDirectVideoDecoder --enable-features=VaapiVideoDecoder,VaapiIgnoreDriverChecks,PlatformHEVCDecoderSupport,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE Chrome 109 有效

我安装了 chrome 114,视频解码下没有报告任何内容。此屏幕截图与 109 具有相同的(工作)标志。

/usr/bin/google-chrome-stable --use-gl=egl --disable-gpu-driver-bug-workarounds --disable-gpu-driver-workarounds --enable-zero-copy --disable-features=UseChromeOSDirectVideoDecoder --enable-features=VaapiVideoDecoder,VaapiIgnoreDriverChecks,PlatformHEVCDecoderSupport,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE

Chrome 114 与 109 具有相同的标志

我尝试了以下标志,它们都显示如下输出

google-chrome-stable --enable-features=VaapiVideoDecoder,Vaapi --disable-features=UseChromeOSDirectVideoDecoder
google-chrome-stable --enable-features=VaapiVideoDecoder
google-chrome-stable --enable-features=VaapiVideoDecoder,Vaapi
google-chrome-stable --enable-features=VaapiVideoDecoder,Vaapi --disable-features=UseChromeOSDirectVideoDecoder --disable-gpu-driver-bug-workarounds
google-chrome-stable --enable-features=VaapiVideoDecoder,Vaapi --disable-features=UseChromeOSDirectVideoDecoder --disable-gpu-driver-bug-workarounds --disable-gpu-driver-workarounds
google-chrome-stable --enable-features=VaapiVideoDecoder,Vaapi --disable-features=UseChromeOSDirectVideoDecoder --disable-gpu-driver-bug-workarounds --disable-gpu-driver-workarounds --use-gl=angle
google-chrome-stable --enable-features=VaapiVideoDecoder,Vaapi --disable-features=UseChromeOSDirectVideoDecoder --disable-gpu-driver-bug-workarounds --disable-gpu-driver-workarounds --use-gl=egl

尝试启用 vaapi 的所有标志的标头

空白视频硬件加速

如果我播放任何高分辨率视频,我的 Chrome CPU 使用率会上升到 400-500%,而 GPU 使用率很低。显然不是硬件加速。

如果我安装了 chromium hwacc snap 版本,我就可以开始使用一切,并且支持比 109 更多的编解码器,但我无法真正使用它,因为我的所有密码和书签都没有保存,也无法与我的谷歌帐户同步。 Chromium hwacc snap 开箱即用

我如何才能恢复 Chrome 硬件加速?这显然是 Chrome 特有的问题。

相关内容