Skip to main content

GetVideoStreamConfig / SetVideoStreamConfig

Get or set video stream parameters (resolution, encoding, bitrate, GOP).

Endpoint

FieldValue
MethodPOST or GET (Get) / POST (Set)
URL (Get)http://<host>[:port]/GetVideoStreamConfig[/channelId]
URL (Set)http://<host>[:port]/SetVideoStreamConfig[/channelId]
ProductsIPC, NVR
Channel IDOptional (default 1)

Stream Parameters

FieldTypeDescription
namestringStream profile name (max 32 chars)
resolutionstringVideo resolution (e.g., 1920x1080)
frameRateuint32Frame rate in fps
bitRateTypeenumVBR (variable) or CBR (constant)
maxBitRateuint32Maximum bitrate in kbps (64--12288)
encodeTypeenumh264, h265, or mjpeg
encodeLevelenumbaseLine, mainProfile, or highProfile
qualityenumlowest, lower, medium, higher, highest
GOPuint32Group of Pictures interval (30--200)

Response

<?xml version="1.0" encoding="UTF-8"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10">
<types>
<bitRateType>
<enum>VBR</enum>
<enum>CBR</enum>
</bitRateType>
<quality>
<enum>lowest</enum>
<enum>lower</enum>
<enum>medium</enum>
<enum>higher</enum>
<enum>highest</enum>
</quality>
<encodeType>
<enum>h264</enum>
<enum>h265</enum>
<enum>mjpeg</enum>
</encodeType>
</types>
<streams type="list" count="4">
<item id="1">
<name type="string" maxLen="32"><![CDATA[profile1]]></name>
<resolution>1920x1080</resolution>
<frameRate type="uint32">25</frameRate>
<bitRateType type="bitRateType">CBR</bitRateType>
<maxBitRate type="uint32" min="64" max="12288">4096</maxBitRate>
<encodeType>h264</encodeType>
<encodeLevel>baseLine</encodeLevel>
<quality type="quality">highest</quality>
<GOP type="uint32" min="30" max="200">100</GOP>
</item>
</streams>
</config>

Notes

  • id="1" is the main stream, id="2" is the sub stream.
  • maxBitRate is in kbps.
  • RTSP stream URL for NVR: rtsp://<host>[:port]?chID=<channelId>&streamType=<main|sub>
  • RTSP stream URL for IPC: rtsp://<host>[:port]/<streamName>