-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libva error: vaGetDriverNames() failed with unknown libva error #266
Comments
Check if you have the kernel option: Use the shell command: |
I do. x@a66 ~ % cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=... rw nvidia-drm.modeset=1 loglevel=3 quiet
x@a66 ~ % sudo cat /sys/module/nvidia_drm/parameters/modeset
Y |
Just some info regarding the false error: "libva error: vaGetDriverNames() failed with unknown libva error" This is just a pecularity with vainfo in the package libva-utils. and gives up and prints the error. A proper behaved vainfo would just continou with testing drm: and it would have found it. This is reported here: |
(By the way, the above "error" is unrelated to your problems.) Now in firefox about:config set: This way we disable av1 and it should fallback to vp9 8bit on youtube. https://www.youtube.com/watch?v=rFVpSwgCkCo Make sure you run at 4k 60fps and also right click mouse and choose "stats for nerds". Here you can see Codecs: it should be vp09. Check in nvidia-settings if "video engine utilization" now works. |
Thank you for the answer |
Let me know if it's makes sense to rename the issue to something like |
Check that your local ffmpeg supports vaapi: Should say something like: |
Also, perhaps there is a problem with your local firefox installation? You could and assuming you got some local movie.mkv mpv --vo=gpu --hwdec=vaapi-copy movie.mkv Then again check Video Engine Utilization.. |
chromium and vlc you can forget. This library does not support those apps. If your mpv is 0.35 or newer then should work which is more efficient. Regarding firefox, I should go through very carefully so nothing important was missed setting things up. Otherwise you need to figure out what has happened in arch's firefox. The version and so on asking others if they experienced something similar. |
I regret taking shortcuts for fixes, rather than actually getting down to the precise causes.. |
Following this advice #258 (comment) I've removed previously hardcoded MOZ_DRM_DEVICE from /etc/environment and installed libva-git with /etc/environment
Now I don't have any errors in vainfo: % NVD_LOG=1 vainfo
The firefox still doesn't used the HW acceleration. I've tried Thank you everyone for the help. |
That's coming and explained in #6 (comment) |
Congrats! Looks to me that the only real problem was that Sometimes one might think it's something really complicated only to find out..no. I think you can close this now. |
Arch Linux 6.6.10-zen1-1-zen, x11.
VA-API version: 1.20 (libva 2.20.1), nvidia-vaapi-driver-0.0.11, NVIDIA kernel driver version: 545.29.06
The hardware decoding is not working neither in firefox nor in chromium or vlc.
The vainfo is crashing on x11 but works on DRM.
I mentioned my problem in other issue some time ago.
uname -a
Linux a66 6.6.10-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Fri, 05 Jan 2024 16:20:18 +0000 x86_64 GNU/Linux
NVD_LOG=1 LIBVA_DRIVER_NAME=nvidia vainfo
NVD_LOG=1 vainfo --display drm
sudo lspci -knn | grep nvidia
Kernel driver in use: nvidia Kernel modules: nouveau, nvidia_drm, nvidia
% nvidia-smi
lsmod
vlc
I've attached the vlc --verbose=2, hope it helps.
video.log
Video Engine utilization: 0% (in nvidia-settings)
Let me know if I can provide more details.
Thanks!
The text was updated successfully, but these errors were encountered: