What Is a Keyframe Interval? Settings for Live Streaming

A keyframe interval is the time between fully encoded frames. See what YouTube, Twitch, Facebook, Kick and LinkedIn ask for and how to convert seconds to frames.

What a keyframe is

A keyframe is a video frame that is encoded on its own, without depending on any other frame. The HLS specification calls such frames I-frames: "encoded video frames whose encoding does not depend on any other frame". The frames in between depend on neighbouring frames, which is what makes video compression efficient. The keyframe interval (also called GOP length or keyframe frequency) is the time between one keyframe and the next, usually set in seconds in an encoder such as OBS Studio.

Keyframes matter in live streaming because a viewer who joins, or a player that switches quality, needs a frame it can start decoding from. The HLS specification says a Media Segment that contains H.264 video SHOULD contain an Instantaneous Decoding Refresh (IDR) frame, and that frames before the first IDR will be downloaded but possibly discarded.

What the platforms ask for

Figures as published by each platform on October 5, 2026. Check the current documentation before you go live.
PlatformKeyframe interval publishedSource
YouTubeRecommended 2 seconds; do not exceed 4 secondsYouTube Help: live encoder settings
Twitch2 secondsTwitch Broadcasting Guidelines
Facebook Live2 seconds recommended; do not exceed 4 secondsMeta Live Video API reference
Kick2 seconds (the OBS settings Kick lists use 2s)Kick Help Center
LinkedIn LiveEvery 2 seconds (60 frames at 30 fps)LinkedIn Help

Seconds, frames and frame rate

Some encoders ask for frames instead of seconds. The conversion is frames = seconds × frame rate. A 2-second interval is 60 frames at 30 fps (LinkedIn's own example) and 120 frames at 60 fps.

Where to set it

In OBS Studio, the setting is called Keyframe Interval, found under Settings, Output, and is entered in seconds; Kick's help page lists "Keyframe Interval 2s" for its recommended x264, NVIDIA NVENC and AMD encoder settings. Set it together with CBR rate control and a bitrate suited to the platform. Because every platform in the table accepts 2 seconds, it is a safe common value for streaming to several platforms at once; our bitrate recommender shows the figure per platform.

Symptoms and checks

  • If a platform complains about the keyframe frequency or the preview stays blank, check that the interval is not above the platform's limit (4 seconds on YouTube and Facebook).
  • Make sure the setting is the same in every encoder or relay that feeds the platform.
  • LinkedIn also suggests the Baseline video profile if a stream fails to process, because higher profiles can introduce B-frames and timestamp issues.

Related: what is bitrate, how to multistream with OBS Studio and what is HLS.

Try it with Multistream Platform. Send one RTMP or SRT stream and relay it to YouTube, Twitch, Facebook, Kick, TikTok and custom endpoints. Start on the free Starter plan (2 channels, 20 streaming hours a month) and see the pricing page for paid plans.

Sources

Platform figures were checked on October 5, 2026. Platforms change their recommendations, so confirm against the current documentation before you go live.

Frequently asked questions

What is a keyframe interval?
The time between keyframes (frames that are encoded independently of other frames). In live streaming it is set in seconds.
YouTube and Facebook recommend 2 seconds and say not to exceed 4; Twitch, Kick and LinkedIn list 2 seconds.
60 frames at 30 fps and 120 frames at 60 fps.
In common use they refer to the same idea: how often a full frame is encoded. Encoders may express it in frames or in seconds.
Viewers and players need keyframes to start or switch playback. HLS segments with H.264 video should contain an IDR frame.
A relay forwards the stream you send, so the interval you set in your encoder applies to every destination. Use a value every platform accepts, such as 2 seconds.
In OBS Studio's Settings under Output, as Keyframe Interval in seconds. Kick's help page lists 2s in its OBS settings.
Have questions that aren't listed here? Talk to the team
Go Live Today

Ready to stream everywhere?

Bring your live, hosted, and pre-recorded streams into one platform.

One platform. Limitless audiences. Stream. Grow. Everywhere.