Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Init for session and decode

muramastu
Beginner
103 Views

Hi!

   For decoding multiple video streams purpose, I created threads for each stream and start all decoding at the same time. However, some of them will be delayed to decode their 1st frame because the threads are blocked for seconds after calling MFXInit() and MFXVideoDECODE_Init(). The more threads and streaming created the issue happens easier.

   Is there a way to avoid this blocking?  Or, a way to set timeout (ex: 500ms)? 

   Thanks a lot!

BR,

muramastu

(The previous post seems to be unreadable, so I post it again. Sorry for the duplicate post.)

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
103 Views

Sorry for the delayed reply.  While we don't have a sample or example for this specific use case, one could be set up easily by launching several threads/processes of simple_2_decode from the tutorials which can be found at the Media Solutions Portal.   When I've tested scenarios like this I have seen behavior like you describe, but at least in that case of the delays was disk I/O from writing many raw frames to disk.

 

Reply