Open biyuehuang opened 3 years ago
Please check if the media-driver has been built successfully. find media_build/ -name iHD_drv_video.so media_build/media_driver/iHD_drv_video.so Then compare md5sum of media_build/media_driver/iHD_drv_video.so and /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so.
I am getting the same error. I have installed MediaSDK
, then cloned cva_sample
and built it. Should we reinstall again?
Ubuntu 20.04
./bin/video_e2e_sample -par par_file/rtsp/n16_face_detection_1080p.par
Found 1 par file in command line
Multi Transcoding Sample Version 8.4.27.0
Par file is: par_file/rtsp/n16_face_detection_1080p.par
External allocator will be used as some cmd line paremeters request it.
Some inter-sessions do not use opaque memory (possibly because of -o::raw).
Opaque memory in all inter-sessions is disabled.
error: failed to initialize VAAPI device
[ERROR], sts=MFX_ERR_DEVICE_FAILED(-17), start_video_e2e_thread, transcode.Init failed at /home/pmg/Development/cva_sample/video_e2e_sample/src/sample_multi_transcode.cpp:1343
It turned out my GPU was not Intel Integrated GPU. I enabled it from BIOS, then under Settings
- Graphics became Mesa Intel® Graphics (RKL GT1) instead of NVIDIA.
You can try to update your library. I use libmfx-gen.so.1.2.7 instead of using libmfxhw64.so.1.35. That will be no error.
Loaded Library configuration: Version: 2.7 ImplName: mfx-gen Adapter number : 0 Adapter type: integrated Used implementation number: 0 Loaded modules: 0: /opt/intel/svet/onevpl/lib/libmfx-gen.so.1.2.7 1: /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1.35
SVET sample application building has completed! But $ vainfo libva info: VA-API version 1.9.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_9 libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed libva info: va_openDriver() returns 18 vaInitialize failed with error code 18 (invalid parameter),exit
$ ./bin/video_e2e_sample -par par_file/inference/n16_face_detection_1080p.par Found 1 par file in command line Multi Transcoding Sample Version 20.3.0
Par file is: par_file/inference/n16_face_detection_1080p.par
External allocator will be used as some cmd line paremeters request it. Some inter-sessions do not use opaque memory (possibly because of -o::raw). Opaque memory in all inter-sessions is disabled. error: failed to initialize VAAPI device
[ERROR], sts=MFX_ERR_DEVICE_FAILED(-17), start_video_e2e_thread, transcode.Init failed at /home/Downloads/concurrent-video-analytic-pipeline-optimization-sample-l/video_e2e_sample/src/sample_multi_transcode.cpp:1281
OS:Ubuntu18.04 linux kernel: 5.7.0-050700rc7-generic Openvino2021.2