API URL
/api/codec/codec/GetInfo.json
Request
Method:GET/POST
Parameters: [stream]
可选参数 stream:"main"/"sub" main表示主码流,sub表示子码流
Response
Example:
{
"result": "ok",
"data": {
"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
}
}
Data**字段说明:**
Field | Value | 说明 |
---|---|---|
type | [String] | H264/H265 编码方式 |
grey | [Boolean] | true/false 是否开启置灰 |
ve.u32Profile | [Integer] | 0/1/2 0:Baseline 1:Main Profile 2: High Profile |
ve.u32PicHeight | [Integer] | 表示编码图像高度 |
ve.u32PicWidth | [Integer] | 表示编码图像宽度 |
rc.mode | [String] | CBR/VBR表示码率控制方式 |
rc.u32GOP | [Integer] | 表示GOP大小 |
rc.fr32DstFrmRate | [String] | 表示编码帧率实际能达到的帧率不会比源帧率还高 |
rc.u32BitRate | [Integer] | 6000表示6000K编码码率,适用于CBR模式 |
rc.u32MaxBitRate | [Integer] | 20000表示最大码率,适用于VBR模式 |
rc.u32MinIQp | [Integer] | 29表示IQP值,必须处于 rc.u32MaxQp 与 rc.u32MinQp 之间 |
rc.u32MaxQp | [Integer] | 48 表示最大QP值 |
rc.u32MinQp | [Integer] | 10表示最小QP值 |