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.

Set Encoding Frame Order

Mohammad_T_1
Beginner
128 Views

Hello,

I am using Intel Media SDK 388 version 1.16. I do Encode raw data in h264 and it's working fine. Encoding parameters are:

m_mfxEncParams.mfx.EncodedOrder = 0; 
m_mfxEncParams.mfx.IdrInterval = 0;
m_mfxEncParams.mfx.GopPicSize = 24;
m_mfxEncParams.mfx.GopRefDist = 3;

 m_mfxEncParams.mfx.CodecProfile = MFX_PROFILE_AVC_MAIN;   

The encoded h264 file is working fine. Output frames are in orders: IPBBPBBPBB... and so on.

But for one requirement i want to change the Frame orders as IBBPBBPBBP... and so on.

I tried to change Encode order by changing m_mfxEncParams.mfx.EncodedOrder = 1; but not succeeded.  

So please guide me, how can in set Encoding Frame order. 

Thank you

 

0 Kudos
1 Solution
Anna_B_Intel
Employee
128 Views

Hi Mohammad,

First of all you should update your Media SDK up to Media SDK 2016 R2.

To have gop-structure "IBBPBBPBBP" you should set m_mfxEncParams.mfx.EncodedOrder = 1; and specify type of frames by FrameType enumerator (see details in mediasdk-man.pdf).

Best wishes,

Anna

View solution in original post

1 Reply
Anna_B_Intel
Employee
129 Views

Hi Mohammad,

First of all you should update your Media SDK up to Media SDK 2016 R2.

To have gop-structure "IBBPBBPBBP" you should set m_mfxEncParams.mfx.EncodedOrder = 1; and specify type of frames by FrameType enumerator (see details in mediasdk-man.pdf).

Best wishes,

Anna

Reply