Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ynhuang
Beginner
71 Views

Multiple session init problem

Hi all,

I am writing a program to decode 16 video streamingwith hw decode. My program create16 threads, and every thread create a MFXVideoSession.The 1~7 session are init successfully. ButMFXVideoSession::Init() function over 8 sessionsalways return MFX_ERR_UNSUPPORTED.

Event I use sw decode the problem is still the same. Do any one has any information about this problem.

And my platform is:

OS: Win 7 (64bit)
CPU: i7 Sandy Bridge
Main Board : ASUS P8-H67-M Pro
Mem :4 GB
Media SDK : 3.0 Beta

0 Kudos
6 Replies
Anthony_P_Intel
Employee
71 Views

Hi,

There are currently some memory limits on 32-bit applications (even when running on a 64-bit OS).
Can you consider using/building a 64-bit application?

-Tony
ynhuang
Beginner
71 Views

Hi Tony,

I think the problem I meet is not memory limits. I can create 16 sessions and decode video packets in sample_decode.

But in my program, Ijust init 8 session and do nothing. I did not create decoder, andnot allocate any surface.The 8-th initfunction always return MFX_ERR_UNSUPPORTED.

Do you have anysuggestion like I should check any compile setting or something?


ynhuang
Beginner
71 Views

Hi Tony,

I think the problem I meet is not memory limits. I can create 16 sessions and decode video packets in sample_decode.

But in my program, Ijust init 8 session and do nothing. I did not create decoder, andnot allocate any surface.The 8-th initfunction always return MFX_ERR_UNSUPPORTED.

Do you have anysuggestion like I should check any compile setting or something?


IDZ_A_Intel
Employee
71 Views

Hi,

Can you share your code so that we can better understand what may be going on?

If your application is 32 bit, you may also be facing a known issue described here(with suggested workaround):http://software.intel.com/en-us/forums/showpost.php?p=159280

Regards,
Petter
ynhuang
Beginner
71 Views

Hi,

I have fixed this problem.

Thethe root cause of is my program set the stack size to 10M.Every thread allocate 10M virtual memory for stack. And every session also allocate 10M virtual memory. The virtual memory of this process is exaugstedafter I create 8 decoder to decode streaming.

I modify compile stack reserve size to 1M and this problem is fixed.

Regards,
YN Huang
IDZ_A_Intel
Employee
71 Views

Hi YN Huang,

glad to hear you got the issue resolved. Good luck with your continued Media SDK development.

Regards,
Petter
Reply