I need a help with MFXVideoENCODE_Query() from Intel Media SDK. I wrote code posted below and unfortunately it doesn't work. MFXVideoENCODE_Query() always returns error MFX_ERR_UNSUPPORTED. I played with parameters, but each time failed.
At the same time, I'm able to encode video with these parameters using HW HEVC encoder on my Skylake. So, only MFXVideoENCODE_Query() doesn't work correctly for me.
I tried do the same for AVC codec and also tried to call MFXVideoENCODE_Query() after MFXVideoUSER_Load(), but in both cases I constantly get the same error.