Tool

GOP Size Calculator

Find GOP and segment durations where whole video GOPs and whole AAC audio packets end at exactly the same instant — for HLS, MPEG-DASH, and CMAF segmented workflows.

Inputs

Try 30 fps, then 29.97 — before you switch, predict how the results will change.

Notes

How it works

All arithmetic runs on exact integer ratios in your browser — NTSC rates like 29.97 never drift or produce rounded false positives.

Exact rational math

Frame rates are parsed as fractions (29.97 → 30000/1001). A duration is only listed when a whole number of video frames and a whole number of AAC packets end at the same instant.

GOPs vs. segments

A segment can hold several aligned GOPs: 3.84 s segments at 25 fps can use two 1.92 s GOPs. The match table shows every way to divide each candidate.

NTSC reality check

At 30000/1001 fps with 48 kHz AAC, true alignment only occurs every 640 frames (≈21.35 s). Shorter NTSC segments always split an audio packet across a boundary.