WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: No luck with vaapi  (Read 152 times)

Offline Vaguiner

  • Full Member
  • ***
  • Posts: 184
No luck with vaapi
« on: June 25, 2025, 10:36:19 PM »
Hi. I recently switched to a mini pc (intel n100) and I'm having trouble enabling video acceleration.

vainfo (from libva22-utils):
Code: [Select]
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva error: /usr/local/lib/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

I've tried them both: intel-media.tcz and intel-vaapi-driver.tcz. both at the same time and one on its own, always the same error.

A brief search on the internet indicates that:
i965 is not compatible with my integrated video, iHD is recommended.
Unfortunately tinycore's iHD was last updated in 2021. I'll try to manually compile an updated version to see the result.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12166
Re: No luck with vaapi
« Reply #1 on: June 25, 2025, 10:53:36 PM »

Offline gadget42

  • Hero Member
  • *****
  • Posts: 892
Re: No luck with vaapi
« Reply #2 on: June 26, 2025, 12:52:30 AM »
another user mentions the n100 here regarding a potential heat dissipation deficiency with respect to an unintentional air gap between the cpu and heatsink:

https://forum.tinycorelinux.net/index.php/topic,21033.msg179070.html#msg179070
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 370
Re: No luck with vaapi
« Reply #3 on: June 26, 2025, 04:15:00 AM »
i965 is not compatible with my integrated video, iHD is recommended.

For me it's the other way 'round, my GPU only works with the i965 VAAPI driver. However I need to load xf86-video-intel.tcz to get VAAPI to work, so try that if you haven't already got it installed.

I'm not sure if that would explain the error you get for iHD_drv_video.so though. For me iHD would load but init failed like you get with i965, but that was in an old TC version.

Also I ran the vainfo command as root, though I'm not sure if that was necessary.

Tips from my own VAAPI debugging:

Force using a particular VAAPI driver like this:
Code: [Select]
# LIBVA_DRIVER_NAME=i965 vainfo -a
# LIBVA_DRIVER_NAME=iHD vainfo -a

If the DISPLAY environment variable is set to a remote display (eg. "ssh -X"), vainfo shows drivers failing with "init failed". You need to unset DISPLAY like this:
Code: [Select]
# DISPLAY= LIBVA_DRIVER_NAME=i965 vainfo
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.13.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.13 (libva 2.13.0)
vainfo: Driver version: Intel i965 driver for Intel(R) CherryView - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD

It took me ages to figure that out, but I guess it's mainly a "just me" problem. Probably not many others trying to use VAAPI while connecting remotely with X windows displaying over the network.

Offline Vaguiner

  • Full Member
  • ***
  • Posts: 184
Re: No luck with vaapi
« Reply #4 on: June 26, 2025, 11:17:51 AM »

Hi. Thanks for the replies. The problem really was outdated intel-media. I managed to update both intel-media and intel-gmmlib and it worked again:

Code: [Select]
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 25.1.4 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI
      VAProfileHEVCMain               : VAEntrypointEncSliceLP
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointEncSliceLP
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSliceLP
      VAProfileVP9Profile1            : VAEntrypointVLD
      VAProfileVP9Profile1            : VAEntrypointEncSliceLP
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointEncSliceLP
      VAProfileVP9Profile3            : VAEntrypointVLD
      VAProfileVP9Profile3            : VAEntrypointEncSliceLP
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointEncSlice
      VAProfileHEVCMain422_10         : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointEncSlice
      VAProfileHEVCMain422_12         : VAEntrypointVLD
      VAProfileHEVCMain422_12         : VAEntrypointEncSlice
      VAProfileHEVCMain444            : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         : VAEntrypointVLD
      VAProfileHEVCMain444_10         : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          : VAEntrypointVLD
      VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         : VAEntrypointVLD
      VAProfileHEVCSccMain444         : VAEntrypointEncSliceLP
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP

iHD is required for:

Code: [Select]
    BDW (Broadwell)
    SKL (Skylake)
    BXTx (BXT: Broxton, APL: Apollo Lake, GLK: Gemini Lake)
    KBLx (KBL: Kaby Lake, CFL: Coffee Lake, WHL: Whiskey Lake, CML: Comet Lake, AML: Amber Lake)
    ICL (Ice Lake)
    JSL (Jasper Lake) / EHL (Elkhart Lake)
    TGLx (TGL: Tiger Lake, RKL: Rocket Lake, ADL-S/P/N: Alder Lake, RPL-S/P: Raptor Lake)
    DG1/SG1
    Alchemist(DG2)/ATSM
    MTLx (MTL: Meteor Lake, ARL-S/H: Arrow Lake)
    LNL (Lunar Lake)
    BMG (Battlemage)