AV Function

getImageSetting
FunctionGet color attribute of video
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getImageSetting
ParamNone
Return
brightness0~100
contrast0~100
hue0~100
saturation0~100
sharpness0~100
denoiseLevelNot use
Example/cgi-bin/CGIProxy.fcgi?cmd=getImageSetting&usr=admin&pwd=

setBrightness
FunctionSet brightness of video
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setBrightness
Param
brightness0-100
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=setBrightness&brightness=50&usr=admin&pwd=

setContrast
FunctionSet contrast of video
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setContrast
Param
contrast0-100
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=setContrast&contrast=50&usr=admin&pwd=

setHue
FunctionSet hue of video
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setHue
Param
hue0-100
ReturnNone
Example /cgi-bin/CGIProxy.fcgi?cmd=setHue&hue=50&usr=admin&pwd=

setSaturation
FunctionSet saturation of video
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setSaturation
Param
saturation0-100
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=setSaturation&saturation=50&usr=admin&pwd=

setSharpness
FunctionSet sharpness of video
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setSharpness
Param
sharpness0-100
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=setSharpness&sharpness=50&usr=admin&pwd=

resetImageSetting
FunctionReset color parameters to default value
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=resetImageSetting
ParamNone
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=resetImageSetting&usr=admin&pwd=

getMirrorAndFlipSetting
FunctionGet mirror and flip attribute of video
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getMirrorAndFlipSetting
ParamNone
Return
isMirror
0Not mirred
1Mirred
isFlip
0Not filpped
1Flipped
Example/cgi-bin/CGIProxy.fcgi?cmd=getMirrorAndFlipSetting&usr=admin&pwd=

mirrorVideo
FunctionMirror video
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=mirrorVideo
Param
isMirror
0Not mirror
1Mirror
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=mirrorVideo&usr=admin&pwd=

flipVideo
FunctionFlip video
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=flipVideo
Param
isFlip
0Not flip
1Flip
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=flipVideo&usr=admin&pwd=

setPwrFreq
FunctionSet power freq of sensor
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setPwrFreq
Param
freq
060HZ
150HZ
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=setPwrFreq&freq=0&usr=admin&pwd=

getVideoStreamParam
FunctionGet video stream param
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getVideoStreamParam
ParamNone
Return
resolutionNResolution of stream type N
bitRateNBit rate of stream type N (20480~2097152)
frameRateNFrame rate of stream type N
GOPNP frames between I frame of stream type N
isVBRN Not in use currentlly
NoteN means streamType [0~3]
Example /cgi-bin/CGIProxy.fcgi?cmd=getVideoStreamParam&usr=admin&pwd=

setVideoStreamParam
FunctionSet the video stream param of stream N
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setVideoStreamParam
Param
streamType0~3
resolutioResolution of stream type N
bitRateBit rate of stream type N (20480~2097152)
frameRateFrame rate of stream type N
GOPP frames between I frame of stream type N The suggest value is: X * frameRate
Bit rate of stream type N (20480~2097152)
isVBRnot use
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=setVideoStreamParam&streamType=0&resolution=0&bitRate=2097152&frameRate=30&GOP=30&isVBR=0&usr=admin&pwd=

getMainVideoStreamType
FunctionGet the stream type of main stream
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getMainVideoStreamType
ParamNone
Return
streamTypeThe stream type0~3
Example/cgi-bin/CGIProxy.fcgi?cmd=getMainVideoStreamType&usr=admin&pwd=

getSubVideoStreamType
FunctionGet the stream type of sub stream
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getSubVideoStreamType
ParamNone
Return
streamTypeThe stream type 0~3
Example/cgi-bin/CGIProxy.fcgi?cmd=getSubVideoStreamType&usr=admin&pwd=

setMainVideoStreamType
FunctionSet the stream type of main stream
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setMainVideoStreamType
Param
streamTypeThe stream type 0~3
ReturnNone
Example /cgi-bin/CGIProxy.fcgi?cmd=setMainVideoStreamType&streamType=0&usr=admin&pwd=

setSubVideoStreamType
FunctionSet the stream format of sub stream
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setSubVideoStream 统一
Param
format
0H264
1MotionJpeg
Return None
NoteOur device can only support 2 streams:Main stream for PC access and Substream for mobile access, but someone need a MJ stream to embed their camera into a webpage, in this case, we should set sub stream format to Motion Jpeg, and then you can get MJ stream by command: /cgi-bin/CGIStream.cgi?cmd=GetMJStream, but when you login as a sub stream user, the stream data will be same as main stream.
Example/cgi-bin/CGIProxy.fcgi?cmd=setSubVideoStreamType&format=0&usr=admin&pwd=

