A GOP (group of pictures) is the structure of frames between one keyframe and the next: an independent I-frame followed by predicted P- and B-frames that only store the differences. Longer GOPs compress better (fewer expensive keyframes) but make seeking and bitrate switching coarser.

In adaptive streaming, GOP length must align with segment boundaries and be consistent across all renditions, because the player can only switch quality at a keyframe. A closed, aligned GOP structure is what makes seamless ABR switching possible; misaligned GOPs cause stalls or visible glitches at the switch point.

Book cover: Video Streaming, Volume 2 of the Fora Soft Video Engineering HandbookBook cover: Video Encoding, Volume 1 of the Fora Soft Video Engineering HandbookBook cover: Video Streaming, Volume 3 of the Fora Soft Video Engineering Handbook

The handbook · 7 volumes

Fora Soft Video Engineering Handbook

GOP length trades compression against how cleanly a player can seek and switch renditions, so it must line up with segment boundaries. We wrote seven volumes covering the video stack; for GOP structure start with Volume 1 on frame types, rate control, and encoder settings, then Volume 2 on segment packaging, with ABR switching in Volume 3. Written by Nikolay Sapunov, CEO at Fora Soft.

Browse the handbook on Amazon →7 volumes · 9,000+ pages · Kindle & paperback

Choosing GOP length and keyframe spacing for adaptive streaming?

We will review your encoder and packager settings and send GOP and segment settings aligned for clean switching. 250+ video products shipped since 2005.

Book a 30-min call →WhatsApp →Email us →