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 change VideoEncode GopPicSize?

SeongHun_P_
Beginner
679 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
679 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.

 

 

0 Kudos
Reply