Description
Add custom transcode configuration information.
Request parameter
Parameters | Type | Required | Example values | Description |
---|---|---|---|---|
Action | String | Yes | AddCustomLiveStreamTranscode | The name of this interface. Value: AddCustomLiveStreamTranscode |
App | String | Yes | AppName | Name of the app, which the live stream belongs to. |
Domain | String | Yes | live.aliyunlive.com | Your CDN domain name. |
FPS | Integer | Yes | 30 | Transcode video frame per second. Unit: fps. |
Height | Integer | Yes | 720 | Transcode video width.
|
Template | String | Yes | LDtest | Transcode template custom name. |
TemplateType | String | Yes | h264 | Custom trascode template type. Currently,
|
VideoBitrate | Integer | Yes | 720 | Transcode video bit rate, unit: kbps. |
Width | Integer | Yes | 576 | Transcode video width.
|
Version | String | No | 1.0 | Version. |
Return parameter
Parameters | Type | Example values | Description |
---|---|---|---|
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 | The ID of the job request. |
Example
Return example
https://live.aliyuncs.com?Action=AddCustomLiveStreamTranscode&Domain=test101.cdnpe.com&App=AppName&Template=LDtest&TemplateType=h264&Height=1280&Width=720&FPS=25&VideoBitrate=2400&<public request parameter>
Normal return example
JSON
format
{
"RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Exception return example
JSON
format
{
"Code":"InternalError",
"HostId":"live.aliyuncs.com",
"Message":"The request processing has failed due to some unknown error.",
"RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Error code
For more information about error code of this product, see Error code.