[Libva] vaInitialize() from multiple processes

Nikita Orlov nikitos1550 at yandex.ru
Tue May 10 07:07:57 UTC 2016


Hi!

Seems /dev/dri/renderD128 works. More over I don`t need to take care about locking decoding in two processes.
What is difference with /dev/dri/card0 ?

10.05.2016, 04:17, "Xiang, Haihao" <haihao.xiang at intel.com>:
>>  Hello!
>>
>>  I am using vaapi for decoding h.264 video in Linux env (only DRM).
>>
>>  If I an starting several processes, second process can`t
>>  vaInitialize.
>>  Now I am solving it, using several decoding streams in one process
>>  with same VADisplay, setting lock for decoding, so only one thread
>>  really decoding in one time slot.
>>
>>  How to so it with several independent processes? Should I just share
>>  VADisplay? or are there some trick?
>
> Are you using /dev/dri/card0, not /dev/dri/renderD128 in your APP ? If
> yes, please try /dev/dri/renderD128 instead. For /dev/dri/card0, you
> have to get access permission unless you login as root user or your
> process is the first process to access /dev/dri/card0.
>
> Thanks
> Haihao
>
>>  --
>>  Nikita Orlov
>>  Skype: nik_stet
>>  QQ: 2717846083
>>  _______________________________________________
>>  Libva mailing list
>>  Libva at lists.freedesktop.org
>>  https://lists.freedesktop.org/mailman/listinfo/libva

-- 
Nikita Orlov
Skype: nik_stet
QQ: 2717846083


More information about the Libva mailing list