supervision-js
    Preparing search index...

    Interface MediaNormalizationVideoOptions

    interface MediaNormalizationVideoOptions {
        frameRate?: number;
        width?: number;
        height?: number;
        fit?: MediaNormalizationFit;
        codec?: MediaNormalizationVideoCodec;
        bitrate?: number;
        keyFrameInterval?: number;
        forceTranscode?: boolean;
    }
    Index
    frameRate?: number

    Output frame rate in hertz. Defaults to 30, which lands a variable-rate input on a constant grid that detection frame indices can address.

    width?: number

    Output width in pixels. Unset keeps the source's display width.

    height?: number

    Output height in pixels. Unset keeps the source's display height.

    How the frame is fitted when both width and height are set.

    Output video codec. Defaults to AVC for Mp4 and VP9 for WebM.

    bitrate?: number

    Output bitrate in bits per second. Unset lets the encoder choose.

    keyFrameInterval?: number

    Seconds between key frames. Defaults to 1, which costs bytes and buys the short seeks scrubbing and frame stepping depend on.

    forceTranscode?: boolean

    Always re-encode. Defaults to true, so the output profile is the requested one whatever the input already was; false copies a compatible video stream through untouched.