获取音视频单通道编码能力
GET
https://api2.hik-cloud.com/api/v1/open/streaming/channels/capabilities
单通道编码能力。通道音视频配置依据能力集,填写相应的参数,避免参数无效。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api2.hik-cloud.com/api/v1/open/streaming/channels/capabilities' \
--header 'Authorization: Bearer '
响应示例响应示例
{
"code": 200,
"message": "操作成功",
"data": {
"id": "101",
"channelName": {
"min": "0",
"max": "32"
},
"enabled": {
"opt": "true",
"def": null
},
"video": {
"enabled": {
"opt": "true"
},
"videoInputChannelID": {
"opt": "1"
},
"videoCodecType": {
"opt": "H.264"
},
"videoResolutionWidth": {
"opt": "1920,1280"
},
"videoResolutionHeight": {
"opt": "1080,720"
},
"videoQualityControlType": {
"opt": "CBR,VBR"
},
"constantBitRate": {
"min": "1024",
"max": "4096"
},
"fixedQuality": {
"opt": "45"
},
"vbrUpperCap": {
"min": "1024",
"max": "4096"
},
"vbrLowerCap": {
"opt": "32"
},
"maxFrameRate": {
"opt": "2500"
},
"keyFrameInterval": {
"min": "1000",
"max": "2000"
},
"smartCodec": {
"enabled": true
}
},
"audio": {
"enabled": {
"opt": "true,false",
"def": null
},
"audioInputChannelID": {
"opt": "1"
},
"audioCompressionType": {
"opt": "G.711ulaw"
}
}
}
}
请求参数
Query 参数
deviceSerial
string
设备序列号
示例值:
X34289430
id
string
可选
channel*100+streamType(1-mianstream,2-substream)
;例如101表示通道1的主码流,302表示通道3的子码流示例值:
101
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
返回响应
修改于 2022-05-19 10:18:43