---
title: Timecode sample data
framework: quicktime-file-format
role: symbol
role_heading: Atom
path: quicktime-file-format/timecode_sample_data
---

# Timecode sample data

An atom that represents timecode sample data.

## Overview

Overview A timecode media sample is recorded as a 32-bit integer, interpreted based on the value of the Counter flag in the timecode sample description. If the Counter flag is set to 1 in the timecode sample description, the sample data is an unsigned 32-bit integer. The timecode counter value is determined by dividing this unsigned 32-bit integer by the number of frames field in the timecode sample description. If the Counter flag is set to 0 in the timecode sample description, the sample data format is a signed 32-bit integer and is used to calculate a timecode record.

## Topics

### Data fields

- [Hours](quicktime-file-format/timecode_sample_data/hours.md)
- [Negative](quicktime-file-format/timecode_sample_data/negative.md)
- [Minutes](quicktime-file-format/timecode_sample_data/minutes.md)
- [Seconds](quicktime-file-format/timecode_sample_data/seconds.md)
- [Frames](quicktime-file-format/timecode_sample_data/frames.md)

## See Also

### Storing time code data

- [Timecode sample description](quicktime-file-format/timecode_sample_description.md)
- [Timecode media information atom ('tcmi')](quicktime-file-format/timecode_media_information_atom.md)
- [Creating a timecode track for 29.97 FPS video](quicktime-file-format/creating_a_timecode_track_for_2997_fps_video.md)
