Using guidlines and information from this forum, i'm attempting to minimize latency in the Intel Media SDK decoder.
When i add the following code:
m_extCO.Header.BufferId = MFX_EXTBUFF_CODING_OPTION;
m_extCO.Header.BufferSz = sizeof(mfxExtCodingOption);
m_extCO.MaxDecFrameBuffering = 1;
m_extBuffersInit = reinterpret_cast(&m_extCO);
m_mfxVideoParams.NumExtParam = 1;
m_mfxVideoParams.ExtParam = m_extBuffersInit;
MFXVideoDECODE_Init returns -15 (MFX_ERR_INVALID_VIDEO_PARAM)
I'm running on SW mode,
And my machine is core i7 Intel.
(If i do not add that code everything works perfectly, apart from the lag...)
Any help is appreciated - i do not understand why this returns as "unsupported".
After all of the recommended changes to reduce latency (apart from extra params i'm having trouble to use) the frame latency got from 12 to 3. What i need is latency of 1. (And i encode H264 that way using a different lib, which i know for sure that it was not encoded with any latency requirement)