Skip to main content
A Mux asset is a video you uploaded, encoded and streamed from its playback IDs. In Rendermate, a video plays from a document through a link: the document holds the video as a media node, and the link gives it a page, an embed, HLS playback, thumbnails and storyboards. This guide moves a Mux library over in the order you’d do it: the files first, then playback, then uploads and events.

(1) How do I get my videos out of Mux?

Download each asset as an MP4 and import it into your workspace. Mux serves an MP4 once the asset has a static rendition, so add one to each asset you move:
When video.asset.static_rendition.ready arrives, import the file with import_asset (POST /v1/imports), named after the asset:
For a playback ID with the signed policy, add ?token= with a token signed for it. An import takes files up to 5 GB; call get_import until its status is succeeded. To move a whole library, page through GET /video/v1/assets and do this for each asset.

(2) How do I make each video playable?

Create a document that plays the file from start to end, then make a link to it.

(A) Let your coding agent move the library

Connect your agent to https://api.rendermate.com/mcp (Claude Code, Cursor) with your Mux credentials in its environment. It lists your Mux assets, imports each file, and calls create_document and create_link for it, following the steps below.

(B) Create the documents with the API

Create a document with create_document (POST /v1/documents), with the asset’s meta.title as its name, then commit its nodes with edit_document (POST /v1/documents/{id}/versions). How do I edit a document? shows the request. In the same edit, set the canvas’s width, height and duration to the asset’s video track size and its duration from GET /video/v1/assets/{ASSET_ID}, and add one media node that runs the whole video:
The video plays its own sound. Then call create_link (POST /v1/documents/{id}/links): the link works as soon as it’s made, and its segments render as they’re first watched.

How do Mux’s assets and playback IDs map?


(3) How do I replace playback URLs?

Read a link’s URLs from get_link and get_link_playback, and put them where your code built Mux URLs: Mux Player, <mux-video> and Video.js play any HLS playlist, so playlist_url works in them as it is; ask get_link_playback again for new URLs before expires_at. The embed_url plays the video with Rendermate’s player and needs no setup.

(4) How do I replace direct uploads?

Make an upload token where you made a Mux direct upload, and upload the file with it: An upload token only records assets whose names start with its prefix, up to its max_size, so a browser uploads without ever holding your API key.

(5) How do I move captions, downloads and AI features?

Call a model through create_generation (POST /v1/generations), at the provider’s own price. A transcript has every word with its start and end time; write each line as a text node starting at its first word, and commit it as a new version of the video’s document. A link that follows latest plays the captioned version once you commit it. Models lists every model.

(6) How do I switch over?

(A) All at once

For a small library, move every asset, check a few links on the devices you support, then switch your code from Mux URLs to link URLs in one release.

(B) Newest videos first

For a large library, keep playing older videos from Mux while new ones go to Rendermate:
  1. Send new uploads to an upload token, and create a document and a link for each.
  2. Move older assets in batches, newest first, and store each asset’s link ID next to its Mux playback ID.
  3. Switch each page to the link’s URLs once its video has moved.
  4. Delete the assets from Mux when nothing plays them anymore.

Next steps

  • Documents: edit a video, add text and captions, and keep every version.
  • Custom domains: serve link pages on your own domain.
  • Webhooks: verify and handle asset.created and export.succeeded.