Enable Hardware Accelerated Video (vaapi) {Linux}
-
@achilleus That's not the right flag you are looking at, you'd need the #enable one.
You can find the right info in the recent thread here Hardware-accelerated video encode
-
@npro Thanks, it works...for now.
-
@yochananmarqos I tried again around this time, with the same negative results. I have not managed to enable hardware acceleration for use on youtube in any distro.
In videos at 1080 @ 60fps it begins to be necessary
-
@zimudec That guide has been out of date for awhile. I wrote my own revised version and try and keep it up to date:
-
@yochananmarqos It seems that things have changed, but I still can't enable GPU acceleration.
I have done many experiments and everything the guide says. The system indicates that youtube uses vp9, which I understand is software acceleration
-
@zimudec See https://wiki.archlinux.org/title/Chromium#Tips_and_tricks
You may need to block VP9 with one of the extensions mentioned if you GPU does not support it.
-
I did a lot of tests. I enabled hardware acceleration in the browser, as well as starting the browser with parameters --enable-features=VaapiVideoDecoder, --use-gl=egl, --use-gl=desktop, --ignore-gpu-blocklist, even combined.
I also installed the 2 chromium extensions. This always this is the result.
And without any previous configuration, it shows me this.
-
@zimudec This is what I'm using on GNOME (Xorg) with an NVIDIA GPU:
--flag-switches-begin --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization --disable-gpu-driver-bug-workarounds --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization --use-gl=desktop --flag-switches-end
-
I use Ubuntu 20.04 and got hardware video decode working in a rather unusual way, just wanted to put it out here for anyone struggling.
After following this guide(mentioned previously) and still not having hardware decoding, I stumbled upon this and upgraded my Mesa drivers to latest stable version (ref: https://itsfoss.com/install-mesa-ubuntu/) and hardware decode started working.