Use this operation to create a transcode template group or add transcode templates to an existing group.
Operation description
-
You cannot modify a transcode template group that is locked by the ApsaraVideo VOD service. To check if a group is locked, call the GetTranscodeTemplateGroup operation and check the
Lockedparameter in the response. To modify a locked group, you must first call the UpdateTranscodeTemplateGroup operation to unlock it. -
You cannot add a transcode template group without a valid storage location, as transcoding requires a storage address. To obtain a usable storage address, go to the ApsaraVideo VOD console, navigate to Configuration Management > Media Asset Management > Storage Management, and activate the VOD system bucket.
-
You cannot add transcode templates to a no transcoding template group.
-
You must specify either
TranscodeTemplateGroupIdorName. -
You can create a maximum of 20 transcode template groups.
-
You can add a maximum of 20 transcode templates to a single transcode template group.
-
To generate adaptive streaming URLs, you can add a maximum of 10 video packaging templates to a transcode template group. If you add more than 10 templates, the service generates URLs for individual streams but not an adaptive streaming URL.
QPS limit
The QPS limit for this operation is 5 per user. Calls that exceed this limit are rate-limited. For more information, see QPS limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddTranscodeTemplateGroup |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The name of the transcode template group.
Note
You must specify either |
transcodetemplate |
| TranscodeTemplateList |
string |
No |
The configurations of the transcode templates, specified as a JSON string. For more information about the parameter structure, see TranscodeTemplate. Note
|
[{"Video":{"Bitrate":"400","Codec":"H.264","Fps":"30","Height":""},"Definition":"SD","Container":{"Format":"mp4"},"TemplateName":"testName","MuxConfig":{},"Audio":{"Codec":"AAC","Bitrate":"64","Samplerate":"44100"}}] |
| TranscodeTemplateGroupId |
string |
No |
The ID of the transcode template group. If you specify this ID, you can add new transcode templates to the specified group. Note
You must specify either |
4c71a339fe52b4fa6f4527**** |
| AppId |
string |
No |
The ID of the application. The default value is |
app-**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned parameters. |
||
| TranscodeTemplateGroupId |
string |
The ID of the transcode template group. |
34e908aa4024af7821c31f93a2a**** |
| RequestId |
string |
The ID of the request. |
25818875-5F78-4AF6-D7393642CA58**** |
Examples
Success response
JSON format
{
"TranscodeTemplateGroupId": "34e908aa4024af7821c31f93a2a****",
"RequestId": "25818875-5F78-4AF6-D7393642CA58****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.