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

    Interface ExportEncoding

    The encoder settings of a re-encoded clip (format: "mp4"): a closed set of values, never encoder arguments. Every field is optional; the defaults are the settings clips had before: CRF 18, the fastest speed, the source's size and frame rate, AAC 192 kb/s, one thread. A value outside its set rejects the export with invalid. videoBitrate: "source" replaces the CRF with the source's bitrate, for a "Same as source" preset.

    A 720p, 30 fps clip at a lower quality, encoded with the cores the player can spare.

    // Each field is a ceiling or a choice from a closed set.
    const job = await snapshot.export({
    format: "mp4",
    destination: "/tmp/small.mp4",
    end: snapshot.time + 30,
    encoding: { crf: 26, maxHeight: 720, fps: 30, audioBitrate: 128, threads: "auto" },
    });

    1.6.10

    interface ExportEncoding {
        crf?: number;
        speed?: "faster" | "balanced" | "smaller";
        maxHeight?: 1080 | 720 | 480;
        fps?: 60 | 30;
        audioBitrate?: 128 | 256 | 192;
        threads?: "auto" | "single";
        videoBitrate?: "source";
    }
    Index
    crf?: number

    H.264 quality, an integer 14–30 (x264's CRF): lower is a better picture and a bigger file. Default 18.

    speed?: "faster" | "balanced" | "smaller"

    Encoding effort: faster (default), balanced or smaller (slower, a smaller file at the same quality); x264's veryfast, medium and slow.

    maxHeight?: 1080 | 720 | 480

    The tallest picture: a taller one is scaled down to this height, keeping its shape; a shorter one is left as it is. Default: the source's size.

    fps?: 60 | 30

    The highest frame rate: a faster source drops frames to it; a slower one is left as it is. Default: the source's rate.

    audioBitrate?: 128 | 256 | 192

    AAC audio bitrate in kb/s. Default 192.

    threads?: "auto" | "single"

    single (default) encodes on one thread, leaving the other cores to playback. auto lets the player use more: half the logical processors, at most 8, so playback and the interface keep their rate. Every export runs at below-normal priority (as HandBrake and OBS run their encoders), with either setting.

    videoBitrate?: "source"

    source: aim at the source video's average bitrate instead of a quality level (peaks up to 1.5 times it), so the file comes out about the size of that stretch of the source: a "Same as source" preset. Not together with crf (invalid). A source whose bitrate the player cannot tell ends the job failed with unsupported.