Thank you I now enabled it. I’m getting tearing with all FF settings but “Use recommended performance settings”. So that’s ok I think. However Video Engine Utilization: 0%
Now that I added the kernel module to be loaded, SMPlayer (with your settings above) and VLC (default settings) do not get >0%. However before the restart it did work on these settings.
For me it’s complicating things though now …
Edit, it’s working on VLC most of the time and in SMPlayer with the setting Performance > nvdec-copy as well, just not for 4k videos in both apps, but still all tear-free.
I see that you didn’t set necessary environmental variables system wide. Did you put them in firefox.desktop file? Post “Exec=” sting from firefox.desktop.
I knew what you were referring to. That bug was in mesa driver which provides VA-API.
libva-nvidia-driver doesn’t really provide VA-API, it’s a wrapper around NVDEC, pretending to be VA-API. So fixes of mesa bugs have nothing to do with our driver.
Ok I do not seem to get it working in Firefox. Thank for the help with SMPlayer and most likely VLC (that auto-configured correctly).
I concluded also that my small GPU can’t help/handle 4K videos so CPU’s gotta do that job.
Here is me summarizing myself of what I did:
set what @Mirdarthos set in about:config but also later tried without it, kept his settings for now
did what is prbb. not needed because it’s in the libva-nvidia-driver is in the repos but these are building dependencies: sudo pacman -S meson gst-plugins-bad ffnvcodec-headers
installed libva-nvidia-driver (with Pacman which uninstalled the default libva-vdpau-driver) However, lib32libva-vdpau-driver is still installed!
rebooted
set a required kernel parameter so my grub file looks like:
first set global environment variables which didn’t work, then later only applied them in the /usr/share/applications/firefox.desktop file (which for some reason is not ~/.local/share/applications, must I link or copy it there to work?) which I kept like that:
Does HW acceleration work for videos having lower resolution than 4K?
Can you navigate to about:support page, scroll down and take a screenshot of Codec Support Information?
Thanks this may provide useful info, after a logout/in, screen-tearing seems to be gone.
I had set the media.av1.enabled setting in about:config to false and use enhanced-h264ify addon to block Vp8 and Av1 now. However, still 0% in nvidia-settings :).
The first two tries, Ff crashed when I tried to resize the window (before trying to navigate to Yt respectively playing a video). I had wanted to debug that and I think the Dark Reader addon is the culprit, anyway these logs then got overwritten:
I played 1 4K video, afterwards an HD vid, also skipped a bit forward, both for a bit more than 15-20 seconds in total. Looks like my 2 GB VRAM memory is the issue?
The crash only happens when I resize the newly opened browser with last sessions’ tabs to smaller. Initially the size is around 3K. Then it logs as follows:
LIBVA_DRIVER_NAME=nvidia NVD_BACKEND=direct NVD_LOG=1 MOZ_DISABLE_RDD_SANDBOX=1 firefox 2>&1 | tee nvdec.log
[Parent 3174666, Main Thread] WARNING: Theme directory 64/devices of theme Gruvbox has no size field
: 'glib warning', file /usr/src/debug/firefox/firefox-125.0.1/toolkit/xre/nsSigHandlers.cpp:187
(firefox:3174666): Gtk-WARNING **: 18:35:35.342: Theme directory 64/devices of theme Gruvbox has no size field
[GFX1-]: GFX: RenderThread detected a device reset in PostUpdate
[Parent 3174666, Main Thread] WARNING: The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 1979 error_code 2 request_code 156 (NV-GLX) minor_code 24)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.): 'glib warning', file /usr/src/debug/firefox/firefox-125.0.1/toolkit/xre/nsSigHandlers.cpp:187
(firefox:3174666): Gdk-WARNING **: 18:35:44.945: The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 1979 error_code 2 request_code 156 (NV-GLX) minor_code 24)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
I mean, do I have to uncomment both? The last one is at the bottom and lists default-release, default, dev-edition-default to me (create, delete, rename them).