Skip to main content

Keyframe Interval

The frequency at which OBS sends a full reference frame instead of compressing only the differences from the previous frame. Twitch and YouTube both require 2 seconds.

Video encoders save bandwidth by only sending the differences between consecutive frames. Periodically, the encoder needs to send a complete reference frame called a keyframe (or I-frame). The keyframe interval is how often that happens, expressed in seconds.

How it actually works

Between keyframes, the encoder sends predicted frames (P-frames) and bi-directional frames (B-frames) that describe how pixels have moved or changed. A new viewer joining your stream cannot decode anything until the next keyframe arrives — and the platform cannot start a VOD seek anywhere except at a keyframe. Shorter intervals mean faster joins but a bigger bitrate overhead.

The 2-second rule

Both Twitch and YouTube Live require a keyframe interval of 2 seconds. Anything else risks rejection at the ingest, broken transcoding, audio drift or unseekable VODs. Set it explicitly — never leave it on "auto", which historically picked 250-frame intervals (≈4 seconds at 60 fps).

Why this matters

Common keyframe mistakes

How to set it in OBS

OBS → Settings → Output → Output Mode Advanced → Encoder tab → Keyframe Interval (seconds) = 2. Same value applies whether you are using NVENC, AMD AMF, QuickSync, Apple VT or x264.

Related terms

Keyframe interval works together with bitrate, CBR rate control and the encoder preset. Wrong values often surface as dropped frames or audio drift at the ingest.

Frequently asked questions

What keyframe interval does Twitch require?

Exactly 2 seconds. Streams with longer intervals risk being downgraded to source-only (no transcoded variants), and audio can drift on the VOD.

Does a shorter keyframe interval reduce latency?

It reduces join latency for new viewers (they can decode sooner) but not end-to-end latency for existing viewers. For real low latency, enable Twitch's Low Latency mode and keep the keyframe interval at 2 s.

Where do I set keyframe interval in OBS?

Settings → Output → switch Output Mode to Advanced → Encoder tab → Keyframe Interval. Set the value to 2 seconds explicitly; never leave it on 0 or 'auto'.

Related reading