msojocs / bilibili-linux

基于哔哩哔哩官方客户端移植的Linux版本 支持漫游
MIT License
698 stars 34 forks source link

add vaapi flags as default to enable HEVC and H264(AVC) #107

Open AnterCreeper opened 4 months ago

AnterCreeper commented 4 months ago

on X11 use these: --use-gl=egl --enable-features=PlatformHEVCDecoderSupport --disable-features=UseChromeOSDirectVideoDecoder

should work with old i965 vaapi driver(not tested with intel-media-driver, may need add LIBVA_DRIVER_NAME env) wayland may need higher backend chromium version.

For someone from future, If read this, if chrome 122 used by electron someday, use these below:(for X11) --use-gl=angle --enable-features=PlatformHEVCDecoderSupport,VaapiVideoDecodeLinuxGL