Quantcast
Channel: Intel® Software - Media
Viewing all articles
Browse latest Browse all 2185

MFXVideoENCODE_EncodeFrameAsync fails with MFX_ERR_INVALID_VIDEO_PARAM

$
0
0

Hi.

I had a problem by using the SDK.

So, I would like to encode single YUV frame into H.265 format. Basically I can do it with settings in the SDK sample sample_encode part.

But, when I try to mandate the frame type through mfxEncodeCtrl I get MFX_ERR_INVALID_VIDEO_PARAM error.

mfxEncodeCtrl control_buffer;
memset(&control_buffer, 0, sizeof(mfxEncodeCtrl));
control_buffer.FrameType = MFX_FRAMETYPE_IDR | MFX_FRAMETYPE_REF;

sts = m_pmfxENC->EncodeFrameAsync(&control_buffer, &m_pEncSurfaces[nEncSurfIdx], &pCurrentTask->mfxBS, &pCurrentTask->EncSyncP);

It looks like there is a conflict between encoder initialization and the control buffer. But this is for sure 1 frame to be encoded, so, I don't see any conflict points. Maybe someone knows why it produces an error ?


Viewing all articles
Browse latest Browse all 2185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>