
Video Encode Settings
Function Code Command Setting
Image Quality {"SetEnv":{"VideoEncode":[{"stMaster":
{"byImageQuality":5},"nChannel":0}]}}
byImageQuality 0: worst quality
1: between
2: between
3: between
4: between
5: Best quality
Bit Rate
(kb/s)
{"SetEnv":{"VideoEncode":[{"stMaster":
{"dwMaxBitRate":200},"nChannel":0}]}}
dwMaxBitRate [64, 40960]
Frame Rate
(F/S)
{"SetEnv":{"VideoEncode":[{"stMaster":
{"nFrameRate":25},"nChannel":0}]}}
nFrameRate [5, 60]
Frame
Interval
{"SetEnv":{"VideoEncode":[{"stMaster":
{"nIFrameInterval":70},"nChannel":0}]}}
nIFrameInterval [1, 300]
Frame Min QP {"SetEnv":{"VideoEncode":[{"stMaster":
{"byIFrameMinQP":70},"nChannel":0}]}}
byIFrameMinQP [10, 51]
Stream Name {"SetEnv":{"VideoEncode": [{"stMaster":
{"szStreamName":"live/av01"},"nChannel":0}]}}
szStreamName user-defined
Video Streaming
Stream Publish
Get stream publish parameters
Code {"GetEnv":{"StreamPublish":{"nChannel":-1}}}
Set stream publish parameters
Code {"SetEnv":{"StreamPublish":[{"stSlave":{"wHostPort":1935,"szHostUrl":"192.168.5.11",
"nProtolType":2,szStreamName":"live/
av1","bEnable":0,"nAbProtolMask":1,"szSrtKey":"","wSrtKeyLen":0,"szUserName":"","szPassword":""},”stMaster”:
{"wHostPort":1935, "szHostUrl":"192.168.5.11",”nProtolType":3,"szStreamName":"live/
av0","bEnable":0, "nAbProtolMask":1,"szSrtKey":"1111111111","wSrtKeyLen":0,"szUserName":"",
"szPassword":""},"nChannel":0}]}}
NOTE: When modifying one param, you should take along wHostPort. Otherwise, the host port will be zero.
Function Code Command Setting
Enable {"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":1935,"bEnable":1,"nProtolType":3},"nChannel":0}]}}
bEnable 0: off
1: on
Protol Type nProtolType 2: srt
3: rtmp
Host Address {"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":1935,"nProtolType":3",szHostUrl":
"192.168.5.12"},"nChannel":0}]}}
szHostUrl user-defined
Host Port {"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":19355,"nProtolType":3},"nChannel":0}]}}
wHostPort [0,65535]
Stream Name {"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":19355,"nProtolType":3,"szStreamName":"live/1213"},
"nChannel":0}]}}
szStreamName user-defined
User Name {"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":19355,"nProtolType":3,"szUserName":"123"},
"nChannel":0}]}}
szUserName user-defined
Password {"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":19355,"nProtolType":3,"szPassword":"123"},
"nChannel":0}]}}
szPassword user-defined
User Manual | www.avonic.com 12