Media (Intel® oneAPI 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

how set gop size ?h264 encoder intel sdk of linux

andya
Beginner
321 Views

Hi,

in ffmpeg have number:

    /**
     * the number of pictures in a group of pictures, or 0 for intra_only
     * - encoding: Set by user.
     * - decoding: unused
     */
    int gop_size;

how set gop size in intel sdk for linux,and similar number about encoder h264 stream. thanks


 

0 Kudos
3 Replies
Sravanthi_K_Intel
321 Views

Hello Andya,

You access the GOP size from the mfxVideoParam class. In the sample_encoder function, you can set this parameter in the InitMfxEncParams() function. You can find more information on p125 and p129 of mediasdk-man.pdf in the <MEDIASDK>/docs.

Please let me know if I am misunderstanding your question.

Thanks.

Sravanthi

0 Kudos
andya
Beginner
321 Views

i see :

Number of pictures within the current GOP (Group of Pictures); if
GopPicSize=0, then the GOP size is unspecified. If GopPicSize=1,
only I-frames are used. See Example 14 for pseudo-code that
demonstrates how SDK uses this parameter


but i don‘t know Example 14,where ‘s it,i not found in <MEDIASDK>/samples,can u provides detailed information

0 Kudos
Sravanthi_K_Intel
321 Views

Hello Andya,

You can find Example 14 on p123 of the same document (mediasdk-man.pdf in the <MEDIASDK>/docs).

Let me know if you have more questions.

0 Kudos
Reply