---
title: "Sample group description atom ('sgpd')"
framework: quicktime-file-format
role: symbol
role_heading: Atom
path: quicktime-file-format/sample_group_description_atom
---

# Sample group description atom ('sgpd')

An atom that gives information about the characteristics of sample groups.

## Mentioned in

Representing encoder delay explicitly

## Overview

Overview Sample group description atoms give information about the characteristics of sample groups. The sample group description atom has an atom type of ‘sgpd’. In a general case, each instance of a sample group description atom has a type code that distinguishes different sample groupings. There can be multiple instances of this atom if there is more than one sample grouping for the samples in a track. At most one instance of a sample group description with a particular grouping type exists in a track. An associated sample-to-group atom has the same value associated with that grouping type. The information or “payload data” is stored in the sample group description atom, after the entry count, as an array of entries for which the meanings vary according to the characteristics of grouping type. For use in AAC encoder delay representation, there is one instance of a sample group description atom in a given QuickTime sound track with grouping type ‘roll’. The specifics for audio data (AudioRollRecovery()) are used and articulate the rolling decode dependency. Because the sample group description atom for this purpose is describing the entirety of the AAC audio stream, the payload data field resolves to a single signed 16-bit integer representing the roll distance, which is set to -1. In other words, one AAC packet (1024 encoded PCM audio samples) preceding the media sample is indicated as being of the same type as the encoded source data, allowing the decode transform to operate over the required two AAC packets for the first media sample specified in the edit list. note: The payload data value (roll distance in this use) of -1 is a typical value for existing AAC codecs, but the payload data can have other values. Codecs could use alternative values depending upon their implementation details. The layout of the sample group atom is as follows:  |   |   |   |   |   |   |   |   |

## Topics

### Data fields

- [Size](quicktime-file-format/sample_group_description_atom/size.md)
- [Type](quicktime-file-format/sample_group_description_atom/type.md)
- [Version](quicktime-file-format/sample_group_description_atom/version.md)
- [Flags](quicktime-file-format/sample_group_description_atom/flags.md)
- [Grouping type](quicktime-file-format/sample_group_description_atom/grouping_type.md)
- [Default length](quicktime-file-format/sample_group_description_atom/default_length.md)
- [Entry count](quicktime-file-format/sample_group_description_atom/entry_count.md)
- [Payload data](quicktime-file-format/sample_group_description_atom/payload_data.md)

## See Also

### Sample group structures

- [Sample-to-group atom ('sbgp')](quicktime-file-format/sample-to-group_atom.md)
