查询模板信息
更新时间:2022-09-26
接口描述
查询转码流模板信息
请求结构
GET /v1/transcodeTemplate/{templateId} HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
templateId | Integer | 是 | URL参数 | 模板ID |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
teamplateName | String | 是 | 模板名称 |
description | String | 否 | 模板描述 |
encodeType | String | 是 | 编码类型("H264") |
width | Integer | 否 | 分辨率宽 |
height | Integer | 否 | 分辨率高 |
bitRate | Integer | 否 | 码率:默认值:0(原始码率) |
fps | Integer | 否 | 帧率:默认值:0(原始帧率),(1-120) |
keyframeMaxInterval | Integer | 否 | 关键帧最大间隔,默认值:0(原始关键帧),(fps的倍数) |
请求示例
GET /v1/transcodeTemplate/123 HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
响应示例
HTTP/1.1 200 OK
Transfer-Encoding: chunked
x-bce-request-id: 012b9747-f13a-4a2c-a488-02b221844dca
Cache-Control: no-cache
Server: BWS
Date: Tue, 24 Mar 202 013:34:07 GMT
Content-Type: application/json;charset=UTF-8
{
"templateName": "test",
"desciption": "测试转码流",
"encodeType": "H264",
"height": "640",
"width": "480",
"bitRate": 800,
"fps": 80,
"keyframeMaxInterval": "160"
}