> ## Documentation Index
> Fetch the complete documentation index at: https://rendermate.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate from other services

> Move videos from a JSON render API or your own FFmpeg pipeline to Rendermate: media, timelines as documents, rendering, delivery and the switch-over.

Most video pipelines describe a video as a timeline: tracks of clips, text and audio, each with a
start and a length, rendered to an MP4. A Rendermate [document](https://rendermate.com/docs/documents.md) describes the same
thing as JSX nodes, versioned like a git repository and rendered on Rendermate's GPUs. This guide
moves such a pipeline over, whether it calls a JSON render API or runs FFmpeg itself.

***

## (1) How do I move my media to Rendermate?

Put every file your videos use in your workspace. The [CLI](https://rendermate.com/docs/cli.md) keeps a folder in step with one in
your workspace, uploading only new and changed files:

```bash theme={null}
rendermate login
rendermate sync ./media
```

For files your current pipeline reads from URLs, import each one with `import_asset`
(`POST /v1/imports`). A document refers to every file as `asset://<name>`.

***

## (2) How do I turn a timeline into a document?

### (A) Let your coding agent migrate it

Connect your agent to `https://api.rendermate.com/mcp` ([Claude Code](https://rendermate.com/docs/mcp/claude-code.md),
[Cursor](https://rendermate.com/docs/mcp/cursor.md)) and give it one of your timeline JSON files or FFmpeg commands. It writes
the document with `create_document` and `edit_document` and checks each moment with `get_frame`.

### (B) Write the documents with the API

Create a document with `POST /v1/documents`, read its `jsx` with `GET /v1/documents/{id}`, and
commit your nodes with `POST /v1/documents/{id}/versions`.
[How do I edit a document?](https://rendermate.com/docs/documents.md#how-do-i-edit-a-document) shows the request.

### How does a timeline map onto a document?

| Timeline or FFmpeg | | Rendermate |
| - | - | - |
| Output resolution and frame rate | → | `canvas.width`, `canvas.height`, `canvas.frameRate` |
| Output length | → | `canvas.duration`, in seconds |
| A clip's start and length | → | A node's `common.start` and `common.duration`, in seconds |
| Track order, or overlay order | → | `common.order` keys: `"a0"` paints under `"a1"` |
| A video clip, trimmed (`-ss`, `trim`) | → | `<media>` with `sourceIn` and `duration` |
| An image | → | `<media>` with an asset from `assets.images` |
| A text overlay (`drawtext`) | → | `<text>` with a font from `assets.fonts` |
| A background colour | → | `<fill>` with a solid `paint` |
| Music or a voice-over, with a volume | → | `<audio>` with `gain` |
| Scale, crop or position (`scale`, `crop`, `overlay`) | → | `destination`, `fit` and `common.transform` |
| A fade (`fade`) | → | `common.opacity` keyframes: `Doc.keys([0, 0], [0.5, 1])` |
| Merge fields or template variables | → | Values your code writes into the JSX |

[Documents](https://rendermate.com/docs/documents.md) has a complete example of each node.

***

## (3) How do I render and deliver?

| Before | | Rendermate |
| - | - | - |
| A render request, or an `ffmpeg` run | → | `create_export` (`POST /v1/exports`), then `get_export` |
| A render callback | → | [Webhooks](https://rendermate.com/docs/webhooks.md): `export.succeeded` and `export.failed` |
| Hosting the MP4 and a player | → | A link (`create_link`): a page, an embed and HLS playback |
| A thumbnail or still | → | `get_frame` (`POST /v1/documents/{id}/frames`) |

`export.succeeded`'s `data` has the export's `download_url`. A link follows `latest` or plays one
fixed version, and its pages can be on [your own domain](https://rendermate.com/docs/custom-domains.md).

***

## (4) How do I move AI voice-overs, subtitles and generated clips?

Call the model through `create_generation` (`POST /v1/generations`), at the provider's own price.
Its output is saved as an asset, ready to use in a document:

* **Subtitles:** a transcription model, such as `assemblyai/universal-2`, returns every word with its
  start and end time; write them as `text` nodes.
* **Generated clips:** a video model, such as `bytedance/seedance-2.5`, makes a clip from a prompt
  or a first frame.

[Models](https://rendermate.com/docs/models.md) lists every model, with its inputs and params.

***

## (5) How do I switch over?

### (A) All at once

For a few kinds of video, rebuild each one as a document, check it with `get_frame`, and switch your
code to `create_export` in one release.

### (B) One kind of video at a time

For a larger pipeline, keep your current renders running while you move one kind of video over:
rebuild it, compare a still from your current output with `get_frame` at the same time, switch
the code that renders it, then move on to the next.

***

## Next steps

* [Documents](https://rendermate.com/docs/documents.md): every node, keyframes, assets and errors.
* [Webhooks](https://rendermate.com/docs/webhooks.md): verify and handle `export.succeeded`.
* [Migrate from Remotion](https://rendermate.com/docs/migrate/remotion.md): if your videos are React code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.