Skip to content

Type Alias: TrackHeaderBox<V> ​

ts
type TrackHeaderBox<V> = FullBox & object;

Defined in: boxes/TrackHeaderBox.ts:14

Track Header Box (tkhd).

ISO/IEC 14496-12:2015 - 8.3.2

The flags field holds the values 0x000001 (track enabled), 0x000002 (track in movie), 0x000004 (track in preview), and 0x000008 (size is aspect ratio).

Type Parameters ​

V ​

V extends IsoInt64 = number

Type Declaration ​

alternateGroup ​

ts
alternateGroup: number;

creationTime ​

ts
creationTime: V;

The creation time of the track, in seconds since midnight, 1904-01-01, UTC.

duration ​

ts
duration: V;

The duration of the track in units of the timescale of the mvhd box. All bits set means that the duration cannot be determined.

height ​

ts
height: number;

The visual height of the track. The box stores an unsigned 16.16 value, and the reader returns the decoded number.

layer ​

ts
layer: number;

matrix ​

ts
matrix: [a: number, b: number, u: number, c: number, d: number, v: number, x: number, y: number, w: number];

The transformation matrix in the order a, b, u, c, d, v, x, y, w. The identity matrix is [1, 0, 0, 0, 1, 0, 0, 0, 1]. The box stores u, v, and w as 2.30 values, and the other entries as 16.16 values.

modificationTime ​

ts
modificationTime: V;

The most recent time the track was modified, in seconds since midnight, 1904-01-01, UTC.

trackId ​

ts
trackId: number;

type ​

ts
type: "tkhd";

volume ​

ts
volume: number;

The volume of an audio track. The box stores a signed 8.8 value, and the reader returns the decoded number, such as 1.

width ​

ts
width: number;

The visual width of the track. The box stores an unsigned 16.16 value, and the reader returns the decoded number.

A Streaming Video Technology Alliance project.