Community
cancel
Showing results for 
Search instead for 
Did you mean: 
andya
Beginner
53 Views

how set gop size ?h264 encoder intel sdk of linux

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

andya
Beginner
53 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

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