How to change VideoEncode GopPicSize?

How to change VideoEncode GopPicSize?

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..

 

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

 

 

Leave a Comment

Please sign in to add a comment. Not a member? Join today