Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./build_and_install.sh sucessfully but vainfo exist error #11

Open
biyuehuang opened this issue Jan 6, 2021 · 4 comments
Open

./build_and_install.sh sucessfully but vainfo exist error #11

biyuehuang opened this issue Jan 6, 2021 · 4 comments

Comments

@biyuehuang
Copy link

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

@elainewangprc
Copy link
Collaborator

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.

@OrkhanHI
Copy link

OrkhanHI commented Oct 18, 2021

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

@OrkhanHI
Copy link

OrkhanHI commented Oct 20, 2021

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.

@violet17
Copy link

violet17 commented Jul 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants