This method has been deprecated. Please see the Static Rendition API.
Allows you to add or remove mp4 support for assets that were created without it. The values supported are capped-1080p
, audio-only
, audio-only,capped-1080p
, standard
(deprecated), and none
. none
means that an asset does not have mp4 support, so submitting a request with mp4_support
set to none
will delete the mp4 assets from the asset in question.
curl https://api.mux.com/video/v1/assets/${ASSET_ID}/mp4-support \
-X PUT \
-d '{ "mp4_support": "standard" }' \
-H "Content-Type: application/json" \
-u ${MUX_TOKEN_ID}:${MUX_TOKEN_SECRET}
Specify what level of support for mp4 playback.
capped-1080p
option produces a single MP4 file, called capped-1080p.mp4
, with the video resolution capped at 1080p. This option produces an audio.m4a
file for an audio-only asset.audio-only
option produces a single M4A file, called audio.m4a
for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset.audio-only,capped-1080p
option produces both the audio.m4a
and capped-1080p.mp4
files. Only the capped-1080p.mp4
file is produced for a video-only asset, while only the audio.m4a
file is produced for an audio-only asset.The standard
(deprecated) option produces up to three MP4 files with different levels of resolution (high.mp4
, medium.mp4
, low.mp4
, or audio.m4a
for an audio-only asset).
none
will delete the MP4s from the asset in question.
The asset ID.
{
"mp4_support": "capped-1080p"
}
{
"data": {
"tracks": [
{
"type": "video",
"max_width": 1920,
"max_height": 1080,
"max_frame_rate": 29.97,
"id": "RiyQPM31a1SPtfI802bEP2zD02F5FQVNL801FRHeE5t01G4",
"duration": 23.8238
},
{
"type": "audio",
"max_channels": 2,
"id": "LvINTciHVoC017knMCH01y9pSi5OrDLCRaBPNDAoNJcmg",
"duration": 23.823792
}
],
"status": "ready",
"static_renditions": {
"status": "preparing"
},
"playback_ids": [
{
"policy": "public",
"id": "Lj02VZDorh9hCV00flNqPli8fmwf6KEppug01w8zDEYVlQ"
}
],
"mp4_support": "capped-1080p",
"max_stored_resolution": "HD",
"resolution_tier": "1080p",
"max_stored_frame_rate": 29.97,
"master_access": "none",
"id": "lJ4bGGsp7ZlPf02nMg015W02iHQLN9XnuuLRBsPS00xqd68",
"encoding_tier": "smart",
"video_quality": "plus",
"duration": 23.857167,
"created_at": "1609868768",
"aspect_ratio": "16:9"
}
}