You are not logged in.

#1 2023-06-08 18:11:14

BloP
Member
Registered: 2023-06-07
Posts: 3

[SOLVED] VA-API: 'vainfo' fails

Hello Arch Linux community! This is my first thread ever in a linux forum, so please go easy on me.

I have been learning to set up a fully working Arch Linux installation on my laptop. I couldn't make VA-API work and I think the problem is my setup.

Arch Linux x86_64
ASUS TUF Dash F15
Kernel: 6.3.6-zen1-1-zen
Hyprland
12th Gen Intel i7-12650H (16) @ 4.600GHz
NVIDIA GeForce RTX 3070 Mobile / Max-Q
Intel Alder Lake-P GT1 [UHD Graphics]

Hybrid-Graphics. Using dGPU only for games.

$ pacman -Q | grep libva
libva 2.18.0-1
libva-utils 2.18.2-1
$ lspci -k
...
0000:00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P GT1 [UHD Graphics] (rev 0c)
	DeviceName: Onboard - Video
	Subsystem: ASUSTeK Computer Inc. Alder Lake-P GT1 [UHD Graphics]
	Kernel driver in use: i915
	Kernel modules: i915
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GA104M [GeForce RTX 3070 Mobile / Max-Q]
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia
...

Here are some logs:

$ vainfo
Trying display: wayland
vaInitialize failed with error code -1 (unknown libva error),exit
$ strace vainfo

Strace Log

VLC 3.0.18 (VA-API selected as decoder) works but falls back to GPU acceleration.

$ vlc
...
libva error: /usr/lib/dri/i965_drv_video.so init failed
[00007f66000067f0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
Xlib:  extension "DRI2" missing on display ":1".
[00007f66000067f0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
...

OBS 29.1.1-2 (No VA-API choice in settings, as it fails to load)

$ obs
...
error: VAAPI: Failed to initialize display in vaapi_device_h264_supported
error: VAAPI: Failed to initialize display in vaapi_device_h264_supported
info: FFmpeg VAAPI H264 encoding not supported
error: VAAPI: Failed to initialize display in vaapi_device_hevc_supported
error: VAAPI: Failed to initialize display in vaapi_device_hevc_supported
info: FFmpeg VAAPI HEVC encoding not supported

VLC full log
OBS full log

Any help is appreciated smile

Last edited by BloP (2023-06-08 18:31:02)

Offline

#2 2023-06-08 18:20:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,836

Re: [SOLVED] VA-API: 'vainfo' fails

Install intel-media-driver and remove xf86-video-intel if it's installed. There are loads of references to the i965 driver which should not be used on a system this modern.

Last edited by V1del (2023-06-08 18:21:31)

Offline

#3 2023-06-08 18:25:50

BloP
Member
Registered: 2023-06-07
Posts: 3

Re: [SOLVED] VA-API: 'vainfo' fails

V1del wrote:

Install intel-media-driver and remove xf86-video-intel if it's installed. There are loads of references to the i965 driver which should not be used on a system this modern.

I didn't have xf86-video-intel. Thanks for the fast reply and it works! I think I read this part wrong and thought linux-firmware would be enough.

Offline

#4 2023-06-08 18:29:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,836

Re: [SOLVED] VA-API: 'vainfo' fails

There's an "also" in that line -- as in additionally to the above .

In any case, please mark as [SOLVED] by editing the title in the first post.

Offline

#5 2023-06-08 18:32:02

BloP
Member
Registered: 2023-06-07
Posts: 3

Re: [SOLVED] VA-API: 'vainfo' fails

V1del wrote:

There's an "also" in that line -- as in additionally to the above .

In any case, please mark as [SOLVED] by editing the title in the first post.

My bad, thank you!

Offline

Board footer

Powered by FluxBB