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.

libva vaInitialize failed in new thread created by pthread_create

jerry_l_
Beginner
437 Views

hi,

    i'm using msdk for linux server 2013 , the os is ubuntu 12.04 lts ,and the samples are building and running ok.

    now, i write a h264 decoder for my mutithreading programm, the decoder will be initialized in a new thread, and when create hardware device (drm mod), i got this error:

libva info: VA-API version 0.34.0

libva info: va_getDriverName() returns 1

vaInitialize failed

 While, if the decoder is not created in new thread, it's inialized ok

is there any problem like this  ??

or give me some tips ,3ks!!

0 Kudos
2 Replies
Jeffrey_M_Intel1
Employee
437 Views

Do you also see this problem when running as root?

 

 

0 Kudos
jerry_l_
Beginner
437 Views

yes,it's running as root,and the thread attribute is same as the main thread,

can different mfx sessions use one vaapidevice instance when sethandle ?if so i can initialize the hard device instance at the main thread,and then use it in all new threads

0 Kudos
Reply