StaZhu / enable-chromium-hevc-hardware-decoding

A guide that teach you enable hardware HEVC decoding & encoding for Chrome / Edge, or build a custom version of Chromium / Electron that supports hardware & software HEVC decoding and hardware HEVC encoding.
MIT License
1.15k stars 56 forks source link

linux xorg 进程 CPU会逐渐变成100%, 内存也在增大 #60

Open ashimidashajia opened 8 months ago

ashimidashajia commented 8 months ago

非常感谢您对 chrome 硬解的贡献。

我在linux 下已经编译了最新的 Libva 和 media driver, chrome 添加--enable-features=VaapiVideoDecodeLinuxGL,启动chrome可以正常解码h265。 长稳测试时,发现 xorg 进程内存会变大,CPU占用率会逐渐达到100%。 如果不进行h265解码,一切正常。 这可能是什么原因导致的呢?有没有什么分析的方向?

StaZhu commented 8 months ago

抱歉,回复比较晚,其他Codec有这个问题吗

ashimidashajia commented 8 months ago

其他的我没测试过。但我在同样的Linux环境下,使用mpv播放(调用的也是VAAPI硬解)同一个h265编码的文件,长稳测试就不会出现这个问题。但用 chrome 循环播放进行长稳就会这样。

ashimidashajia commented 8 months ago

xorg 进程内存会渐长,感觉像是什么东西没释放,越积累越多,导致CPU使用率越来越高。