Keyframe Interval Calculator
Enter your frame rate and desired keyframe spacing to get the exact GOP size for your encoder.
Encoding Parameters
Common targets: HLS/DASH streaming = 2 s • Broadcast = 1 s • VOD scrubbing = 2–4 s • Archive/edit = 10–15 s
GOP Size (keyframe interval)
60
frames • every 2 s at 30 fps
FFmpeg flag
-g 60
GOP at common frame rates
| FPS | GOP | Exact? |
|---|
Copied!
Summary
Enter your frame rate and desired keyframe spacing to get the exact GOP size for your encoder.
How it works
- Enter your video frame rate (e.g. 24, 30, 60 fps).
- Set the desired seconds between keyframes (2 seconds is standard for streaming).
- The calculator multiplies frame rate by the interval to get GOP size.
- Copy the GOP value and paste it into your encoder settings.
- Use the FFmpeg or HandBrake command snippet shown below the result.
Use cases
- Setting the correct GOP for HLS/DASH adaptive streaming.
- Configuring OBS or streaming software for low-latency broadcast.
- Calculating keyframe spacing before exporting from a video editor.
- Optimizing scrubbing performance for video-on-demand files.
- Verifying encoder settings match a delivery spec (e.g. 2-second GOP).
- Comparing GOP sizes across common frame rates at a glance.
Frequently Asked Questions
Last updated: 2026-07-01 ·
Reviewed by Nham Vu