Mux Integration
Pro transfer options that copy encoded Mux videos to your own cloud storage or web server and serve them with the Media Cloud player.
The Mux integration can copy an encoded video out of Mux after encoding finishes. This lets you serve the HLS renditions from your own cloud storage or web server instead of from Mux.
These options require the Pro version of Media Cloud and working background processing.
Transfer options
Find these under Media Cloud → Settings → Video Encoding → Transfer Options.
| Setting | Default | Description |
|---|---|---|
| Transfer Encoded Videos | Off | After Mux finishes encoding, transfer the HLS renditions to cloud storage or the local server. |
| Local Only | Off | Store transferred videos on the web server instead of cloud storage. |
| Destination Path | /videos/hls/ | Where to store the transferred videos. Relative to the uploads directory for local storage, or to the bucket root for cloud storage. |
| Delete Transferred Videos From Mux | Off | Delete the asset from Mux after a successful transfer. |
If Transfer Encoded Videos is disabled, videos continue to be served from Mux.
Playback
Transferred videos are served by the Media Cloud video player, including the Gutenberg Video Player block. See Player Settings and the Video Player Shortcode.
Requirements
- The Pro version of Media Cloud.
- Background processing must be working. Transfers happen as a background task after Mux reports that encoding is complete.
- Cloud Storage must be enabled unless Local Only is selected.
- Enough disk or bucket space for the encoded HLS renditions.
WP-CLI
wp mediacloud:video transfer --dest=/videos/hls/ [--limit=<number>] [--page=<number>] [--offset=<number>] [--delete] [--local-only] [--skip-transferred] [--order-by=date|title|filename] [--order=asc|desc]
wp mediacloud:video relink [--limit=<number>] [--page=<number>] [--offset=<number>] [--order-by=date|title|filename] [--order=asc|desc]
wp mediacloud:video storyboard <asset_id>
| Command | Description |
|---|---|
transfer | Transfers encoded Mux videos to the destination. --dest is required. |
relink | Re-links videos that were transferred to local or cloud storage, for example after a URL change. |
storyboard | Generates a storyboard for a single attachment. |
Both transfer and relink are Pro-only. --page requires --limit and cannot be combined with --offset.
Warnings
- With Delete Transferred Videos From Mux enabled, Mux no longer holds the encoded asset after transfer. Keep your own backup before enabling it on an existing library.
- Transferred videos are served from your storage or server, so Mux’s player analytics are not used for playback.
Need a hand with this guide?
Send support the exact step you’re stuck on and we’ll help you finish the setup.