Home / Docs Center / Device API Reference / Hardware Encoding ParametersConfiguration
Hardware Encoding ParametersConfiguration
Project: Device Interface Document (New Version) | page_id: 1071
Brief Description:
- Modify video parameters
Request URL:
- /xsw/api/system/modHardwareConf
Request Method:
- POST
Request Example
http://192.168.0.15/xsw/api/system/modHardwareConf?token=xxx&t=xxx
** BODY Parameters:**
Body parameters do not participate in token calculation
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| channel | Yes | number | Channel number, starting from 0, 0 is the main stream |
| vencWidth | Yes | number | Resolution width |
| vencHeight | Yes | number | Resolution height |
| venc_bitrate | Yes | number | Bitrate (kbit) [32-32000] |
| venc_gop | Yes | number | Key frame interval (frames) [6-300] |
| venc_fps | Yes | number | Encoding frame rate [1-60] |
| venc_codec | Yes | number | Encoding type 0: H.264; 1: H.265 |
| venc_profile | Yes | number | H.264 level 0: Baseline Profile; 1: Main Profile; 2 High Profile |
| venc_rc_mode | Yes | number | Bitrate control. 0: constant bitrate (CBR); 1: variable bitrate (VBR) |
json example
{
"channel": 0,
"vencWidth": 1920,
"vencHeight": 1080,
"venc_bitrate": 1024,
"venc_gop": 25,
"venc_fps": 30,
"venc_codec": 0,
"venc_profile": 0,
"venc_rc_mode": 1,
}
Return Example
{"code":0,"msg":""}
Return Parameter Description
| Parameter Name | Type | Description |
|---|---|---|
| code | int | 0 means success, others mean failure |
| msg | string | Error message |
Notes
- Body parameters do not participate in token calculation
Didn't find what you need?Contact us,Talk to our engineers directly.