You are not logged in.

#476 2020-12-26 13:51:49

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: chromium: hardware video acceleration with VA-API

No. He has issues w/ his GL installation. Because he's using manjaro.
Please don't hijack threads for solicitation - both is in violation of the forum standards.

Offline

#477 2020-12-26 22:44:04

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

Re: chromium: hardware video acceleration with VA-API

digitalone wrote:

Guys, if you have issues in Chromium, start using Firefox, hardware acceleration is working good there.

But font rendering of web pages is awful sad

Offline

#478 2020-12-26 23:01:08

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

Re: chromium: hardware video acceleration with VA-API

digitalone wrote:

Guys, if you have issues in Chromium, start using Firefox, hardware acceleration is working good there.

But font rendering of web pages is awful sad

Looks like recent versions of Firefox not only ignore system settings but also any "font_rendering" tweaks in about:config.

Last edited by DAC324 (2020-12-27 12:10:16)

Offline

#479 2020-12-26 23:08:51

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

Re: chromium: hardware video acceleration with VA-API

seth wrote:
[     4.277] (II) LoadModule: "glx"
[     4.278] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     4.289] (II) Module glx: vendor="X.Org Foundation"
…
[     4.305] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[     4.305] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[     4.305] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[     4.305] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[     4.305] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.
…
[     4.773] (II) GLX: Initialized DRISWRAST GL provider for screen 0

Indeed - that was the problem. For some very weird reason, these lines

    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"

were both entirely missing from /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf and hence, X did not recognize the Nvidia libglx.so sad

So it looks like you're right again:

seth wrote:

You do have

local/nvidia-390xx-utils 390.138-1
    NVIDIA drivers utilities

so the problem is that the module path isn't extende what would be done by  /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf provide by that package - if this was archlinux.

=> Manjaro problem. Completely unrelated to chromium. Ask the Manjaro boards. Nobody here can possibly help you and it would violate board rules anyway.

Thank you once again and apologies for any inconvenience.  - And also thanks a bunch for the detailed debugging instructions for X problems. That surely will help me a lot going forward.

Kind regards and a relaxing holiday season,

DAC324

Last edited by DAC324 (2020-12-27 12:49:37)

Offline

#480 2021-01-21 19:32:44

TheWeirdDev
Member
Registered: 2020-10-06
Posts: 5

Re: chromium: hardware video acceleration with VA-API

When I enable Vulkan in chrome://flags in Chromium 88, all the hardware-accelerated videos are blank and only the sound plays (I have nvidia). But when I use the '--use-vulkan' option in command line instead of that flag, the videos play just fine.

I'm not sure if that option fixes the issue, or it just doesn't enable Vulkan at all. It's kind of weird. The 'gpu' page says that Vulkan is enabled, but how can you make sure if it actually is?

Last edited by TheWeirdDev (2021-01-21 19:35:11)

Offline

#481 2021-01-21 22:19:31

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

Re: chromium: hardware video acceleration with VA-API

Eh, seems that Chromium 88 broke everything again. Hardware decoding isn't working for me on 88.

Never mind, 88 was innocent. The thing is that --use-gl=desktop was required again. IIRC for version 86, I was able to get video acceleration on ANGLE just fine, so no --use-gl=desktop.

Anyone could explain why this is the case? Much thanks.

Last edited by xuanrui (2021-01-21 23:22:04)

Offline

#482 2021-01-22 06:42:09

kkkkkking
Member
Registered: 2019-12-16
Posts: 3

Re: chromium: hardware video acceleration with VA-API

TheWeirdDev wrote:

When I enable Vulkan in chrome://flags in Chromium 88, all the hardware-accelerated videos are blank and only the sound plays (I have nvidia). But when I use the '--use-vulkan' option in command line instead of that flag, the videos play just fine.

I'm not sure if that option fixes the issue, or it just doesn't enable Vulkan at all. It's kind of weird. The 'gpu' page says that Vulkan is enabled, but how can you make sure if it actually is?

Same here. With chrome://flags or '--enable-features=Vulkan' the video went blank -- tracked  here.

But as you mentioned, with latest version  '--use-vulkan' now reports vulkan enabled in gpu status

Offline

#483 2021-01-25 13:25:16

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

Re: chromium: hardware video acceleration with VA-API

TheWeirdDev wrote:

When I enable Vulkan in chrome://flags in Chromium 88, all the hardware-accelerated videos are blank and only the sound plays (I have nvidia). [...]
But as you mentioned, with latest version  '--use-vulkan' now reports vulkan enabled in gpu status

Looks like Vulkan is enabled on the latest Nvidia drivers only. If you happen to use version 390, Vulkan remains off in chrome://gpu despite of any flags set.

Offline

#484 2021-01-26 15:44:21

extender
Member
Registered: 2021-01-26
Posts: 2

Re: chromium: hardware video acceleration with VA-API

Is there any way to get this working with the quadro 770M?

Using nouveau:

If you download the nvidia decoder firmware and put it in /lib/firmware it decodes H264 but is as slow as CPU and drops frames.
Unfortunately nouveau appears to have poor power management and other issues, it's still terrible.

Using nvidia-340-dkms:

Chrome 84: detects with --use-gl=egl but no video formats are shown
Chrome 87: run with no flag, using angle, formats detect but MojoVideoDecoder falls back to ffmpeg with VDA4 error.

Using --use-gl=desktop causes gpu to not be detected at all.

So I tried firefox, so far only on nvidia-340

VA-API FFmpeg is disabled by platform sad



I get there was some issue with chrome looking for VAProfile None and the vdpau wrapper not providing it? Is there some patch? Maybe a specific version of chrome to try?

Offline

#485 2021-01-30 14:05:44

jmandawg
Member
Registered: 2011-10-19
Posts: 28

Re: chromium: hardware video acceleration with VA-API

Just an FYI, i had to enable all 3 of these flags to get video acceleration to work on nvidia 1660ti and chromium from the official repos:

#Video Acceleration
--use-gl=desktop
--enable-accelerated-video-decode
--ignore-gpu-blacklist

Maybe the wiki should be updated because it seem --enable-accelerated-video-decode is required when using nvidia, the wiki says it's only need when using ANGLE.

Offline

#486 2021-01-30 23:55:48

extender
Member
Registered: 2021-01-26
Posts: 2

Re: chromium: hardware video acceleration with VA-API

Besides --use-gl all the other ones can be set inside chrome://flags

Offline

#487 2021-02-02 08:27:14

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

Re: chromium: hardware video acceleration with VA-API

extender wrote:

Besides --use-gl all the other ones can be set inside chrome://flags

There is also

~/.config/chromium-flags.conf

for chromium and

~/.config/chromium-dev-flags.conf

for chromium-dev.

Offline

#488 2021-02-18 14:09:54

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

Re: chromium: hardware video acceleration with VA-API

xtknight wrote:

However, you can watch h.264 videos with hardware acceleration with the existing VDPAU-VAAPI wrapper. About fullscreen, I haven't modified anything related to fullscreening in this patch but that may be an issue unrelated to VDPAU.

Sorry for the offtopic - but is there something similar as the patch discussed here required to get Firefox working with hardware accelerated video playback on VDPAU systems?

Thank you very much in advance for the clarification.

Offline

Board footer

Powered by FluxBB