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:
# 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:
# 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.