MediaFormat.KeyIFrameInterval Field

Definition

A key describing the frequency of key frames expressed in seconds between key frames.

[Android.Runtime.Register("KEY_I_FRAME_INTERVAL")]
public const string KeyIFrameInterval;
[<Android.Runtime.Register("KEY_I_FRAME_INTERVAL")>]
val mutable KeyIFrameInterval : string

Field Value

Attributes

Remarks

A key describing the frequency of key frames expressed in seconds between key frames.

This key is used by video encoders. A negative value means no key frames are requested after the first frame. A zero value means a stream containing all key frames is requested. <p class=note> Most video encoders will convert this value of the number of non-key-frames between key-frames, using the #KEY_FRAME_RATE frame rate information; therefore, if the actual frame rate differs (e.g. input frames are dropped or the frame rate changes), the <strong>time interval</strong> between key frames will not be the configured value.

The associated value is an integer (or float since android.os.Build.VERSION_CODES#N_MR1).

Java documentation for android.media.MediaFormat.KEY_I_FRAME_INTERVAL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to