VAAPI Video Acceleration on Intel Graphics: i965 vs iHD

Technical issues/questions of an intermediate or advanced nature.
Post Reply
rych
Shogun
Shogun
Posts: 238
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0rc3 x64 OpenBox
Location: NZ

VAAPI Video Acceleration on Intel Graphics: i965 vs iHD

Post#1 by rych » 28 Jul 2021, 07:58

When I start a FreeTube from console it prints a message below

Code: Select all

libva error: /usr/lib64/dri/i965_drv_video.so init failed
That's on the new Intel i5-10500 which uses an Integrated Intel UHD Graphics 630 chipset. I think FreeTube (and others) will be trying to use that GPU for accelerated rendering, decoding etc.

I've searched and one hint was that "For newer Intel GPUs, intel-media-driver (iHD) replaces libva-intel-driver (i965)"

If that's correct for porteus and for my CPU, should I try and install the "Intel(R) Media Driver for VAAPI“ https://github.com/intel/media-driver/ ? How do I install it, please?

OR, should I upgrate the kernel again? (I'm on 5.0rc3 already)
Last edited by rych on 31 Jul 2021, 06:16, edited 1 time in total.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3210
Joined: 20 Mar 2012, 03:42
Distribution: 5.0-current-64bit
Location: australia
Contact:

i965_drv_video.so init failed

Post#2 by ncmprhnsbl » 28 Jul 2021, 12:26

rych wrote:
28 Jul 2021, 07:58
How do I install it, please?
in order for me to tell you how, i'd need to do it myself first.. and well... :) ..see if this one works for you:
intel-media-driver-21.2.3-86_64.xzm 6.3 MB
md5sum: 2b1eda9efa11498d4c451bac4bcf16fd
includes:
intel-gmmlib-21.2.1-x86_64-1ncm
intel-media-driver-21.2.3-x86_64-1ncm

Code: Select all

├── usr
│   └── lib64
│       ├── dri
│       │   └── iHD_drv_video.so
│       ├── libigdgmm.so -> libigdgmm.so.11
│       ├── libigdgmm.so.11 -> libigdgmm.so.11.3.0
│       ├── libigdgmm.so.11.3.0
│       ├── libigfxcmrt.so -> libigfxcmrt.so.7
│       ├── libigfxcmrt.so.7 -> libigfxcmrt.so.7.2.0
│       └── libigfxcmrt.so.7.2.0
└── var
         |<usual stufF>

18 directories, 11 files
afaiui kernel shouldn't be relevant..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Shogun
Shogun
Posts: 238
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0rc3 x64 OpenBox
Location: NZ

i965_drv_video.so init failed

Post#3 by rych » 28 Jul 2021, 14:33

ncmprhnsbl, thanks, will try tomorrow and might need a vainfo command from libva-utils package (?) to validate and see that. Could you point me to a module with vainfo in it? (Actually, I have a fundamental question: how do you guys make those modules when getpkg doesn't have it? So that I don't have to ask you for modules each time)

rych
Shogun
Shogun
Posts: 238
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0rc3 x64 OpenBox
Location: NZ

i965_drv_video.so init failed

Post#4 by rych » 29 Jul 2021, 07:21

ncmprhnsbl, your module seems to work, at least the error message goes away. But I also have to (re)define an environment variable, LIBVA_DRIVER_NAME=iHD, -- I wish this were done automatically for me,

Code: Select all

root@porteus:~# vainfo
bash: vainfo: command not found
root@porteus:~# /opt/FreeTube/freetube --no-sandbox
libva error: /usr/lib64/dri/i965_drv_video.so init failed
closed
root@porteus:~# LIBVA_DRIVER_NAME=iHD /opt/FreeTube/freetube --no-sandbox
closed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3210
Joined: 20 Mar 2012, 03:42
Distribution: 5.0-current-64bit
Location: australia
Contact:

i965_drv_video.so init failed

Post#5 by ncmprhnsbl » 29 Jul 2021, 08:18

rych wrote:
29 Jul 2021, 07:21
But I also have to (re)define an environment variable, LIBVA_DRIVER_NAME=iHD, -- I wish this were done automatically for me,
ah yeah.. didn't read the github page closely enough..
have reuploaded (same link) with /etc/profile.d/intel-media.sh included, contents:

Code: Select all

#!/bin/sh
# Use the iHD driver for media
export LIBVA_DRIVER_NAME=iHD
that should fix the env variable at boot up ..
have also now included libva-utils in the module .. btw it's in slackware current so getpkg would get it.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Shogun
Shogun
Posts: 238
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0rc3 x64 OpenBox
Location: NZ

VAAPI Video Acceleration on Intel Graphics: i965 vs iHD

Post#6 by rych » 31 Jul 2021, 06:28

ncmprhnsbl, Thank you so much for helping me here and in other threads. This now works without any error messages and vainfo is happy. I hope other software that wants to use the (still rather weak?) Intel Graphics chip for hardware acceleration will be happy too. For older Intel CPU-GPU I guess there is the option of LIBVA_DRIVER_NAME=i965 vainfo to revert back to the original driver. I've renamed this thread topic in broader terms to catch possible future questions.

User avatar
babam
Shogun
Shogun
Posts: 250
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 4.0 Xfce K5.11.10
Location: Rainy city

VAAPI Video Acceleration on Intel Graphics: i965 vs iHD

Post#7 by babam » 11 Sep 2021, 19:25

ncmprhnsbl wrote:
28 Jul 2021, 12:26
intel-media-driver-21.2.3-86_64.xzm 6.3 MB
md5sum: 2b1eda9efa11498d4c451bac4bcf16fd
includes:
intel-gmmlib-21.2.1-x86_64-1ncm
intel-media-driver-21.2.3-x86_64-1ncm

afaiui kernel shouldn't be relevant..
Can you build it for Porteus 4.0 x64

Thanks.
Sorry, my English is bad.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3210
Joined: 20 Mar 2012, 03:42
Distribution: 5.0-current-64bit
Location: australia
Contact:

VAAPI Video Acceleration on Intel Graphics: i965 vs iHD

Post#8 by ncmprhnsbl » 11 Sep 2021, 23:23

babam wrote:
11 Sep 2021, 19:25
Can you build it for Porteus 4.0 x64
hi, babam, here's the slackbuilds i used: intel-media-slackbuilds.tar.gz
they automatically download the source,
build and install intel-gmmlib first..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
babam
Shogun
Shogun
Posts: 250
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 4.0 Xfce K5.11.10
Location: Rainy city

VAAPI Video Acceleration on Intel Graphics: i965 vs iHD

Post#9 by babam » 12 Sep 2021, 13:43

ncmprhnsbl wrote:
11 Sep 2021, 23:23
hi, babam, here's the slackbuilds i used: intel-media-slackbuilds.tar.gz
they automatically download the source,
build and install intel-gmmlib first..
ncm, thanks for the help, finally I can build the intel-media-driver for Porteus 4.0 and it's working properly.

libva needs to be upgraded to 2.12.0 and create necessary symlinks

Code: Select all

libva.so.1 ---> libva.so.2.1200.0
libva-drm.so.1 ---> libva-drm.so.2.1200.0
libva-glx.so.1 ---> libva-glx.so.2.1200.0
libva-x11.so.1 ---> libva-x11.so.2.1200.0
intel-media-driver-21.2.3 for Porteus 4.0 x64
Sorry, my English is bad.

Post Reply