GetMJStream
FunctionGet motion jpeg stream
privilegevisitor
Usage/cgi-bin/CGIStream.cgi?cmd=GetMJStream
ParamNone
ReturnMotion jpeg stream data
Note1) Motion jpeg stream data is returned from http server by a serverpush mode2) MJ stream is VGA resolution @ 15fps
Example/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin&pwd=

getOSDSetting
FunctionGet OSD config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getOSDSetting
ParamNone
Return
isEnableTimeStampTime stamp will display on screen or not
isEnableDevNameCamera name will display on screen or not
dispPosOSD display position, currently can only be 0
isEnableOSDMaskIs OSD mask effective
Example/cgi-bin/CGIProxy.fcgi?cmd=getOSDSetting&usr=admin&pwd=

setOSDSetting
FunctionSet OSD config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setOSDSetting
Param
isEnableTimeStampTime stamp will display on screen or not
isEnableDevNameCamera name will display on screen or not
dispPosOSD display position, currently can only be 0
isEnableOSDMaskIs OSD mask effective
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=setOSDSetting&isEnableTimeStamp=1&isEnableDevName=1&dispPos=0&isEnableOSDMask=0&usr=admin&pwd=

getOsdMaskArea
FunctionGet OSD mask area info
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getOsdMaskArea
Param
x1_NThe top left X position of mask N
y1_NThe top left Y position of mask N
x2_NThe bottom right X position of mask N
y2_NThe bottom right Y position of mask N
NoteOur device can only support 4 mask areas
Example/cgi-bin/CGIProxy.fcgi?cmd=getOsdMaskArea&usr=admin&pwd=

setOsdMaskArea
FunctionSet OSD mask area info
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setOsdMaskArea
param
x1_NThe top left X position of mask N
y1_NThe top left Y position of mask N
x2_NThe bottom right X position of mask N
y2_NThe bottom right Y position of mask N
ResturnNone
NoteOur device can only support 4 mask areas
Example/cgi-bin/CGIProxy.fcgi?cmd=setOsdMaskArea&x1_0=100&y1_0=100&x2_0=200&y2_0=200&x1_1=0&y1_1=0&x2_1=0&y2_1=0&x1_2=0&y1_2=0&x2_2=0&y2_2=0&x1_3=0&y1_3=0&x2_3=0&y2_3=0&usr=admin&pwd=

getMotionDetectConfig
FunctionGet motion detect config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig
ParamNone
Return
isEnableIs enable motion detect alarm
linkageMotion alarm linkagebit0:Ring
( bit3 | bit2 | bit1 | bit0 )bit1:Send mail
bit2:Snap picture
bit3:Record
snapIntervalThe interval time to snap picture again
sensitivity
Motion detect sensitivity
0Low
1Normal
2High
3Lower
4Lowest
triggerIntervalThe time of which motion detect alaram can trigger again when a motion detection has happened.
scheduleNThe motion alaram schedule of one week, N = 0(Monday) ~6(Sunday) For detail, see *1 bellow
areaNThe area info of row N For detail, see *2 bellow
Note·Video region is divided into 10*10 sub areasideo region is divided into 10*10 sub areas ·The min unit of schedule is half an hour
Example/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=

setMotionDetectConfig
FunctionSet motion detect config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig
Param
isEnableIs enable motion detect alarm
linkage
Motion alarm linkagebit0:Ring
( bit3 | bit2 | bit1 | bit0 )bit1:Send mail
bit2:Snap picture
bit3:Record
snapIntervalThe interval time to snap picture again
sensitivityMotion detect sensitivity
0Low
1Normal
2High
3Lower
4Lowest
triggerIntervalThe time of which motion detect alaram can trigger again when a motion detection has happened.
scheduleNThe motion alaram schedule of one week, N = 0(Monday) ~6(Sunday) For detail, see *1 bellow
areaNThe area info of row N For detail, see *2 bellow
ReturnNone
Note·Video region is divided into 10*10 sub areasideo region is divided into 10*10 sub areas ·The min unit of schedule is half an hour
Example/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&linkage=16&snapInterval=2&sensitivity=1&triggerInterval=5& schedule0=1024&schedule1=1024&schedule2=1024&schedule3=1024&schedule4=1024&schedule5=1024&schedule6=1024&area0=1024&area1=1024&area2=1024&area3=1024&area4=1024&area5=1024&area6=1024&area7=1024&area7=1024&area8=1024&area9=1024&usr=admin&pwd=

getSnapConfig
FunctionGet snap config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getSnapSetting
ParamNone
Return
snapPicQuality
0Low quality
1Normal quality
2High quality
saveLocation
0Save to sd card
1Not in use now
2Upload to FTP
Example/cgi-bin/CGIProxy.fcgi?cmd=getSnapConfig&usr=admin&pwd=

