You are not logged in.

#1 2020-05-21 23:43:38

92gtKN4
Member
Registered: 2020-05-21
Posts: 1

Can't seem to get VA-API working

I have a Haswell based laptop with the following integrated graphics card:

➜  ~ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)

I have tried both "intel-media-driver" and "libva-intel-driver" and manually set LIBVA_DRIVER_NAME to both iHD and i965. Either way I am geting this error when i try to run vainfo:

➜  ~ vainfo
vaInitialize failed with error code -1 (unknown libva error),exit

Output of mpv whenever I try to play a video:

[vaapi] Failed to initialize VAAPI: unknown libva error
Error opening/initializing the selected video_out (--vo) device.
Video: no video
No video or audio streams selected.

VA-API did not work on Ubuntu either, it only worked out of the box on Fedora and on Fedora my touchscreen was non functional. In the case of Arch was the only distro which did not require me to do any modifications to get a working touchscreen.

I have also tried to install the AUR package "intel-hybrid-codec-driver" and it's sister package "libva-intel-driver-hybrid", however I kept getting linking errors during the compilation and I think it is beyond my capabilities to patch such a program.

Last edited by 92gtKN4 (2020-05-21 23:45:04)

Offline

#2 2020-05-23 01:24:46

liewkj
Member
Registered: 2019-07-08
Posts: 146

Re: Can't seem to get VA-API working

VA-API works on my Haswell laptop on ArchLinux. My ArchLinux is up-to-date. You don't need manual override with LIBVA_DRIVER_NAME.
You cannot use "intel-media-driver" on Haswell, it only supports Intel Graphics with Broadwell+ generations.

vainfo: VA-API version: 1.7 (libva 2.7.1)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.0
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
      VAProfileVP9Profile0            :	VAEntrypointVLD

Offline

Board footer

Powered by FluxBB