最近更新时间:2024-08-15 10:59:55
提供预设媒体转码参数模板的功能
POST
参数名 | 类型 | 是否必须 | 描述 |
---|---|---|---|
Preset | string | 是 | 模板名 |
PresetType | string | 是 | 模板类型,详见模板说明对类型的描述 |
Param | JSON | 是 | 模板定义,详见模板说明的参数定义 |
Description | string | 否 | 描述字段 |
参数名 | 类型 | 是否必须 | 描述 |
---|---|---|---|
ErrNum | int | 是 | 错误码。0:成功;非0:失败 |
ErrMsg | string | 是 | 错误信息 |
POST /?Action=Preset
&Version=2017-01-01
&X-Amz-Algorithm=AWS4-HMAC-SHA256
&X-Amz-Date=20170519T043000Z
&X-Amz-Credential=xxxxx
&X-Amz-SignedHeaders=accept%3Bhost
&X-Amz-Signature=xxxxx HTTP/1.1
Host: kvs.cn-beijing-6.api.ksyun.com
Accept: application/json
Content-Type: application/json;charset=utf-8
Content-Length: %LEN
{
"Preset": "myAvtransPrest",
"Description": "test preset",
"PresetType": "avtrans",
"Param":{
"f": "mp4",
"intelligentSwitch":0,
"discontinue":1,
"AUDIO": {
"ab": "164k",
"ar": "44100",
"acodec": "aac",
"an": 0,
"silenceFrame":1
},
"VIDEO": {
"vr": "25",
"vb": "400k",
"vcodec": "h264",
"width": 1280,
"height": 720,
"as": 0,
"shortSide":360,
"rotate": "auto",
"vn": 0,
"orientationAdapt": 1
}
}
}
HTTP/1.1 200 OK
Server: ksyun-open-platform
Date: Fri, 12 May 2017 08:01:06 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
{
"ErrNum":0,
"ErrMsg":"success"
}
纯净模式