---
title: Time-to-sample table
framework: quicktime-file-format
role: symbol
role_heading: Data field
path: quicktime-file-format/time-to-sample_atom/time-to-sample_table
---

# Time-to-sample table

A table that defines the duration of each sample in the media.

## Overview

Overview Each table entry contains a count field and a duration field. The structure of the time-to-sample table is as follows.  |   |   |  You define a time-to-sample table entry by specifying these fields: Entries in the table describe samples according to their order in the media and their duration. If consecutive samples have the same duration, a single table entry can be used to define more than one sample. In these cases, the count field indicates the number of consecutive samples that have the same duration. For example, if a video media has a constant frame rate, this table would have one entry and the count would be equal to the number of samples. An example of a time-to-sample table is as follows.  |   |   |   |  The data stream contains a total of nine samples that correspond in count and duration to the entries of the table shown here. Even though samples 4, 5, and 6 are in the same chunk, sample 4 has a duration of 3, and samples 5 and 6 have a duration of 2.

## See Also

### Data fields

- [Size](quicktime-file-format/time-to-sample_atom/size.md)
- [Type](quicktime-file-format/time-to-sample_atom/type.md)
- [Version](quicktime-file-format/time-to-sample_atom/version.md)
- [Flags](quicktime-file-format/time-to-sample_atom/flags.md)
- [Number of entries](quicktime-file-format/time-to-sample_atom/number_of_entries.md)
