Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

How to change VideoEncode GopPicSize?

SeongHun_P_
Beginner
186 Views

Hello?

i'm transcoding with Intel Media SDK

 

- Init GopPicSize 30

MFXVideoENCODE_Init() -> MFXVideoENCODE_Query()

loop()

    MFXVideoDECODE_DecodeFrameAsync() -> MFXVideoENCODE_EncodeFrameAsync() 

 

 

 

- Add MFXVideoENCODE_Reset() Fuction to chagne GopPicSize 150

MFXVideoENCODE_Init() -> MFXVideoENCODE_Query()

loop()

    MFXVideoDECODE_DecodeFrameAsync() -> MFXVideoENCODE_EncodeFrameAsync() -> MFXVideoENCODE_Reset()

 

Is it the correct way to chagne GopPicSize to MFXVideoENCODE_Reset() Function?

Thank you..

 

0 Kudos
1 Reply
Seunghyuk_P_Intel
186 Views

Hi SeongHun,

You can change GOP size without calling Init() again.

Do this with simply changing "GopPicSize=150" and call Reset().

Like,

           m_pmfxENC->EncodeFrameAsync(....)

           .....

           if( any condition here)

           {

                 m_mfxEncParams.mfx.GopPicSize = 150;

                 m_pmfxENC->Reset(&m_mfxEncParams);

           }

Regards,

Peter.

 

 

Reply