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.
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.
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!!!