Updates the information about a live stream transcoding template.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ice:UpdateLiveTranscodeTemplate | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TemplateId | string | Yes | The template ID. To obtain the template ID, log on to the Intelligent Media Services (IMS) console, choose Real-time Media Processing > Template Management, and then click the Transcoding tab. Alternatively, find the ID from the response parameters of the CreateLiveTranscodeTemplate operation. | ****96e8864746a0b6f3**** |
Name | string | No | The template name. | |
TemplateConfig | object | No | The configuration of the template. | |
VideoParams | object | No | The video parameters. | |
Codec | string | No | The encoding type. Valid values:
| H.264 |
Height | string | No | The height of the output video. Valid values:
Note
The resolution of a video transcoded by using the H.265 Narrowband HD template cannot exceed 1,280 × 720 pixels.
| 720 |
Width | string | No | The width of the output video. Valid values:
Note
The resolution of a video transcoded by using the H.265 Narrowband HD template cannot exceed 1,280 × 720 pixels.
| 1280 |
Fps | string | No | The frame rate of the output video. Unit: frames per second (FPS). Valid values: 1 to 60. | 30 |
Bitrate | string | No | The bitrate of the output video. Unit: Kbit/s. Valid values: 1 to 6000. | 2500 |
Gop | string | No | The group of pictures (GOP) of the output video. Unit: frame. Valid values: 1 to 3000. | 1000 |
Profile | string | No | The video encoding profile. The profile determines how a video is encoded. In most cases, a greater value indicates better image quality and higher resource consumption. Valid values:
| 2 |
AudioParams | object | No | The audio parameters. | |
Codec | string | No | The audio codec. Valid values: AAC MP3 | AAC |
Bitrate | string | No | The bitrate of the output audio. Unit: Kbit/s. Valid values: 1 to 1000. | 100 |
Samplerate | string | No | The audio sampling rate. Valid values: 22050 to 96000. Note If you set AudioProfile to aac_ld, the audio sampling rate cannot exceed 44100. | 44100 |
Channels | string | No | The number of sound channels. Valid values: 1: mono 2: binaural | 2 |
Profile | string | No | The audio codec profile. Valid values when the Codec parameter is set to AAC:
| aac_low |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "******3B-0E1A-586A-AC29-742247******"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidParam.TemplateIdInuse | Parameters: templateId is inuse. |
403 | OperationDenied | Your account has not enabled the ICE service. |
For a list of error codes, visit the Service error codes.