UpdateLiveTranscodeTemplate
Updates a real-time transcoding template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:UpdateLiveTranscodeTemplate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The template ID. You can obtain the ID from the Intelligent Media Services console by choosing Templates > Real-time Transcoding Templates, or from the response parameters of the Create a real-time transcoding template API operation. |
****96e8864746a0b6f3**** |
| Name |
string |
No |
The template name. |
The template 1130-2 |
| TemplateConfig |
object |
No |
The template configuration. |
|
| VideoParams |
object |
No |
The video parameters. |
|
| Codec |
string |
No |
The encoding type. Valid values:
Valid values:
|
H.264 |
| Height |
string |
No |
The height of the transcoded video. Valid values:
Note
The resolution of an H.265 Narrowband HD template must not exceed 1280×720. |
720 |
| Width |
string |
No |
The width of the transcoded video. Valid values:
Note
The resolution of an H.265 Narrowband HD template must not exceed 1280×720. |
1280 |
| Fps |
string |
No |
The frame rate of the transcoded video. Unit: FPS. Valid values: 1 to 60. |
30 |
| Bitrate |
string |
No |
The bitrate of the transcoded video. Unit: kbps. Valid values: 1 to 6000. |
2500 |
| Gop |
string |
No |
The group of pictures (GOP) of the video. Unit: frames. Valid values: 1 to 3000. |
1000 |
| Profile |
string |
No |
The encoding profile. A specific set of encoding features supported by the video. Generally, a larger value indicates better video quality but higher resource consumption for encoding and decoding. Valid values:
Valid values:
|
2 |
| AudioParams |
object |
No |
The audio parameters. |
|
| Codec |
string |
No |
The audio encoding format. Valid values:
Valid values:
|
AAC |
| Bitrate |
string |
No |
The bitrate of the transcoded audio. Unit: kbps. Valid values: 1 to 1000. |
100 |
| Samplerate |
string |
No |
The audio sampling rate. Valid values: 22050 to 96000. Note: If AudioProfile is set to aac_ld, the sampling rate must not exceed 44100. |
44100 |
| Channels |
string |
No |
The number of audio channels. Valid values:
Valid values:
|
2 |
| Profile |
string |
No |
The audio encoding profile. Valid values when Codec is set to AAC:
|
aac_low |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
******3B-0E1A-586A-AC29-742247****** |
Examples
Success response
JSON format
{
"RequestId": "******3B-0E1A-586A-AC29-742247******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam.TemplateIdInuse | Parameters: templateId is inuse. | |
| 403 | OperationDenied | Your account has not enabled the ICE service. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.