Type Alias: TrackHeaderBox<V>
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
alternateGroup: number;creationTime
creationTime: V;The creation time of the track, in seconds since midnight, 1904-01-01, UTC.
duration
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
height: number;The visual height of the track. The box stores an unsigned 16.16 value, and the reader returns the decoded number.
layer
layer: number;matrix
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
modificationTime: V;The most recent time the track was modified, in seconds since midnight, 1904-01-01, UTC.
trackId
trackId: number;type
type: "tkhd";volume
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
width: number;The visual width of the track. The box stores an unsigned 16.16 value, and the reader returns the decoded number.