This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Setting maximum and minimum keyframe interval.

Hi,

Is it possible to set maximum and minimum i-frame interval for DM36x H264 codec?

Currently intraframeinterval = 30 and idrframeinterval = 30 settings are used.

But we need to set such that the i-frame occurs according to a set range. The range need to be set is 30 - 300. Which means after the IDR frame the next i-frame may occur after a minimum of 30 p-frames or a maximum of 300 p-frame.

Can this be set for DM36x codec?

-Vinay Bhargav

  • Yes you can set I or IDR frame interval as 300 or more. Please have a look Userguide of the encoder about allowed range of values.

  • Dear Veeranna,

    I will re-frame my question. Can the encoder decide on its own on when to place an i-frame based on a range(30 - 300) specified?

    ex: IDR. . . . 37pf. . . If. . . . . 254pf. . . . If. . .   The distance 37, 254 between consecutive I-frames is decided by the encoder based on the range specified. It should not always be equal to intraframeinterval or idrframeinterval(as is the case now), the distance should vary.

    This feature, where the encoder decides on its own on when to place a keyframe(i-frame) is present in x264(a software encoder for linux and windows platform).

    Regards,

    Vinay Bhargav

  • No DM36x Encoder will not decide on insertion of I/IDR frame. Normally application will tel to encoder when to insert I/IDR frame;In cases like scene change frame loss, decoder sync miss(need of IDR).

    If encoder has scene change detection then encoder itself can insert,  or some other case encoder will decide to insert IDR/I frames(like bitrate change)

    Can you please tell the use case for this?. Why exactly you are looking I frame insertion?