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.

Init for session and decode

muramastu
Beginner
289 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
289 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.

 

0 Kudos
Reply