Add Caption Track to Asset
A 4-step recipe with Mux. We can help you get access.
Recipe · 4 steps
Add Caption Track to Asset
with Mux · Media Asset Management
Works with AI assistants
Create a ready asset, add a text caption track, and wait for the track to be ready.
- Create a new asset from the source URL so a caption track can be attached once it is ready.
- Poll the asset until its status reaches ready so a track can be added.
- Attach a text caption track to the ready asset, pointing Mux at the external caption file to download.
- Re-read the asset until the newly added caption track reports a ready status in the asset's tracks list.
What you'll need to have ready
- inputUrl: A publicly accessible URL to the source video file Mux should ingest.
- captionUrl: URL of the SRT or WebVTT caption file Mux should download and attach.
- languageCode: BCP 47 language code for the caption track (e.g. en or en-US).
- trackName: Human readable name for the caption track.
For your developer
Arazzo workflow mux-com:asset-add-caption-track, 4 operations: createAsset → getAsset → create-asset-track → getAsset. Specs on APIs.io.