enable-chromium-hevc-hardware-decoding icon indicating copy to clipboard operation
enable-chromium-hevc-hardware-decoding copied to clipboard

Linux HW decode NOT work

Open wx5391805 opened this issue 1 year ago • 7 comments

Linux arm64 fails, vaapi_video_decoder.cc should now only serve ChromeOS. vaapi_video_video_decode_accelerator.cc is the Linux path now. Have you tried it on Linux? Chromium 110 is somewhat different from the previous version on Linux hardware acceleration. Thank you very much.

wx5391805 avatar Mar 07 '23 12:03 wx5391805

Well, I have to correct it, it’s really bad under Linux, there are two decoders, VdaVideoDecoder and VaapiVideoDecoder, HEVC code is in the latter, the choice of decoder is limited by several switches such as UseChromeOSDirectVideoDecoder, Vulkan, etc., and it has something to do with the version.

wx5391805 avatar Mar 08 '23 07:03 wx5391805

I think chromium media has a plan to completely remove the use of VDAVideoDecoder and finally switch to VaapiVideoDecoder, however since vaapi isn’t supported well on intel iGPU devices on chrome for now and not to mention that amd and nvidia GPUs doesnt officially support vaapi at all, and Linux arm64 devices dont use vaapi as well. So i think i can’t help to solve this for now since the infrastructure on linux chrome is really bad and the ROI is too low.

StaZhu avatar Mar 09 '23 10:03 StaZhu

Yeah I agree with you. The fact is that I do use vaapi on my Linux arm64 now. It works on Chromium 102. It's just that linux users with NV GPUs can't use VaapiVideoDecoder because of the drive. Unfortunately, VdaVideoDecoder also doesn't work since 110, which prevents me from upgrading.

wx5391805 avatar Mar 10 '23 11:03 wx5391805

NVIDIA and AMD have now focused on VulkanVideo, unfortunately the Chrome Media team has no intention of implementing Vulkan decoding. But the situation may change in the future, as many Android OEM/IHV seem to be very interested in VulkanVideo

Can you fire a new crbug issue and ask chromium folks if they have a plan to implement vulkan video support? The decision completely depends on chrome media team i think.

StaZhu avatar Mar 20 '23 05:03 StaZhu

I downloaded the deb and finally i can watch hevc in a browser thanks. My only question is how can i set this up to work in brave which is my main browser?

joewood9364 avatar Apr 30 '24 18:04 joewood9364

I downloaded the deb and finally i can watch hevc in a browser thanks. My only question is how can i set this up to work in brave which is my main browser?

You can’t, to integrate SW decoding, browser needs to cherry pick the SW commit, and I don’t think brave want to do that.

StaZhu avatar May 01 '24 01:05 StaZhu

https://github.com/brave/brave-browser/issues/37963 I made a feature request (amongst thousands of issues lol). Brave did recently enable a flag for auto-scrolling on Linux which upstream chromium hasn't done so they might integrate your SW commits?

joewood9364 avatar May 01 '24 11:05 joewood9364