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:video.asset.static_rendition.ready arrives, import the file with import_asset
(POST /v1/imports), named after the asset:
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 tohttps://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 withcreate_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:
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 fromget_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:- Send new uploads to an upload token, and create a document and a link for each.
- Move older assets in batches, newest first, and store each asset’s link ID next to its Mux playback ID.
- Switch each page to the link’s URLs once its video has moved.
- 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.createdandexport.succeeded.