Motion kit command

renderQueue.setOutputModule

Output Module Settings

Changes a Render Queue item's output module: `format` (h264, hevc, av1, prores, webm, image sequences, gif, audio), channels and alpha, quality or bitrate, codec profile, crop, resize, audio settings and post-render action, or a `template`.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of renderQueue.setOutputModule
NameTypeRequiredDescription
audio"auto" | "on" | "off"no
audioBitratenumbernoOpus kbps
audioChannels"mono" | "stereo"no
audioFormat16 | 24 | 32no
bitratenumbernokbps
channels"rgb" | "rgba" | "alpha"no
color"straight" | "premultiplied"no
cropbooleannobool|{useRoi?
cropBottomanyno
cropLeftanyno
cropRightanyno
cropTopanyno
format"h264" | "hevc" | "av1" | "prores" | "webm" | "png" | "jpeg" | "tiff" | "exr" | "gif" | "wav" | "aiff"no
includeProjectLinkbooleanno
indexintegernoa position counted from 0 (the first is 0); one of several alternative parameters
itemintegernoone of several alternative parameters
keyframeIntervalintegernoframes; 0 = auto
levelnumbernoauto|4.1
loopbooleanno
moduleintegerno1 = first
opusApplication"audio" | "voice"no
outputstringno
postRenderAction"none" | "import" | "importAndReplace" | "setProxy"no
profile"main" | "main10"noHEVC/AV1
proresProfilestringnoproxy|lt|standard|hq|4444|4444xq
qualityintegerno1-100
rateControl"bitrate" | "quality"no
resizeobjectnobool|{preset?, width?, height?, lockAspect?, quality?: low|high}
resizeHeightanyno
resizeWidthanyno
sampleRateintegerno
templatestringno
webmBitratebooleanno
webmCodec"vp9" | "av1"no

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "renderQueue.setOutputModule" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: audio, audioBitrate, audioChannels, audioFormat, bitrate, channels, color, crop, cropBottom, cropLeft, cropRight, cropTop, format, includeProjectLink, index, item, keyframeInterval, level, loop, module, opusApplication, output, postRenderAction, profile, proresProfile, quality, rateControl, resize, resizeHeight, resizeWidth, sampleRate, template, webmBitrate, webmCodec. motion_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "audio": {
      "enum": [
        "auto",
        "on",
        "off"
      ],
      "type": "string"
    },
    "audioBitrate": {
      "description": "Opus kbps",
      "type": "number"
    },
    "audioChannels": {
      "enum": [
        "mono",
        "stereo"
      ],
      "type": "string"
    },
    "audioFormat": {
      "enum": [
        16,
        24,
        32
      ],
      "type": "integer"
    },
    "bitrate": {
      "description": "kbps",
      "type": "number"
    },
    "channels": {
      "enum": [
        "rgb",
        "rgba",
        "alpha"
      ],
      "type": "string"
    },
    "color": {
      "enum": [
        "straight",
        "premultiplied"
      ],
      "type": "string"
    },
    "crop": {
      "description": "bool|{useRoi?",
      "type": "boolean"
    },
    "cropBottom": {},
    "cropLeft": {},
    "cropRight": {},
    "cropTop": {},
    "format": {
      "enum": [
        "h264",
        "hevc",
        "av1",
        "prores",
        "webm",
        "png",
        "jpeg",
        "tiff",
        "exr",
        "gif",
        "wav",
        "aiff"
      ],
      "type": "string"
    },
    "includeProjectLink": {
      "type": "boolean"
    },
    "index": {
      "description": "a position counted from 0 (the first is 0); one of several alternative parameters",
      "type": "integer"
    },
    "item": {
      "description": "one of several alternative parameters",
      "type": "integer"
    },
    "keyframeInterval": {
      "description": "frames; 0 = auto",
      "type": "integer"
    },
    "level": {
      "description": "auto|4.1",
      "type": "number"
    },
    "loop": {
      "type": "boolean"
    },
    "module": {
      "description": "1 = first",
      "type": "integer"
    },
    "opusApplication": {
      "enum": [
        "audio",
        "voice"
      ],
      "type": "string"
    },
    "output": {
      "type": "string"
    },
    "postRenderAction": {
      "enum": [
        "none",
        "import",
        "importAndReplace",
        "setProxy"
      ],
      "type": "string"
    },
    "profile": {
      "description": "HEVC/AV1",
      "enum": [
        "main",
        "main10"
      ],
      "type": "string"
    },
    "proresProfile": {
      "description": "proxy|lt|standard|hq|4444|4444xq",
      "type": "string"
    },
    "quality": {
      "description": "1-100",
      "type": "integer"
    },
    "rateControl": {
      "enum": [
        "bitrate",
        "quality"
      ],
      "type": "string"
    },
    "resize": {
      "additionalProperties": true,
      "description": "bool|{preset?, width?, height?, lockAspect?, quality?: low|high}",
      "type": "object"
    },
    "resizeHeight": {},
    "resizeWidth": {},
    "sampleRate": {
      "type": "integer"
    },
    "template": {
      "type": "string"
    },
    "webmBitrate": {
      "type": "boolean"
    },
    "webmCodec": {
      "enum": [
        "vp9",
        "av1"
      ],
      "type": "string"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.