Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SeongHun_P_
Beginner
69 Views

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

 

0 Kudos
1 Reply
69 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