Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
5 Views

second decoder calling mfxDECODE::DecodeFrameAsync return -17

Hi, 

I'm trying using API to do a multiple decoder application.

If I initialize decode session with MFX_IOPATTERN_OUT_VIDEO_MEMORY, only first decode session can decode well, the others failed while calling DecodeFrameAsync with returned code -17 .

But if I initialize with MFX_IOPATTERN_OUT_SYSTEM_MEMORY, I tried maximum 16 decode sessions and all work perfectly.

I referenced IntelMediaSDK-tutorial-0.0.3/simple_2_decode_vmem and have no idea what is the problem.

 

Any suggestions?

penny

0 Kudos
4 Replies
Highlighted
Beginner
5 Views

mediasdk_tracer and mediasdk_sys_analyzer log attached.

0 Kudos
Highlighted
Employee
5 Views

Hi Penny, can you check:

1. You are calling MFXVideoCORE_SetHandle with the same device handle for all decoder sessions

2. if not please check if pull of surfaces you are using separate for each decoder.

0 Kudos
Highlighted
Employee
5 Views

Penny,

Check lines 174254-174310 in msdk_tracer_device_fail.txt , all fields of surface_out object have values 2048. In other words mfxFrameSurface object is corrupted. 

0 Kudos
Highlighted
Beginner
5 Views

Hi all,

Thanks for your suggestions.

I finally made 16 decode sessions run simultaneously.

Just like Artem said, I am using the same device handle for all decoder sessions.

Thanks for your help!!!

penny

0 Kudos