[Libva] vaInitialize() from multiple processes

Xiang, Haihao haihao.xiang at intel.com
Tue May 10 01:17:51 UTC 2016


> 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


More information about the Libva mailing list