AddManifestEditTemplate
Creates a ManifestEdit track orchestration template for the SubmitEditMediaManifestJob task to configure video, audio, and subtitle tracks based on fixed template settings.
Operation description
The Name parameter is required. It must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, underscores (_), number signs (#), hyphens (-), and spaces.
Templates is a list of track template configurations. You can specify up to three templates, and the Type values must be unique. If a track type (Video, Audio, or Subtitle) is not specified, a placeholder item in the disabled state is automatically added.
Video and Audio tracks are matched with preset templates based on Definition and Container.Format (default: m3u8). If no match is found, a custom transcoding template for the MediaConvert pipeline is created. Subtitle tracks always reference preset templates.
After the template is created, a template ID is returned. You can call the GetManifestEditTemplate operation to query the template or use the SubmitEditMediaManifestJob operation to consume the template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddManifestEditTemplate |
create |
*All Resource
|
None | None |
Request syntax
POST / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the track template group.
|
add-multilang-tracks |
| Templates |
string |
No |
The list of track template configurations. It is a JSON string array that contains up to three elements, and the Type values must be unique. Each element includes the following fields:
Note
Subtitle tracks always reference preset templates. You do not need to specify transcoding parameters for subtitle tracks. |
[{"Name":"video-hd","Type":"Video","Container":{"Format":"m3u8"},"Video":{"Codec":"H.264","Bitrate":"4000"},"Status":1}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Successful response. |
||
| TemplateId |
string |
The ID of the new template. |
9c6581d59240de5e258ffa4c71a3e01b |
| RequestId |
string |
The ID of the request. |
25818875-5F78-4AF6-D7393642CA58**** |
Examples
Success response
JSON format
{
"TemplateId": "9c6581d59240de5e258ffa4c71a3e01b",
"RequestId": "25818875-5F78-4AF6-D7393642CA58****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.