GetMediaConvertTemplateGroup
Queries the configuration details of a specified MediaConvert (MC) transcoding template group, including the group information and the list of transcoding templates.
Operation description
Only custom transcoding template groups for the MC pipeline created by calling AddMediaConvertTemplateGroup can be queried. If you query a template group that does not exist or is not for the MC pipeline, the InvalidTranscodeTemplateGroup.NotFound error is returned.
The queries per second (QPS) limit per user for this API operation is 15. If the limit is exceeded, API calls are throttled, which may affect your services. Call this API operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetMediaConvertTemplateGroup |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TranscodeTemplateGroupId |
string |
Yes |
The ID of the transcoding template group. Only MC transcoding template groups created by calling AddMediaConvertTemplateGroup can be queried. |
4c71a339fe52b4fa6f4527**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25818875-5F78-4AF6-D7393642CA58**** |
| TranscodeTemplateGroup |
object |
The transcoding template group information. |
|
| TranscodeTemplateGroupId |
string |
The ID of the transcoding template group. |
4c71a339fe52b4fa6f4527**** |
| Name |
string |
The name of the transcoding template group. |
mcTemplateGroup |
| AppId |
string |
The application ID. Default value: app-1000000. For more information, see Multi-application. |
app-**** |
| TemplateType |
string |
The type of the template group, which is determined by the purpose of the first template in the group. Valid values: Normal: normal transcoding template group; VideoPackage: video packaging template group. |
Normal |
| CreationTime |
string |
The creation time. The time is displayed in UTC in the yyyy-MM-ddTHH:mm:ssZ format. |
2026-04-10T08:00:00Z |
| ModifyTime |
string |
The modification time. The time is displayed in UTC in the yyyy-MM-ddTHH:mm:ssZ format. |
2026-04-10T08:00:00Z |
| GroupConfig |
string |
The group-level configurations. |
{"AutoStreamName":"{RunId}_master"} |
| TranscodeTemplateList |
array<object> |
The list of transcoding template configurations. |
|
|
object |
|||
| TranscodeTemplateId |
string |
The ID of the transcoding template. |
4c71a339fe52b4fa6f4527**** |
| TemplateName |
string |
The name of the transcoding template. |
hd-720p |
| Definition |
string |
The definition identifier. |
HD |
| Type |
string |
The templatetype. Valid values: Normal: normal transcoding template. VideoPackage: video packaging template. SubtitlePackage: subtitle packaging template. |
Normal |
| Container |
string |
The container format configuration. The value is a JSON string that includes Format. Valid values of Format: mp4, m3u8, and mpd. |
{"Format":"m3u8"} |
| Video |
string |
The transcoding parameters for the video stream. The value is a JSON string that includes Codec, Bitrate, Width, Height, and Fps. The default value of Codec is H.264. |
{"Codec":"H.264","Bitrate":"2000","Width":"1280","Height":"720"} |
| Audio |
string |
The transcoding parameters for the audio stream. The value is a JSON string that includes Codec, Bitrate, Samplerate, and Channels. The default value of Codec is AAC. |
{"Codec":"AAC","Bitrate":"128","Samplerate":"44100"} |
| MuxConfig |
string |
The muxing parameters. The value is a JSON string. You can set the segment duration by using Segment.Duration when generating m3u8 files. |
{"Segment":{"Duration":"10"}} |
| TransConfig |
string |
The general transcoding configuration. The value is a JSON string that includes TransMode. |
{"TransMode":"ONE"} |
| WatermarkIds |
array |
The list of watermark template IDs. |
|
|
string |
The ID of the watermark template. |
7b7e1dc101819735bfb6a18f8e0f1234 |
|
| EncryptSetting |
string |
The encryption configuration. The value is a JSON string that includes EncryptType and EncryptConfig. |
{"EncryptType":"Private"} |
| PackageSetting |
string |
The packaging configuration. The value is a JSON string that includes PackageType. This parameter is used for video and subtitle packaging templates. |
{"PackageType":"HLSPackage"} |
| SubtitleList |
string |
The list of subtitle configurations. The value is a JSON string array. |
[{"Language":"eng"}] |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"TranscodeTemplateGroup": {
"TranscodeTemplateGroupId": "4c71a339fe52b4fa6f4527****",
"Name": "mcTemplateGroup",
"AppId": "app-****",
"TemplateType": "Normal",
"CreationTime": "2026-04-10T08:00:00Z",
"ModifyTime": "2026-04-10T08:00:00Z",
"GroupConfig": "{\"AutoStreamName\":\"{RunId}_master\"}",
"TranscodeTemplateList": [
{
"TranscodeTemplateId": "4c71a339fe52b4fa6f4527****",
"TemplateName": "hd-720p",
"Definition": "HD",
"Type": "Normal",
"Container": "{\"Format\":\"m3u8\"}",
"Video": "{\"Codec\":\"H.264\",\"Bitrate\":\"2000\",\"Width\":\"1280\",\"Height\":\"720\"}",
"Audio": "{\"Codec\":\"AAC\",\"Bitrate\":\"128\",\"Samplerate\":\"44100\"}",
"MuxConfig": "{\"Segment\":{\"Duration\":\"10\"}}",
"TransConfig": "{\"TransMode\":\"ONE\"}",
"WatermarkIds": [
"7b7e1dc101819735bfb6a18f8e0f1234"
],
"EncryptSetting": "{\"EncryptType\":\"Private\"}",
"PackageSetting": "{\"PackageType\":\"HLSPackage\"}",
"SubtitleList": "[{\"Language\":\"eng\"}]"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.