igpapi — Instagram private API Simulator for Node.js (API reference) 4.18.2
    Preparing search index...

    Interface ClipMp4Track

    interface ClipMp4Track {
        compositionOffsets: Uint8Array<ArrayBufferLike> | undefined;
        displayHeight: number;
        displayWidth: number;
        duration: number;
        editList: Uint8Array<ArrayBufferLike> | undefined;
        handler: string;
        height: number;
        matrix: Uint8Array;
        presentationSeconds: number;
        rotation: 0 | 90 | 180 | 270 | undefined;
        sampleEntry: Uint8Array;
        samples: readonly Uint8Array<ArrayBufferLike>[];
        syncSamples: Uint8Array<ArrayBufferLike> | undefined;
        timescale: number;
        timeToSample: readonly { count: number; delta: number }[];
        width: number;
    }
    Index

    Properties

    compositionOffsets: Uint8Array<ArrayBufferLike> | undefined

    The ctts box, whole, when the track has one.

    displayHeight: number
    displayWidth: number

    The picture's size as a person sees it, in whole pixels: width and height, swapped for 90 and 270.

    duration: number

    Duration in the track's timescale.

    editList: Uint8Array<ArrayBufferLike> | undefined

    The edts box, whole, when the track has one.

    handler: string

    The handler type: vide, soun, …

    height: number
    matrix: Uint8Array
    presentationSeconds: number

    How long the track plays, in seconds: its edit list's segments when it has one (a video with B pictures skips the first ticks of its media, so it plays shorter than its media lasts), else duration over timescale.

    rotation: 0 | 90 | 180 | 270 | undefined

    How the matrix turns the coded picture to show it, clockwise: a phone stores a portrait recording as a landscape picture and a 90 degree matrix. undefined when the matrix is anything else (a mirror, a shear), which the encode refuses. This is the one place the matrix is read; the display size below is the coded size turned by it.

    sampleEntry: Uint8Array

    The first sample entry of stsd, whole (size, type and content).

    samples: readonly Uint8Array<ArrayBufferLike>[]
    syncSamples: Uint8Array<ArrayBufferLike> | undefined

    The stss box, whole, when the track has one (no box: every sample is a sync sample).

    timescale: number
    timeToSample: readonly { count: number; delta: number }[]

    stts entries: count samples of delta each.

    width: number

    tkhd width and height, 16.16 fixed point, and its 36-byte transformation matrix.