You are not logged in.

#501 2021-03-29 16:20:55

DAC324
Member
Registered: 2020-03-12
Posts: 80

Re: chromium: hardware video acceleration with VA-API

BachoSeven wrote:

@DAC324 I've seen that `Fontconfig` error quite often in chromium logs, so I don't think it's a new warning. It's mentioned here and also here

From your first link, I took the recommendation with `--no-sandbox` which apparently works (looks like Chromium is using its own fontconfig within its sandbox - with a different configuration as of now).

Last edited by DAC324 (2021-03-29 16:21:11)

Offline

#502 2021-04-16 06:55:59

sadboi777
Member
Registered: 2020-05-22
Posts: 21

Re: chromium: hardware video acceleration with VA-API

Anybody having is having problems with hardware video acceleration on version 90 again? I'm on Chrome 90 on Ubuntu rb (have to switch for a few months because of a work software that is only available on ubuntu sad ) and no MojoVideoplayer on VP9 video. I have tried turning one the #ignore-gpu-blacklist flag and it does nothing. On version 89 it was working just with the #enable-video-acceleration flag. Any help would be nice.

Last edited by sadboi777 (2021-04-16 06:56:35)

Offline

#503 2021-04-22 17:50:40

3nuc
Member
Registered: 2021-04-04
Posts: 1

Re: chromium: hardware video acceleration with VA-API

Can confirm hardware acceleration doesn't work with v90 even though it worked on v89 with the same flags. chrome://gpu values did not change

