API URL
/api/codec/codec/Update.json
Request
Method:GET/POSTParameters:
{
"stream" : "main",
"new" : {
"ve": {
"u32Profile": 1,
"u32PicHeight": 720,
"u32PicWidth": 1280
},
"type": "H264",
"rc": {
"u32BitRate": 6000,
"mode": "CBR",
"u32MinQp": 10,
"u32MinIQp": 29,
"u32Gop": 60,
"fr32DstFrmRate": 60,
"u32MaxQp": 48,
"u32MaxBitRate": 6000,
},
"grey": false
}
}
Response
Example:
{result: "ok", data: true}
Request Data**字段说明:**
Field | Value | 说明 |
---|---|---|
stream | [String] | 表示编码码流,分主码流 main 和子码流 sub |
new | [Object] | 表示新设置的数据对象,支持局部更新, 即只传递其中某一部分key-value,对其进行更新 |