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.

oneVPL (beta10) concurrent encode stream

Zanaboni__Gabriele
1,187 Views

I am doing tests of encoding with oneAPI VPL for windows, release beta10.

The simple question is, how many stream could be simultaneusly encoded with the same machine on different thread?

I would say three, after run the sample Hello_encode (properly changed to to run with threads). With more, I experienced errors during initilization, MFXLoad failed or Encode init failed

Tests done with visual studio 2017 (OS. W10)

Appended source file used for tests

Thanks

 

 

 

 

0 Kudos
1 Solution
Mark_L_Intel1
Moderator
1,128 Views

Hi Gabriele,


I have contact with dev team and here is the response:

  • oneVPL applications can be roughly divided into 2 phases: "init" and "main loop".  
  • In general, the "init" phase should not be considered completely thread safe. There are many things that can go wrong during init phase. 
  • The main loop is intended to be thread safe – if not we would consider this a bug. Nearly all performance gains would come from parallelization of the main loop.

So the suggestions is to put the thread in the main loop. And you can try this in our Gold release.


Mark


View solution in original post

0 Kudos
5 Replies
ArunJ_Intel
Moderator
1,174 Views

Hi Gabriele,


We are forwarding your case to Subject matter experts, they will get back to you soon on this.


Thanks

Arun


0 Kudos
Mark_L_Intel1
Moderator
1,168 Views

Hi Gabriele,


Are you saying to use hello_encode in Windows 10, you got an initialization error?


If yes, could you let me know how to reproduce it?


Mark


0 Kudos
Zanaboni__Gabriele
1,164 Views

Hi Mark,

you can reproduce the issue replacing the original source file Hello_encode.cpp with the one I had appended in the previous email.

As you can see from the code, I tried to run four coding threads at the same time, which is enough to trigger the initialization error.

regards

Gabriele

0 Kudos
Mark_L_Intel1
Moderator
1,143 Views

Hi Gabriele,


Got it, let me check it out.


By the way, our Gold release just announced today, could you double check if this issue is still reproducible?


Mark


0 Kudos
Mark_L_Intel1
Moderator
1,129 Views

Hi Gabriele,


I have contact with dev team and here is the response:

  • oneVPL applications can be roughly divided into 2 phases: "init" and "main loop".  
  • In general, the "init" phase should not be considered completely thread safe. There are many things that can go wrong during init phase. 
  • The main loop is intended to be thread safe – if not we would consider this a bug. Nearly all performance gains would come from parallelization of the main loop.

So the suggestions is to put the thread in the main loop. And you can try this in our Gold release.


Mark


0 Kudos
Reply