All Products
Search
Document Center

Intelligent Media Services:GetLiveTranscodeTemplate

Last Updated:Dec 16, 2024

Queries the information a live stream transcoding template.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:GetLiveTranscodeTemplate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
TemplateIdstringYes

The template ID.

****a046-263c-3560-978a-fb287666****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

******3B-0E1A-586A-AC29-742247******
TemplateContentobject

The content of the template.

Namestring

The name of the template.

my-template
TemplateIdstring

The template ID.

bcfa57950bc649b2abfb476ecd36ea4f
Typestring

The type of the template.

normal
Categorystring

The category of the template. Valid values:

  • system
  • customized
customized
CreateTimestring

The time when the template was created.

2022-07-25T06:15:14Z
TemplateConfigobject

The configuration of the template.

VideoParamsobject

The video parameters.

Codecstring

The encoding type.

H.264
Heightstring

The height of the output video.

720
Widthstring

The width of the output video.

1280
Fpsstring

The frame rate of the output video.

30
Bitratestring

The bitrate of the output video.

2500
Gopstring

The group of pictures (GOP) of the output video.

1000
Profilestring

The encoding profile.

2
AudioParamsobject

The audio parameters.

Codecstring

The audio codec.

AAC
Bitratestring

The bitrate of the output audio.

1000
Sampleratestring

The audio sampling rate.

44100
Channelsstring

The number of sound channels.

2
Profilestring

The audio codec profile.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "******3B-0E1A-586A-AC29-742247******",
  "TemplateContent": {
    "Name": "my-template",
    "TemplateId": "bcfa57950bc649b2abfb476ecd36ea4f",
    "Type": "normal",
    "Category": "customized",
    "CreateTime": "2022-07-25T06:15:14Z",
    "TemplateConfig": {
      "VideoParams": {
        "Codec": "H.264",
        "Height": "720",
        "Width": "1280",
        "Fps": "30",
        "Bitrate": "2500",
        "Gop": "1000",
        "Profile": "2"
      },
      "AudioParams": {
        "Codec": "AAC",
        "Bitrate": "1000",
        "Samplerate": "44100",
        "Channels": "2",
        "Profile": "1"
      }
    }
  }
}

Error codes

HTTP status codeError codeError message
400InvalidParam%s

For a list of error codes, visit the Service error codes.