setSnapConfig
FunctionSet snap config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setSnapSetting
Param
snapPicQuality
0Low quality
1Normal quality
2High quality
saveLocation
0Save to sd card
1Not in use now
2Upload to FTP
Example/cgi-bin/CGIProxy.fcgi?cmd=setSnapConfig&usr=admin&pwd=& snapPicQuality=1&saveLocation=2

snapPicture
FunctionManual snap picture
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=snapPicture
ParamNone
ReturnWe will return a html script directly
NotePicture resolution is the same as main stream resolutionnapPicture
Example/cgi-bin/CGIProxy.fcgi?cmd=snapPicture&usr=admin&pwd=

snapPicture2
FunctionManual snap picture
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2
ParamNone
ReturnJpeg image data
NoteThis command will return jpeg image data directly
Example/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=

getRecordList
FunctionGet snap config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getRecordList
Param
recordPathRecord path
startTimeStart time for research
endTimeEnd time for research
recordTypeRecort type
startNoStart no
Return
totalCntTotal record count
curCntCurrent record count
recordNN(0-9), Record information
Example/cgi-bin/CGIProxy.fcgi?cmd=getRecordList&usr=admin&pwd=

getAlarmRecordConfig
FunctionGet alarm record config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getAlarmRecordConfig
ParamNone
Return
isEnablePreRecordPreview record stateord
preRecordSecsPreview record time
alarmRecordSecsAlarm record time
Example/cgi-bin/CGIProxy.fcgi?cmd=getAlarmRecordConfig&usr=admin&pwd=

setAlarmRecordConfig
FunctionSet alarm record config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setAlarmRecordConfig
Param
isEnablePreRecordPreview record state
preRecordSecsPreview record time
alarmRecordSecsAlarm record time
ReturnSet result(0-success,-1-error)
Example/cgi-bin/CGIProxy.fcgi?cmd=setAlarmRecordConfig&usr=admin&pwd=&isEnablePreRecord=1&preRecordSecs=5&alarmRecordSecs=30

setIOAlarmConfig
FunctionSet IO alarm config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setIOAlarmConfig
Param
isEnablePreview record state
linkageIO alarm linkage
bit0Ring
bit1Send mail
bit2Snap picture
bit3Record
alarmLevelAlarm level
snapIntervalInterval for snap picture
triggerIntervalInterval for trigger alarm again
scheduleNN(0-6), alarm schedule
ReturnSet result(0-success,-1-error)
Example/cgi-bin/CGIProxy.fcgi?cmd=setIOAlarmConfig&usr=admin&pwd=&isEnable=1&linkage=16& snapInterval=2 & alarmLevel=1 &triggerInterval=5 & schedule0=1024&schedule1=1024&schedule2=1024&schedule3=1024&schedule4=1024&schedule5=1024&schedule6=1024

getIOAlarmConfig
FunctionGet IO alarm config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=getIOAlarmConfig
ParamNone
Return
isEnablePreview record state
linkageIO alarm linkage
bit0Ring
bit1Send mail
bit2Snap picture
bit3Record
alarmLevelAlarm level
snapIntervalInterval for snap picture
triggerIntervalInterval for trigger alarm again
scheduleNN(0-6), alarm schedule
Example/cgi-bin/CGIProxy.fcgi?cmd=getIOAlarmConfig&usr=admin&pwd=

clearIOAlarmOutput
FunctionClean IO alarm output
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=clearIOAlarmOutput
ParamNone
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=clearIOAlarmOutput&usr=admin&pwd=

getMultiDevList
FunctionGet multi device list
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=getMultiDevList
ParamNone
Return
devNN(0-8), device information
Example/cgi-bin/CGIProxy.fcgi?cmd=getMultiDevList&usr=admin&pwd=

getMultiDevDetailInfo
FunctionGet multi device information
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=getMultiDevDetailInfo
Param
chnnlChannel no
Return
productTypeDevice type
ipDevice IP
portWeb port
mediaPortMedia port
userNameUser name
passWordPassword
devNameDevice name
Example/cgi-bin/CGIProxy.fcgi?cmd=getMultiDevDetailInfo&usr=admin&pwd=

addMultiDev
FunctionAdd multiy device
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=addMultiDev
Param
chnnlChannel no
productTypeDevice type
ipDevice Ip
portWeb port
mediaPortMedia port
userNameUser name
passWordPassword
devNameDevice name
Return Add result(0-success,-1-error)
Example/cgi-bin/CGIProxy.fcgi?cmd=addMultiDev&usr=admin&pwd=&chnnl=2&productType=H264&ip=192.168.1.3&port=88&mediaPort=88&userName=admin&passWord=&devName=FI9805W

delMultiDev
FunctionDelete multiy device
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=delMultiDev
Param
chnnlChannel no
ReturnDelete result(0-success,-1-error)
Example/cgi-bin/CGIProxy.fcgi?cmd=delMultiDev&usr=admin&pwd=&chnnl=2