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

    Type Alias PartsExportOptions

    PartsExportOptions: { parts: ExportPart[]; destination: string } & (
        | { format: "copy"; container?: "auto"
        | "mp4"
        | "mkv" }
        | { format: "mp4"; encoding?: ExportEncoding }
    )

    Options of MediaCapture.export: the parts in order (1 to 100), where to write the file (never over an existing one) and the format, as for a clip of a snapshot (ExportOptions).

    The fields are a snapshot clip's: destination, format (copy or mp4), container and encoding mean the same there, so moving an export from a snapshot to parts changes only its input (parts instead of the snapshot and end).

    Type Declaration

    • parts: ExportPart[]

      The parts, in the order they are written.

    • destination: string

      Absolute path of the new file.

    • { format: "copy"; container?: "auto" | "mp4" | "mkv" }
      • format: "copy"

        Copy every part as it is (lossless, about as fast as the disk); each part starts on the keyframe at or before its start.

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

        auto (default): MP4 when the codecs fit it, otherwise MKV (the extension of destination follows). mp4 fails unsupported when they do not.

    • { format: "mp4"; encoding?: ExportEncoding }
      • format: "mp4"

        Re-encode every part to the first part's size and frame rate.

      • Optionalencoding?: ExportEncoding

        The encoder settings, as for a clip.

    1.7.8