decoderImplementation is back to fffmpeg from ExternalDecoder (as described here https://github.com/hmlendea/geforcenow- … -790074014)

My flags that worked on 89 with xserver:
--enable-features=VaapiVideoDecoder
--ignore-gpu-blocklist
--enable-gpu-rasterization
--enable-zero-copy
--disable-gpu-driver-bug-workarounds
--enable-accelerated-video-decode
--use-gl=desktop

Last edited by 3nuc (2021-04-22 17:51:36)

Offline

#504 2021-04-23 04:21:05

sadboi777
Member
Registered: 2020-05-22
Posts: 21

Re: chromium: hardware video acceleration with VA-API

Sad that this topic is dead now. I guess everybody moved to Firefox? On v89 I just used the --enable-accelerated-video-decode flag and it used to work.

Offline

#505 2021-04-26 10:38:39

DAC324
Member
Registered: 2020-03-12
Posts: 80

Re: chromium: hardware video acceleration with VA-API

sadboi777 wrote:

Sad that this topic is dead now.

I hope that it is not entirely dead. Of course, a lot of people do not care anymore as VA-API is enabled in the official Chromium package available from the repo. Hence, no additional configuration efforts are necessary in order to enable hardware acceleration. At least that's what most people are convinced of.

sadboi777 wrote:

I guess everybody moved to Firefox?

I don't think so. At least the Nvidia users will not get hardware acceleration on Firefox on Linux anytime soon.
For a technical explanation, please see Comment 13 in Bug 1693073.

sadboi777 wrote:

On v89 I just used the --enable-accelerated-video-decode flag and it used to work.

On v92 (chromium-dev), I use the following settings in ~/.config/chromium-dev-flags.conf:

--disable-software-rasterizer
--disable-font-subpixel-positioning
--disable-gpu-driver-bug-workarounds
--disable-gpu-driver-workarounds
--disable-gpu-vsync
--enable-accelerated-video-decode
--enable-features=VaapiVideoDecoder
--enable-gpu-compositing
--enable-gpu-rasterization
--enable-native-gpu-memory-buffers
--enable-oop-rasterization
--use-vulkan
--enable-zero-copy
--ignore-gpu-blocklist
--use-gl=desktop

With these settings, I have "VDAVideoDecoder" enabled in chrome://media-internals.
Interestingly, almost no information is found about "VDAVideoDecoder" so I cannot tell if that is a software decoder, or if it indicates that hardware acceleration is active.

UPDATE: According to Issue 522298, this seems to be the new implementation of a video decoder running on GPU, which means hardware accelerated.

Last edited by DAC324 (2021-04-26 12:08:22)

Offline

#506 2021-05-03 17:04:44

sadboi777
Member
Registered: 2020-05-22
Posts: 21

Re: chromium: hardware video acceleration with VA-API

^ I have tried every config but can't get VAAPI to work on anything based on Chromium v90.

Offline

#507 2021-05-03 17:20:31

Alataw
Member
Registered: 2021-01-27
Posts: 20

Re: chromium: hardware video acceleration with VA-API

DAC324 wrote:

With these settings, I have "VDAVideoDecoder" enabled in chrome://media-internals.
Interestingly, almost no information is found about "VDAVideoDecoder" so I cannot tell if that is a software decoder, or if it indicates that hardware acceleration is active.

This seems to be the new implementation of a video decoder running on GPU, which means hardware accelerated.

Yes

Offline

#508 2021-05-26 03:47:16

sadboi777
Member
Registered: 2020-05-22
Posts: 21

Re: chromium: hardware video acceleration with VA-API

sadly it seems like what hope I had since 89 of just using enable-hardware-decoding from chrome://flags on all the chromium based browsers and is not gonna happen.
I think the best to do is just use Firefox now. Google doesn't give a damn about non-chromebook Linux users.

Offline

#509 2021-05-27 16:38:08

madscience
Member
From: Ontario, Canada
Registered: 2014-02-11
Posts: 82
Website

Re: chromium: hardware video acceleration with VA-API

I've been unable to get vaapi working on Chrome v91, intel HD 4600 graphics.  I know this is the *chromium* thread but if anyone has vaapi working on chrome stable on intel, could you post your flags?

Offline

#510 2021-05-27 18:16:10

arglebargle
Member
Registered: 2020-10-08
Posts: 6

Re: chromium: hardware video acceleration with VA-API

Just had to update my flags for chromium v91 to retain hardware video decoding, running Xorg on an AMD iGPU

# ~/.config/chromium-flags.conf

--use-cmd-decoder=validating
--use-gl=desktop
--ignore-gpu-blocklist
--enable-gpu-rasterization
--enable-zero-copy
--enable-features=VaapiVideoDecoder

I think I just needed to add

--enable-features=VaapiVideoDecoder

this time.


Here are the va-api packages I have installed:

local/lib32-libva 2.11.0-1
    Video Acceleration (VA) API for Linux (32-bit)
local/libva 2.11.0-1
    Video Acceleration (VA) API for Linux
local/libva-utils 2.11.1-1
    Intel VA-API Media Applications and Scripts for libva
local/libva-vdpau-driver-vp9-git r51.dabc009-2
    VDPAU backend for VA API. (Version with VP9 codec support)

Offline

#511 2021-05-28 23:42:35

Praxis88
Member
Registered: 2019-11-19
Posts: 19

Re: chromium: hardware video acceleration with VA-API

This was working for me on brave90, which is chromium based. the enable hardware acceleration flag has vanished from brave://flags, and no combination of manually specifying --enable-features=VaapiVideoDecoder or --enable-accelerated-video-decode gets it to work for me on google-chrome 91 chromium 91 or brave 91. Its broken across the board for me on nvidia

EDIT: It is also broken on intel video on 91, so it doesnt seem to be nvidia specific

Last edited by Praxis88 (2021-05-29 00:48:19)

Offline

#512 2021-06-03 16:04:28

digitalone
Member
Registered: 2011-08-19
Posts: 350

Re: chromium: hardware video acceleration with VA-API

Broken also on my AMD system. Chromium is getting worse on each release.

Used to work with --enable-features=VaapiVideoDecoder, --ignore-gpu-blocklist and --use-gl=desktop (but only up to 1080p30, 1080p60 videos were choppy), now it's freezing and showing a black screen on every format.

Last edited by digitalone (2021-06-03 16:04:50)

Offline

#513 2021-06-04 16:18:23

xuanrui
Member
Registered: 2018-09-27
Posts: 52

Re: chromium: hardware video acceleration with VA-API

EDIT: never mind, it seems that this is a YouTube bug. The bug comes back after a while even if I do turn off video acceleration

Running into problems with HW decoding too. If I go on YouTube and open up a playlist, I can play a few videos, but after a while it stops working (white spinner, nothing plays anymore).
I wonder if this is similar to the problems others are experiencing.
In any case, I can play videos if I turn off HW video acceleration. My CPU is powerful enough and this is not a huge problem for me, but it bugs me.
Same problem on chromium and chrome-stable.

Last edited by xuanrui (2021-06-04 16:20:32)

Offline

#514 2021-06-05 08:02:01

micronetic
Member
Registered: 2020-02-26
Posts: 40

Re: chromium: hardware video acceleration with VA-API

So it is not enough to enable "Hardware-accelerated video decode" in the chrome://flags?

Last edited by micronetic (2021-06-05 08:20:17)

Offline

#515 2021-06-05 15:37:30

sadboi777
Member
Registered: 2020-05-22
Posts: 21

Re: chromium: hardware video acceleration with VA-API

Nope they killed the flag in Chromium 91, it used to work in every chromium based browser. I switched from Firefox because of the horrendous new UI in v89 so I hope they reenable this. Chromium 90 was the dream sad they killed it in the next version.

Offline

#516 2021-06-05 16:32:23

seth
Member
Registered: 2012-09-03
Posts: 58,676

Re: chromium: hardware video acceleration with VA-API

cat ~/.config/chromium-flags.conf

# chromium switchs

# overlay scrollbars
--enable-features=OverlayScrollbar,OverlayScrollbarFlashAfterAnyScrollUpdate,OverlayScrollbarFlashWhenMouseEnter

--disk-cache-dir="/run/user/1000/chromium-cache"
--enable-features=VaapiVideoDecoder

--use-cmd-decoder=validating
--use-gl=desktop
--ignore-gpu-blocklist

Gets me

about:gpu wrote:
Graphics Feature Status

Canvas: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Disabled
Out-of-process Rasterization: Hardware accelerated
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

in chromium 91

Offline

#517 2021-06-06 15:51:29

madscience
Member
From: Ontario, Canada
Registered: 2014-02-11
Posts: 82
Website

Re: chromium: hardware video acceleration with VA-API

seth wrote:

cat ~/.config/chromium-flags.conf

# chromium switchs

# overlay scrollbars
--enable-features=OverlayScrollbar,OverlayScrollbarFlashAfterAnyScrollUpdate,OverlayScrollbarFlashWhenMouseEnter

--disk-cache-dir="/run/user/1000/chromium-cache"
--enable-features=VaapiVideoDecoder

--use-cmd-decoder=validating
--use-gl=desktop
--ignore-gpu-blocklist

Gets me

about:gpu wrote:
Graphics Feature Status

Canvas: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Disabled
Out-of-process Rasterization: Hardware accelerated
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

in chromium 91


What GPU are you running?

Offline

#518 2021-06-06 15:55:46

seth
Member
Registered: 2012-09-03
Posts: 58,676

Re: chromium: hardware video acceleration with VA-API

nvidia along https://aur.archlinux.org/packages/libv … -chromium/ (the GPU has no vp9 support)

Offline

#519 2021-06-08 03:25:29

terentev
Member
Registered: 2021-06-08
Posts: 1

Re: chromium: hardware video acceleration with VA-API

Ubuntu 20.04
Macbook 12 7Y75
Intel® HD Graphics 615
Chrome 91.0.4472.77
Exec=/usr/bin/google-chrome-stable --use-gl=desktop --enable-features=VaapiVideoDecoder %U

chrome://flags/
Override software rendering list - Enable
GPU rasterization - Enable
Zero-copy rasterizer - Enable
Vulkan - Disable

i installed https://dgpu-docs.intel.com/installatio … focal.html
after this hardware works in chrome

VDAVideoDecoder is used

Last edited by terentev (2021-06-08 03:28:14)

Offline

#520 2021-06-08 06:53:06

seth
Member
Registered: 2012-09-03
Posts: 58,676

Re: chromium: hardware video acceleration with VA-API

Offline

#521 2021-06-09 06:47:27

digitalone
Member
Registered: 2011-08-19
Posts: 350

Re: chromium: hardware video acceleration with VA-API

I'm afraid it's working only on X11, no XWayland.

Offline

#522 2021-06-12 18:48:36

Praxis88
Member
Registered: 2019-11-19
Posts: 19

Re: chromium: hardware video acceleration with VA-API

seth wrote:

cat ~/.config/chromium-flags.conf

# chromium switchs

# overlay scrollbars
--enable-features=OverlayScrollbar,OverlayScrollbarFlashAfterAnyScrollUpdate,OverlayScrollbarFlashWhenMouseEnter

--disk-cache-dir="/run/user/1000/chromium-cache"
--enable-features=VaapiVideoDecoder

--use-cmd-decoder=validating
--use-gl=desktop
--ignore-gpu-blocklist

Gets me

about:gpu wrote:
Graphics Feature Status

Canvas: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Disabled
Out-of-process Rasterization: Hardware accelerated
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

in chromium 91


This gets it to work in my SOC intel based chromebook, it doesnt work in my main machine with an nvidia 1060 in it. vainfo and vdpau info both show it should work, brave://gpu shows it should work, but when I play a video it does not work.

edit: replacing libva-vdpau-driver with libva-vdpau-driver-chromium from the aur got it to work.

the wiki really needs to be overhauled on this subject, its got some correct elements, but there is a lot wrong or missing

Last edited by Praxis88 (2021-06-12 18:56:44)

Offline

#523 2021-07-15 13:23:19

advance512
Member
Registered: 2021-07-15
Posts: 1

Re: chromium: hardware video acceleration with VA-API

terentev wrote:

Ubuntu 20.04
Macbook 12 7Y75
Intel® HD Graphics 615
Chrome 91.0.4472.77
Exec=/usr/bin/google-chrome-stable --use-gl=desktop --enable-features=VaapiVideoDecoder %U

chrome://flags/
Override software rendering list - Enable
GPU rasterization - Enable
Zero-copy rasterizer - Enable
Vulkan - Disable

i installed https://dgpu-docs.intel.com/installatio … focal.html
after this hardware works in chrome

VDAVideoDecoder is used

Can confirm this works for me.

Chrome version    Chrome/91.0.4472.114
Operating system    Linux 5.4.85-050485-generic
Command Line    /usr/bin/google-chrome-stable --use-gl=desktop --enable-features=VaapiVideoDecoder --ignore-gpu-blocklist --enable-gpu-rasterization --enable-oop-rasterization --flag-switches-begin --ignore-gpu-blocklist --flag-switches-end --origin-trial-disabled-features=SecurePaymentConfirmation
Driver vendor    Nvidia
Driver version    418.197.02
GL_VENDOR    NVIDIA Corporation
GL_RENDERER    Quadro T2000/PCIe/SSE2
GL_VERSION    4.5.0 NVIDIA 418.197.02
XDG_SESSION_TYPE    x11
GDMSESSION    ubuntu
Window manager    GNOME Shell

--

EDIT: well, I do see:
Video Decode: Hardware accelerated

However, following this article:
https://www.linuxuprising.com/2021/01/h … rated.html

I checked and I see that I still get:

FFmpegVideoDecoder, VpxVideoDecoder or Dav1dVideoDecoder

etc.

So, doesn't work. =[

Last edited by advance512 (2021-07-15 18:42:43)

Offline

#524 2021-07-21 09:34:14

xuanrui
Member
Registered: 2018-09-27
Posts: 52

Re: chromium: hardware video acceleration with VA-API

It seems that ANGLE is guilty here. Add --use-gl=desktop fixes things somehow.

Chromium 92 seems to break acceleration, maybe only on NVIDIA again

Last edited by xuanrui (2021-07-21 14:09:36)

Offline

#525 2021-07-30 15:40:52

rep_movsd
Member
Registered: 2013-08-24
Posts: 142

Re: chromium: hardware video acceleration with VA-API

I was using chromium-vaapi, and I had youtube HW acceleration
Now last week or so I get only a white square instead of the video, even though the Chrome devtools media tab shows that a hardware decoder is being used.

Chromium is getting hard to use, what with Google removing sync and nVidia forever being a dick about open source drivers.

Offline

Board footer

Powered by FluxBB