Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Sam1
Beginner
125 Views

vaInitialize failed and errors while running sample_decode

Hi,

I have built Intel Media SDK in Ubuntu 16.04 after patching the kernel as given in "http://docs.unified-streaming.com/documentation/capture/media-sdk.html#linux".

When I enter vainfo this is what I get:

libva info: VA-API version 0.99.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
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
libva error: /opt/intel/mediasdk/lib64/iHD_drv_video.so init failed
libva info: va_openDriver() returns 18
vaInitialize failed with error code 18 (invalid parameter),exit

 

When I run sample_decode, it gives this error:

[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), Init, m_mfxSession.Init failed at msdk/samples/sample_decode/src/pipeline_decode.cpp:285

The processor is Intel(R) Core(TM) i5-6400. Ubuntu 16.04 is run on VMware

0 Kudos
2 Replies
Anna_B_Intel
Employee
125 Views

Hi Nihadh, 

Make sure that you loaded the proper Linux kernel. What's the output from "uname -r" command?

Best wishes, 

Anna

Sam1
Beginner
125 Views

Hi,

Output of uname -r:

4.4.0

This is the kernel that is required. Actually the problem was that I was running Intel Media SDK in VMware with Windows 10 host. I found out that virtual machines cannot access GPU especially when host is windows. That is why HW implementation failed. But why doesn't SW implementation work? I get the same error with SW implementation too.

Thanks

Reply