Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

va_getDriverName() fails if vaapi already in use

SeongHun_P_
Beginner
801 Views
Good Day
 
After downloading the mediasdk-tutorials-0.0.3, I modified the simple_1_session source as shown below.
 
    int main()
    {
        ....
    
        MFXVideoSession session;
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        ....
    }
 
iHD_drv_video.so is loaded from root account, but why is it failing to find i965 in video group account?
my environment CentOS, MSS SDK 2015 R4..
 
// root
# ./simple_session
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
 
 
 
 
// video group user
# ./simple_session
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 1
libva error: va_getDriverName() failed with operation failed,driver_name=i965
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Abort (core dumped)
0 Kudos
6 Replies
Mark_L_Intel1
Moderator
801 Views

Hi HeongHun,

You are using a very old SDK version, could you use a new SDK version to re-check?

Also it would be a lot of issues if you run it under root, we recommend to run as the normal user privilege.

About tutorial, there is a new release 0.0.4, could you use that, I don't think this would cause any difference in your case so just FYI.

Also, there is a mistake in your description about the driver, media SDK uses i915 not i965, we used to support both but we only support i915 now.

Mark

0 Kudos
SeongHun_P_
Beginner
801 Views
Thank you for your reply.
 
 
The hardware currently in use is available up to MSS 2016 version.
 
If so, use the new SDK version If you run the sample above as a video group user
 
Are you sure you want to load only the iHD_drv_video.so library?
 
 
Thank you..
0 Kudos
Mark_L_Intel1
Moderator
801 Views

Could you tell me what is your hardware?

For our release support, we support N and N-1, where N to be the current processor version.

no, i915 is in kernel, iHD file is the UMD module to hook it up.

Mark

0 Kudos
SeongHun_P_
Beginner
801 Views

Thank you for your reply.

 

hardware is 'Intel(R) Xeon(R) CPU E3-1286 v3 @ 3.70GHz'

what is mean support N and N-1?

Does the video group user load only the iHD_drv_video.so library when set with a kernel mode driver?

 

Thank you..

0 Kudos
Mark_L_Intel1
Moderator
801 Views

Hi SeongHun,

From the log of your first post, the problem is the initialization of UMD which could be caused by multiple issues but we should first check the system environment. Your code was loading i965 driver which is not correct, it should load i915 KMD.

I also assumed you have installed the Media Server Studio based on our getting started guide and rebuilt the kernel which should have i915 KMD.

For platform support, the processor is Haswell, our current release support Skylake and above which means you have to use a very old Media SDK release. We don't support these release, means we don't fix the bug unless you can prove it can be reproduced in new hardware.

Mark. 

0 Kudos
SeongHun_P_
Beginner
801 Views

Thank you for your reply.

 

I will buy Skalake hardware and use Media SDK 2018
 
I'd appreciate it if you could just make one thing.
 
If install Media Server Studio based on the Intel Getting Started Guide and reconfigure the i915 KMD kernel
 
If run the sample in the first post in your video group account, Only load iHD_drv_video.so?
 
 
Thank you for your help.
0 Kudos
Reply