Audio Configure
Function Code Command Setting
Enable http://192.168.5.126/ajaxcom?
szCmd={"SetEnv":{"Audio":
{"bEnable":1}}}
bEnable 0: off
1: on
Encode
Type
http://192.168.5.126/ajaxcom?
szCmd={"SetEnv":{"Audio":
{"nAEncType":7}}}
nAEncType 6: Mp3AAC
7: G.711A
2:
Sample
Rate
http://192.168.5.126/ajaxcom?
szCmd={"SetEnv":{"Audio":
{"nSampleRate":32000}}}
nSampleRate (Only
supporting these sample
rates and gy11a can only
be 8000.)
16000
32000
44100
48000
Sample Bits http://192.168.5.126/ajaxcom?
szCmd={"SetEnv":{"Audio":
{"nSampleBits":16}}}
nSampleBits 16
Bit Rate http://192.168.5.126/ajaxcom?
szCmd={"SetEnv":{"Audio":
{"nBitRate":96}}}
nBitRate 32
48
64
96
128
Channel http://192.168.5.126/ajaxcom?
szCmd={"SetEnv":{"Audio":
{"nChannel":2}}}
nChannel 1: Mono 2: Stereo
Input
Volume
http://192.168.5.126/ajaxcom?
szCmd={"SetEnv":{"Audio":
{"nInpVolume":5}}}
nInpVolume (range 1 to
10)
Exp:[1, 10]
Video
Video encoder
Video Encode
Get video encode parameters
Code http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"VideoEncode":{"nChannel":-1}}}
Set video encode parameters
Code http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stSlave":{"byIFrameMinQP":20,"byImageQuality":1,
"szStreamName":"live/av1","dwVideoCodecMask":160,"emBitRateCtrl":0, "byImageSizeList":
[26,7,9,27,4,5],"dwMaxBitRate":40960,"nFrameRate":25,"nMaxFrameRate":30,
"emVideoCodec":5,"nIFrameInterval":75,"emImageSize":27,"nBitRate":512,"byProfile":2},
"stMaster":{"byIFrameMinQP":20,"byImageQuality":0,"szStreamName":"live/av0",
"dwVideoCodecMask":160,"emBitRateCtrl":0,"byImageSizeList":[5,4,9],"dwMaxBitRate":40960,
"nFrameRate":25,"nMaxFrameRate":60,"emVideoCodec":5,"nIFrameInterval":75,"emImageSize":5,
"nBitRate":4096,"byProfile":2},"nChannel":0}]}}
Video encode settings
Video Encode Settings
Function Code Command Setting
Compressed Format http://192.168.5.126/ajaxcom?
szCmd={"SetEnv":{"VideoEncode":[{"stMaster":
{"emVideoCodec":5},"nChannel":0}]}}
emVideoCodec 5: H.264
7: H.265 (BP profile only)
Profile http://192.168.5.126/ajaxcom?
szCmd={"SetEnv":{"VideoEncode":[{"stMaster":
{"byProfile":0},"nChannel":0}]}}
byProfile 0: BP
1: MP
2: HP
http://192.168.5.126/ajaxcom?szCmd={"GetEnv":
{"VideoEncode":{"nChannel":-1}}} and receive its
returning value. Compared to webpage and this, you
can know the different value meaning different image
size.
byImageSizeList (Lists
all imagesize, different
products have different
image size)
79