@vestra-player/sdk - v1.11.3
    Preparing search index...

    Type Alias ExportOptions

    ExportOptions:
        | { format: "png"
        | "bmp"; destination: string; sampleTime?: number }
        | {
            format: "jpeg";
            destination: string;
            sampleTime?: number;
            quality?: number;
        }
        | {
            format: "mp4";
            destination: string;
            end: number;
            encoding?: ExportEncoding;
        }
        | {
            format: "copy";
            destination: string;
            end: number;
            container?: "auto"
            | "mp4"
            | "mkv";
        }

    One frame as PNG, JPEG (quality 1–100, default 90) or BMP (24-bit), or a clip: re-encoded as MP4 (mp4, frame-accurate, optional ExportEncoding) or copied without re-encoding (copy, starting on a keyframe).

    destination is never overwritten if it exists. The extension does not choose the format (a copy's extension is set to its container). sampleTime picks the frame (default: the snapshot time); end is the clip's end in source seconds. On Windows the export worker needs FFmpeg 6.1 or newer.

    Type Declaration

    • { format: "png" | "bmp"; destination: string; sampleTime?: number }
      • format: "png" | "bmp"

        A lossless frame.

      • destination: string

        Absolute path of the new file.

      • OptionalsampleTime?: number

        The frame's source time; default the snapshot time.

    • { format: "jpeg"; destination: string; sampleTime?: number; quality?: number }
      • format: "jpeg"

        A JPEG frame.

      • destination: string

        Absolute path of the new file.

      • OptionalsampleTime?: number

        The frame's source time; default the snapshot time.

      • Optionalquality?: number

        Integer 1–100, default 90.

    • { format: "mp4"; destination: string; end: number; encoding?: ExportEncoding }
      • format: "mp4"

        A clip from the snapshot time, re-encoded as H.264 + AAC.

      • destination: string

        Absolute path of the new file.

      • end: number

        Clip end, source seconds.

      • Optionalencoding?: ExportEncoding

        Encoder settings; without it, the settings before they existed.

        1.6.10

    • {
          format: "copy";
          destination: string;
          end: number;
          container?: "auto" | "mp4" | "mkv";
      }
      • format: "copy"

        A clip copied stream by stream, without re-encoding: lossless and about as fast as the disk. It starts on the video keyframe at or before the snapshot time; see Snapshot.export.

        1.6.10

      • destination: string

        Absolute path of the new file. The player gives it the extension of the container it writes (.mp4 or .mkv); the finished job's outcome.destination is the actual path.

      • end: number

        Clip end, source seconds.

      • Optionalcontainer?: "auto" | "mp4" | "mkv"

        auto (default): MP4 when the codecs fit it, otherwise MKV. mp4 fails with unsupported when they do not; mkv always writes MKV.

    1.0.0