Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

how to control the produce of key frame

china_y_
Beginner
360 Views

after read the developer guide 

i know the intel media sdk can produce key frame as wish .

so control structure  is mfxEncodeCtrl 

so i use it like this 

mfxEncodeCtrl m_EncodeCtrl ;

m_EncodeCtrl.FrameType= MFX_FRAMETYPE_IDR | MFX_FRAMETYPE_REF| MFX_FRAMETYPE_I ;

then when i encode a frame i used like below 

sts = m_pVideoEnc->EncodeFrameAsync(m_pEncodeCtrl,m_ppEncSurfaces[nEncSurfIdx],&m_fxBS,&syncp);

sts always return  MFX_ERR_UNKNOWN 

is there something wrong with my setting ?

i am a green hand in this section .

so  is any body who can give me some advice ?

 thank you advanced !

and sorry for my poor my english 

best wishes 

0 Kudos
2 Replies
Zach_J_1
Beginner
360 Views

I am also very interested in how to control keyframe insertion.

0 Kudos
Petter_L_Intel
Employee
360 Views

Hi,

I suspect the issue may be not clearing (setting all values to 0) mfxEncodeCtrl structure before setting the desired FrameType.

There is also an example for how to insert key frame in the "sample_videoconf" sample part of the Media SDK package.

Regards,
Petter 

0 Kudos
Reply