---
title: "file.exportMovie: Export Movie — Motion kit command — Kition"
description: "Renders the active composition to H.264 MP4 through a scratch Render Queue item and returns it (base64 `data`, `mime`, `bytes`); only `format: mp4`. Writes no file and leaves the project's queue as it is: use <prefix>_export to save."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/file.exportMovie"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/file.exportMovie](https://developer.kition.ai/docs/kits/motion/commands/file.exportMovie)

# file.exportMovie

**Export Movie.** Renders the active composition to H.264 MP4 through a scratch Render Queue item and returns it (base64 `data`, `mime`, `bytes`); only `format: mp4`. Writes no file and leaves the project's queue as it is: use <prefix>_export to save.

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `format` | `any` | no | mp4 |

## Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `format`. motion_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bytes` | `integer` | no |  |
| `data` | `string` | no |  |
| `mime` | `string` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "bytes": {
      "type": "integer"
    },
    "data": {
      "type": "string"
    },
    "mime": {
      "type": "string"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "format": {
      "description": "mp4"
    }
  },
  "returns": "{data: base64, mime, bytes}",
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
