What is a Group of Pictures?
A group of pictures, or GOP, is a sequence of coded video frames arranged according to a codec’s prediction structure. It typically includes an intra frame and related predicted frames.
How Groups of Pictures work
A GOP defines the dependency pattern among successive coded pictures, including independently coded pictures and frames predicted from earlier or later references. Display order may differ from coded order when bidirectionally predicted pictures are present. Closed GOPs prevent references from crossing their boundary, whereas open GOPs permit some cross-boundary prediction. Encoders coordinate this structure with segment duration, scene changes, random access, and rendition switching.
Key facts
- 1I-frames and IDR frames are not interchangeable terms: an I-frame is intra-coded, while an IDR picture additionally prevents later pictures from referring to pictures before the refresh point.
- 2B-frames can improve compression by using references on both temporal sides, but they may require frame reordering and buffering, which matters for real-time encoders and low-latency playback.
- 3Adaptive renditions generally need compatible random-access points at matching timestamps; otherwise a player switching variants may lack the reference pictures required to decode cleanly.
When Groups of Pictures matter
Developers tune GOP length to balance compression efficiency against seeking, error recovery, and live latency. Long GOPs save bitrate but can delay random access and amplify damage from lost data.
Common use cases for video
These examples cover video broadly, not specifically Groups of Pictures.
- Preparing uploaded video for web, mobile, connected-TV, social, or editorial playback.
- Creating clips, thumbnails, captions, alternate aspect ratios, and adaptive renditions.
- Normalizing camera, screen-recording, and user-generated files into predictable outputs.
Working with video
This guidance covers video broadly, not just Groups of Pictures.
A demuxer separates tracks from the container, decoders turn compressed streams into frames or samples, and filters apply spatial or temporal changes. Encoders compress the transformed tracks before a muxer writes the chosen output container.
Video compatibility is the product of codec, container, profile, level, frame rate, color, audio, and subtitles. Validate the complete output on target devices because a playable file on one decoder may fail or look different on another.
What you gain
- Standardized derivatives make diverse source files playable on target devices.
- A retained master can feed many resolutions, aspect ratios, codecs, and channels.
- Automated inspection and transformation make large upload volumes consistent.
What it costs
- More efficient codecs can lower bitrate at similar quality but usually cost more compute and may have narrower support.
- Higher resolutions and frame rates preserve more detail and motion while increasing processing and delivery requirements.
- Fast encoding settings improve throughput but can produce larger files or lower quality than slower analysis.
Before production
- 1Inspect codec, container, dimensions, frame rate, color, audio, and subtitle tracks.
- 2Test visual quality and playback support across the slowest and oldest target devices.
- 3Preserve a suitable master before applying lossy, destructive, or delivery-specific changes.