I have installed IMSDK 2017 in my Intel Apollo Lake platform. When I am trying to run the media sdk sample application using the prebuilt binaries, I am getting the following error:
[ERROR], sts=MFX_ERR_MEMORY_ALLOC(-4), CreateAllocator, CreateHWDevice failed at /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK1/git/mdp_msdk-samples/samples/sample_decode/src/pipeline_decode.cpp:1195
[ERROR], sts=MFX_ERR_MEMORY_ALLOC(-4), Init, CreateAllocator failed at /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK1/git/mdp_msdk-samples/samples/sample_decode/src/pipeline_decode.cpp:405
[ERROR], sts=MFX_ERR_MEMORY_ALLOC(-4), main, Pipeline.Init failed at /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK1/git/mdp_msdk-samples/samples/sample_decode/src/sample_decode.cpp:666
I have tried to run the following command:
/opt/intel/mediasdk/samples/_bin/x64/sample_decode h264 -i in.264 -o out.yuv
SDK and sample applications details are as below:
SDK, version 7.0.16073598
Samples, version 7.0.16073598
VA-API version 0.99.0
Please let me know if I am missing something here.
I was able to fix this issue. In my image the iHD_drv_video.so library was present in /usr/lib. As the va_openDriver() tries to locate this library in /usr/lib/media-libva/ (which is the LIBVA_DRIVERS_PATH env set), it was failing.
Now I am able to execute the binary properly