elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.2k stars 56 forks source link

HW acceleration not working in firefox 124.0.2 #283

Open Vitaly76ASDgnaerkldbnak opened 6 months ago

Vitaly76ASDgnaerkldbnak commented 6 months ago

HW acceleration not working in firefox 124.0.2, since FF self upgrade, I didn't notice from what version it broke, but in version 110 it still works normal. I check this on nvidia drivers V525.147.05 and V545.29.06. Option widget.dmabuf.force-enabled is true, but in 124.0.2 it is not helping. BTW, HW acceleration in MPV works fine.

mirh commented 5 months ago

Is there no difference in about:support?

Vitaly76ASDgnaerkldbnak commented 5 months ago

There are too many info in about:support, what exactly should I pay attention to?

mirh commented 5 months ago

The ones specifically about acceleration? More or less everything in the graphics section, but decision log has the most important stuff.

Vitaly76ASDgnaerkldbnak commented 5 months ago

In section media, in ff 110 there are H264 HW and VP8 HW, but in FF 125 there are only SWs. It seems obvious, but why FF 125 is not detecting HW acceleration?

mirh commented 5 months ago

Ok, and that's the symptoms. But it's the section right before to be telling you the causes.

LocalRaccoonEnthusiast commented 5 months ago

image This section should be telling a lot if you send it here. Mine isn't what the result is supposed to be and I'm still trying to fix it, but just so you know what section to pay attention to.

Vitaly76ASDgnaerkldbnak commented 5 months ago

ff 110 110 ff 125 125

Vitaly76ASDgnaerkldbnak commented 5 months ago

Maybe this can help, I'm totally frustrated in this. And I'm using NVD_BACKEND=direct in /etc/environment

mirh commented 5 months ago

Obviously those two errors are either the usual widget.dmabuf.force-enabled or media.hardware-video-decoding.force-enabled thing.

Vitaly76ASDgnaerkldbnak commented 5 months ago

Even after enable media.hardware-video-decoding.force-enabled in FF 125 there is no video acceleration. In FF 110 without this was. So it seems, it's something else...

mirh commented 5 months ago

Did you remember MOZ_DISABLE_RDD_SANDBOX=1 and the dmabuf thing?

Vitaly76ASDgnaerkldbnak commented 5 months ago

Alas, but all this options are set in both versions of FF.

Vitaly76ASDgnaerkldbnak commented 5 months ago

In /etc/environment NVD_BACKEND=direct MOZ_DISABLE_RDD_SANDBOX=1 LIBVA_DRIVER_NAME=nvidia

mirh commented 5 months ago

Try firefox nightly https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries

Vitaly76ASDgnaerkldbnak commented 5 months ago

I checked in FF 126.0b6 and it's works (stand along version). I think problem is in FF of kubuntu distribution, so it's no problem with nvidia-vaapi-driver. So the issue can be close, big thanks for helping me anyway.

mirh commented 5 months ago

Then it seems like you skipped widget.dmabuf.force-enabled...

Vitaly76ASDgnaerkldbnak commented 5 months ago

No, it is set true in FF 125. For me it's clear that FF in ubuntu distributive in some way compiled without some essential thing that is not letting HW acceleration to function, maybe it's connected to dmabuf, maybe to something else. But when I download standalone version of FF 110 or later, than HW acceleration is here. The solution for me is to use standalone version, not integrated.

elFarto commented 5 months ago

From what I remember, Ubuntu tends to build Firefox without Wayland support which is necessary for DMA-BUF support to be included.

mirh commented 5 months ago

Wayland support has been built-in since at least some years by now, if any it wasn't until recent that the snap enabled it by default (but that's kinda a different story).

Speaking of ubuntu.. I just realized the version wasn't even reported here.

Vitaly76ASDgnaerkldbnak commented 5 months ago

I'm using FF from PPA https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu in Kubuntu 22.04.3 LTS, any versions of FF from 124.x to 125.x. And I'm in X11 not Wayland.

mirh commented 5 months ago

210 had it working though?

sekaiacg commented 4 months ago

In addition to the recommended settings, I turned on hardware acceleration using the following additional settings on archlinux. image

https://wiki.archlinux.org/title/firefox#Hardware_video_acceleration