You are not logged in.

#1 2022-12-07 09:52:57

auspicacious
Member
Registered: 2022-12-07
Posts: 4

[SOLVED] Hardware video acceleration: iHD_drv_video.so init failed

Hello,

I have a new Arch Linux install, running Wayland and KDE.

The system has a i7-1250U (Alder Lake) with embedded Iris Xe (Gen 12.2) graphics.

Graphics acceleration appears to be working correctly. However, following the wiki instructions, I have not been able to get hardware video acceleration working.

Things I have done:

  • Installed intel-media-driver and libva-utils

  • Enabled GuC/HuC firmware loading by setting i915.enable_guc=3 and validating that firmware is loaded by checking dmesg output. This is not mentioned on the "Hardware video acceleration" page, but the "Intel graphics" page seems to suggest this might be necessary.

  • Noted that at the bottom of the Intel graphics page there is a very recent dispute over whether it is necessary to disable the CONFIG_DRM_I915_CAPTURE_ERROR kernel option for hardware video acceleration to work. I have not tried recompiling my kernel to disable this option.

This is the output I get running vainfo:

$ vainfo
Trying display: wayland
libva error: /usr/lib/dri/iHD_drv_video.so init failed
vaInitialize failed with error code -1 (unknown libva error),exit

In mpv, I get a similar error:

mpv --hwdec=auto --gpu-context=wayland video.mkv 
 (+) Video --vid=1 (*) (vp9 950x720 25.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
Cannot load libcuda.so.1
[vaapi] libva: /usr/lib/dri/iHD_drv_video.so init failed
[ffmpeg] AVHWDeviceContext: Cannot load libcuda.so.1
[ffmpeg] AVHWDeviceContext: Could not dynamically load CUDA
[vaapi] libva: /usr/lib/dri/iHD_drv_video.so init failed
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Cannot load libcuda.so.1
[ffmpeg/video] vp9_v4l2m2m: Could not find a valid device
[ffmpeg/video] vp9_v4l2m2m: can't configure decoder
Could not open codec.
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [gpu] 950x720 yuv420p

Is there something I might have missed? I tried the old intel-libva-driver just in case as well, and received a similar error message. Is there a package that might be missing, or any way to get more debugging information? Thank you.

Last edited by auspicacious (2022-12-08 05:38:36)

Offline

#2 2022-12-07 09:58:20

d.ALT
Member
Registered: 2019-05-10
Posts: 920

Re: [SOLVED] Hardware video acceleration: iHD_drv_video.so init failed

# pacman -Fy iHD_drv_video.so

<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2022-12-07 10:02:31

auspicacious
Member
Registered: 2022-12-07
Posts: 4

Re: [SOLVED] Hardware video acceleration: iHD_drv_video.so init failed

d.ALT wrote:
# pacman -Fy iHD_drv_video.so
community/intel-media-driver 22.4.4-2 [installed]
    usr/lib/dri/iHD_drv_video.so

Yes, the file does exist at the location libva is looking for it.

Offline

#4 2022-12-07 13:50:45

d.ALT
Member
Registered: 2019-05-10
Posts: 920

Re: [SOLVED] Hardware video acceleration: iHD_drv_video.so init failed

Can you try this from intel/media-driver issue on GitHub?

Furthermore, please also have a look here.

Last edited by d.ALT (2022-12-07 13:54:17)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#5 2022-12-08 05:35:08

auspicacious
Member
Registered: 2022-12-07
Posts: 4

Re: [SOLVED] Hardware video acceleration: iHD_drv_video.so init failed

Thank you for the pointers -- you made me look more closely at the intel-gmmlib and intel-media-driver packages. I realized that they are both several months out of date.

I built my own intel-media-driver package based on the latest release (22.5.4). I did not (yet) rebuild intel-gmmlib.

It looks like updating intel-media-driver alone was enough to fix it:

$ vainfo
Trying display: wayland
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.5.4 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
etc.

mpv and intel_gpu_top also work as expected.

I'm new to Arch and couldn't find this information with a quick search: is there an easy way I can submit a patch to move along the update of these packages (although I realize the maintainer may need to do more than that to safely release)?

Thanks again.

Last edited by auspicacious (2022-12-08 05:37:35)

Offline

#6 2022-12-08 07:36:09

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: [SOLVED] Hardware video acceleration: iHD_drv_video.so init failed

As this is not a "package is outdated" but a "doesn't work" issue, you can submit a bug:
https://bugs.archlinux.org/newtask?proj … ER+SUMMARY

It's also possible that the package needed a mere rebuild (not a version update) against the newer libva or libpciaccess packages (which should be fixable much quicker)

Offline

#7 2022-12-09 06:02:48

auspicacious
Member
Registered: 2022-12-07
Posts: 4

Re: [SOLVED] Hardware video acceleration: iHD_drv_video.so init failed

seth wrote:

As this is not a "package is outdated" but a "doesn't work" issue, you can submit a bug:
https://bugs.archlinux.org/newtask?proj … ER+SUMMARY

It's also possible that the package needed a mere rebuild (not a version update) against the newer libva or libpciaccess packages (which should be fixable much quicker)

Thank you for setting that up for me, I've submitted a bug report:

https://bugs.archlinux.org/task/76784?p … &sort=desc

Offline

Board footer

Powered by FluxBB