curl --location --request POST 'https://api2.hik-cloud.com/api/v1/open/streaming/channels/setConfig' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSerial": "E21315860",
"id": "101",
"channelName": "E21315860c",
"enabled": true,
"video": {
"enabled": true,
"videoInputChannelID": "1",
"videoCodecType": "H.264",
"videoResolutionWidth": 1280,
"videoResolutionHeight": 720,
"videoQualityControlType": "CBR",
"constantBitRate": 2048,
"fixedQuality": 45,
"vbrUpperCap": 1280,
"vbrLowerCap": 720,
"maxFrameRate": 2500,
"keyFrameInterval": 1000,
"smartCodec": {
"enabled": true
}
},
"audio": {
"enabled": true,
"audioInputChannelID": "1",
"audioCompressionType": "G.711ulaw"
}
}'{
"code": 200,
"message": "操作成功"
}