All Products
Search
Document Center

GetTranscodeTemplateGroup

Last Updated: Jul 11, 2019

Description

You can call this operation to query the details of a transcoding template group based on the template group ID.

Note: This operation returns the configuration information about the specified transcoding template group and all the transcoding templates in the group.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set this parameter to GetTranscodeTemplateGroup.
TranscodeTemplateGroupId String Yes The ID of the transcoding template group.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
TranscodeTemplateGroup TranscodeTemplateGroup The information about the transcoding template group.

API examples

Sample request

https://vod.cn-shanghai.aliyuncs.com?Action=GetTranscodeTemplateGroup&TranscodeTemplateGroupId="a591f697c71676f73e6ae1502142d0"

Sample response

JSON format

{
  "RequestId": "6730AC93-7B12-4BA8-857F-49EE1FE8BC49",
  "TranscodeTemplateGroup": {
    "TranscodeTemplateGroupId": "a59b11f697c71676f73e6ae1502142d0",
    "Name": "test",
    "CreationTime": "2018-12-12T10:20:51Z",
    "IsDefault": "Default",
    "ModifyTime": "2018-12-12T13:02:32Z",
    "TranscodeTemplateList": [
      {
        "TranscodeTemplateId": "696d29a11erc057f7d3a3acc398d02f4",
        "TemplateName": "111111",
        "TransConfig": "{\"IsCheckAudioBitrate\":\"false\",\"IsCheckAudioBitrateFail\":\"false\",\"IsCheckVideoBitrateFail\":\"false\",\"IsCheckReso\":\"false\",\"IsCheckVideoBitrate\":\"false\",\"IsCheckResoFail\":\"false\"}",
        "WatermarkIds": [
          "e0841e47d1551907ab32b50780df4431",
          "dddd1e47d1551907ab32b50780df4431"
        ],
        "Audio": "{\"Codec\":\"AAC\",\"Remove\":\"false\",\"Bitrate\":\"44\",\"Samplerate\":\"32000\",\"Channels\":\"2\",\"Profile\":\"aac_low\"}",
        "Container": "{\"Format\":\"mp4\"}",
        "Video": "{\"Bufsize\":\"6000\",\"ScanMode\":\"progressive\",\"Preset\":\"medium\",\"Fps\":\"25\",\"LongShortMode\":\"true\",\"Gop\":\"250\",\"Remove\":\"false\",\"PixFmt\":\"yuv420p\",\"Bitrate\":\"400\",\"Profile\":\"high\",\"Codec\":\"H. 264\",\"Maxrate\":\"700\",\"Crf\":\"26\",\"Width\":\"640\"}",
        "Definition": "LD"
      }
    ]
  }
}

Error codes

This operation also returns common errors. For more information about errors common to all operations, see common errors.

Error code Error message HTTP status code Description
InvalidTranscodeTemplateGroup.NotFound The transcode template group does not exist 404 The error message returned because the specified transcoding template group does not exist.

SDK examples

We recommend that you use a server SDK to call this operation. For more information about the sample code used to call this operation in various languages, see the following topics: