You are not logged in.

#1 2022-04-05 17:59:09

mintsoup
Member
Registered: 2020-09-06
Posts: 5

[SOLVED] Brave doesn't use video decode acceleration

I am using brave, and I cannot get video acceleration to work.
In the about://gpu tab, I get this:


Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Disabled
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Raw Draw: Disabled
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

As you can see, it says Video Decode is hardware accelerated. However, whenever I play a video, the media tab in developer tools shows that most of the time it's not using a hardware video decoding (Decoder name says "FFmpeg video decoder" and hardware decoder is false) and I get high CPU usage. I can reproduce the same behavior in chromium, but mpv strangely does work with hardware acceleration.

Here are my brave flags:
--enable-accelerated-mjpeg-decode --enable-accelerated-video --ignore-gpu-blacklist --enable-native-gpu-memory-buffers --enable-gpu-rasterization --enable-features=VaapiVideoDecoder



Any help?

EDIT: HWA works now. I had to:
1. Install the libva-vdpau-driver-vp9-git package
2. Use the following brave flags:
--enable-accelerated-mjpeg-decode
--enable-accelerated-video
--ignore-gpu-blacklist
--enable-native-gpu-memory-buffers
--enable-gpu-rasterization
--enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization
--use-gl=desktop
--enable-zero-copy
--enable-accelerated-video-decode
--disable-features=UseChromeOSDirectVideoDecoder
--disable-gpu-sandbox

Last edited by mintsoup (2022-04-07 10:49:55)

Offline

#2 2022-04-06 14:29:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,790

Re: [SOLVED] Brave doesn't use video decode acceleration

This is always buggy and broken in various forms or the necessary flags change/or... you'll probably want to follow this thread: https://bbs.archlinux.org/viewtopic.php?id=244031&p=26 new discoveries are often added and made there.

Offline

#3 2022-04-06 15:45:03

mintsoup
Member
Registered: 2020-09-06
Posts: 5

Re: [SOLVED] Brave doesn't use video decode acceleration

Thank you for the link! Somehow, it didn't show up in my search, but now HW acceleration works fine.

Last edited by mintsoup (2022-04-06 15:46:00)

Offline

#4 2022-04-06 15:51:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,790

Re: [SOLVED] Brave doesn't use video decode acceleration

Please add a bit of information on what the final solution was and edit the title in the first post to mark as [SOLVED]

Offline

Board footer

Powered by FluxBB