AddManifestEditTemplate

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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.

  • Required.

  • The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, underscores (_), number signs (#), hyphens (-), and spaces.

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:

  • Name: the name of the track template.

  • Type: the track type. Valid values: Video, Audio, and Subtitle.

  • Container: the container configuration, which includes Format (default value: m3u8).

  • Video/Audio: the transcoding parameters.

  • MuxConfig: the muxing parameters.

  • EncryptType/EncryptConfig: the encryption configuration.

  • Status: specifies whether to enable the track template. Valid values:
    • 1: enabled

    • 0: disabled

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.