Skip to content

Type Alias: MovieHeaderBox<V> ​

ts
type MovieHeaderBox<V> = FullBox & object;

Defined in: boxes/MovieHeaderBox.ts:11

Movie Header Box (mvhd).

ISO/IEC 14496-12:2015 - 8.2.2

Type Parameters ​

V ​

V extends IsoInt64 = number

Type Declaration ​

creationTime ​

ts
creationTime: V;

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

duration ​

ts
duration: V;

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

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 presentation was modified, in seconds since midnight, 1904-01-01, UTC.

nextTrackId ​

ts
nextTrackId: number;

The track ID for the next track that a writer adds to the presentation.

preDefined? ​

ts
preDefined?: number[];

The pre_defined field. writeMvhd writes 0 for a missing value.

rate ​

ts
rate: number;

The preferred playback rate. The box stores a signed 16.16 value, and the reader returns the decoded number, such as 1.

timescale ​

ts
timescale: number;

The number of time units that pass in one second for the presentation.

type ​

ts
type: "mvhd";

volume ​

ts
volume: number;

The preferred playback volume. The box stores a signed 8.8 value, and the reader returns the decoded number, such as 1.

A Streaming Video Technology Alliance project.