Adds transcoding configurations. You can create a transcoding template group or add transcoding templates to a specified template group.
Operation description
Transcoding template groups that are locked by the ApsaraVideo VOD backend do not support custom operations. You can call the GetTranscodeTemplateGroup operation to query the template configuration and check whether the template group is locked based on the Locked response parameter. You can call the UpdateTranscodeTemplateGroup operation to unlock the template before you modify it.
Because transcoding involves storage addresses of files, you cannot add a transcoding template group if no storage address is available. You can activate a VOD system bucket in the ApsaraVideo VOD console > Configuration Management > Media Asset Management Configuration > Storage Management to obtain an available storage address.
You cannot add transcoding template configurations to a No Transcoding template group.
You must specify either TranscodeTemplateGroupId or Name.
You can create a maximum of 20 transcoding template groups.
You can add a maximum of 20 transcoding template configurations to a transcoding template group.
To generate adaptive bitrate streaming addresses through transcoding, you can add a maximum of 10 video packaging templates to a transcoding template group. If more than 10 templates are added, only individual stream addresses are generated instead of adaptive bitrate streaming addresses.
QPS limit
The maximum number of queries per second (QPS) per user for this operation is 5. If the number of calls per second exceeds the limit, throttling is triggered. This may affect your business. Manage your calls appropriately. 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 transcoding template group.
Note
You must specify either TranscodeTemplateGroupId or Name. |
transcodetemplate |
| TranscodeTemplateList |
string |
No |
The transcoding template configurations in the JSON format. For more information about the parameter structure, see TranscodeTemplate. Note
|
[{"Video":{"Bitrate":"400","Codec":"H.264","Fps":"30","Height":360,"Width":640},"Definition":"SD","Container":{"Format":"mp4"},"TemplateName":"testName","MuxConfig":{},"Audio":{"Codec":"AAC","Bitrate":"64","Samplerate":"44100"}}] |
| TranscodeTemplateGroupId |
string |
No |
The ID of the transcoding template group. If you specify the ID of a transcoding template group, new transcoding templates are added to the specified template group. Note
You must specify either TranscodeTemplateGroupId or Name. |
4c71a339fe52b4fa6f4527**** |
| AppId |
string |
No |
The application ID. Default value: app-1000000. For more information, see Multi-application. |
app-**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| TranscodeTemplateGroupId |
string |
The ID of the transcoding template group. |
34e908aa4024af7821c31f93a2a**** |
| RequestId |
string |
The request ID. |
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.