#Please refer AIT.WebCGI.txt.
#It is AIT IPCAM Web CGI commands Specification.

# Remark of .conf file notation
#---------------------------------------------------------------------------
# Append    ;Runtime    at end of line would make that variable volatile. It would not be saved
#                       during power-off stage. The variable restored as .conf after rebooting.
# These values are considered as integers: Those words are case-insensitive.
# YES, NO
# ON, OFF
#---------------------------------------------------------------------------


# User Account management, usually accessed by User.cgi
#-------------------------------------------------------
#User.Guest.Enable=YES
#User.Account.Totals=2
#User.Account.1.Username="admin       "
#User.Account.1.Password="admin   "
#User.Account.1.Class="ADMIN "
#User.Account.2.Username="guest       "
#User.Account.2.Password="1234    "
#User.Account.2.Class="GUEST "

# System-wise properties
#-------------------------------------------------------
# ... Log.AMN.Levels               Format: [ ERR | WARN | INFO | VERBOSE | DEBUG ]
# ... Log.UPNP.Levels              Format: [ CRIT | WARN | PACKET | INFO | ALL ]
# ... Log.LWIP.Levels              TODO:: ??
# ... Log.MailSendLevel            Level critical than which will send out by mail this log, Not NOW
# ... Dir.Recording                The relative path to Sys.Dir.WWW, for the recorded media files
# ... Sys.Session.RTSP.Age         RTSP Session Time out in seconds
# ... Sys.Session.HTTP.Age         HTTP Session Time out in seconds, this is for normal Web-GUI
# ... Sys.Session.HTTP-STREAM.Age  HTTP Session Time out in mini-sec, this is for MJPEG streaming
#-------------------------------------------------------
Sys.General.Language="EN    "
Sys.General.DefaultLanguage="EN    "
Sys.Log.Max=300
Sys.Log.AMN.Levels="VERBOSE"
Sys.Log.UPNP.Levels="WARN"
Sys.Log.LWIP.Levels="WARN"
Sys.Log.MailSendLevel=0
Sys.Dir.WWW="SD:0:\\www     "
#Sys.Dir.Recording="record"
#Sys.Session.RTSP.Total=1
#Sys.Session.RTSP.Age=600
Sys.Session.HTTP.Age=900
#Sys.Session.HTTP-STREAM.Age=3000

# AIT Streaming Server properties
#------------------------------------------------------------------
# ... Attr.FramePool            Format: <total_frames>  <max_frame_size>
# ... Attr.Format               Format: [ mjpeg | h264 ]. It can be 'raw' for YUV or 'mpeg4', but not supported !!!
# ... Attr.Auth                 Authentication: Username Password. Default empty ="=> No authentication            "
# ... SrcNode.%d.Attr.Output    The grabing frames from source nodes will be executed under ASS's Pipeline Engine Task context
# ... SrcNode.%d.Attr.Shortcut  The grabing frames from source nodes will be executed under media encoder's Task context
# ... SnkNode.%d.Attr.Inputs    Default only 1 video stream. When need audio, then use "VStream1, AStream1"
# ... Attr.Refresh              HTTP streaming refresh rate for JPEG images
#------------------------------------------------------------------
Ass.Start=YES

#Set 0 for auto counting. The number must be continuous.
Ass.SrcNode.Totals=0
Ass.SrcNode.1.Type="EncH264"
Ass.SrcNode.1.Name="VIDEO.0"
Ass.SrcNode.1.Attr.FramePool=32
#Ass.SrcNode.1.Attr.FrameRate=30
#Ass.SrcNode.1.Attr.Resolution="720P   "
Ass.SrcNode.1.Attr.Output="Stream264"
Ass.SrcNode.2.Type="EncMJPEG"
Ass.SrcNode.2.Name="VIDEO.0"
Ass.SrcNode.2.Attr.FramePool=32
#Ass.SrcNode.2.Attr.FrameRate=30
Ass.SrcNode.2.Attr.Output="StreamJPG"
Ass.SrcNode.3.Type="EncAAC"
Ass.SrcNode.3.Name="AUDIO.0"
Ass.SrcNode.3.Attr.FramePool=32
Ass.SrcNode.3.Attr.Output="StreamAAC"
Ass.SrcNode.4.Type="EncPCM"
Ass.SrcNode.4.Name="AUDIO.0"
Ass.SrcNode.4.Attr.FramePool=32
Ass.SrcNode.4.Attr.Output="StreamPCM"


Ass.FltNode.Totals=0

Ass.SnkNode.Totals=0
Ass.SnkNode.1.Type="LivecastRTSP"
Ass.SnkNode.1.Name="/liveRTSP/v1"
Ass.SnkNode.1.Attr.Auth="  "
#org setting
Ass.SnkNode.1.Attr.Inputs="Stream264"

#setting for iOS APP 1.9.0
Ass.SnkNode.2.Type="LivecastRTSP"
Ass.SnkNode.2.Name="/liveRTSP/v2"
Ass.SnkNode.2.Attr.Auth="  "
Ass.SnkNode.2.Attr.Inputs="StreamJPG"
Ass.SnkNode.3.Type="LivecastRTSP"
Ass.SnkNode.3.Name="/liveRTSP/v3"
Ass.SnkNode.3.Attr.Auth="  "
Ass.SnkNode.3.Attr.Inputs="Stream264"
Ass.SnkNode.4.Type="LivecastRTSP"
Ass.SnkNode.4.Name="/liveRTSP/av1"
Ass.SnkNode.4.Attr.Auth="  "
Ass.SnkNode.4.Attr.Inputs="StreamJPG,StreamAAC"
Ass.SnkNode.5.Type="LivecastRTSP"
Ass.SnkNode.5.Name="/liveRTSP/av2"
Ass.SnkNode.5.Attr.Auth="   "
Ass.SnkNode.5.Attr.Inputs="Stream264,StreamAAC"
Ass.SnkNode.6.Type="TxRTSP"
Ass.SnkNode.6.Name="/txRTSP/av"
Ass.SnkNode.6.Attr.Auth="   "
Ass.SnkNode.6.Attr.Inputs="StreamJPG,StreamAAC"
Ass.SnkNode.7.Type="TxRTSP"
Ass.SnkNode.7.Name="/txRTSP/av3"
Ass.SnkNode.7.Attr.Auth="   "
Ass.SnkNode.7.Attr.Inputs="StreamJPG,StreamPCM"

#Ass.SnkNode.?.Type="LivecastHTTP"
#Ass.SnkNode.?.Name="/cgi-bin/liveMJPEG"
##Ass.SnkNode.?.Attr.Auth="  "
#Ass.SnkNode.?.Attr.Mode="stream"
#Ass.SnkNode.?.Attr.Refresh=5
#Ass.SnkNode.?.Attr.Inputs="StreamJPG"

#Ass.SnkNode.?.Type="LivecastHTTP"
#Ass.SnkNode.?.Name="/cgi-bin/staticMJPEG"
##Ass.SnkNode.?.Attr.Auth="  "
#Ass.SnkNode.?.Attr.Mode="snapshot"
#Ass.SnkNode.?.Attr.Refresh=5
#Ass.SnkNode.?.Attr.Inputs="StreamJPG"

# Network devices / protocols definitions
#------------------------------------------------------------------
# ... Port.Service             Port for RTSP / HTTP-WEB / HTTP-Streaming.  Ex. "8554, 8080, 8080"
# ... Dev.%d.Type              Format: [ AP | STA | ETH | TOGGLE ]. Currently "TOGGLE" is supported
# ... WIFI_STA.AP.%d.EncType   Format: [ AES | WEP | NONE ].
# ... WIFI_STA.WPS.Mode        Format: [ PIN | PBC ].
# ... WIFI_STA.WPS.ScanBufSize Integer, in units of K-Bytes
# ... WIFI_STA.WPS.AssocAPTime Integer, in units of m-seconds
# ... WIFI_AP.EncType          Format: [ AES | WEP | NONE ].
# ... Net.WIFI_AP.Channel      Integer. If <=0, then auto select
#------------------------------------------------------------------
Net.Dev.Totals=3
Net.Dev.1.Name="wifi0            "
Net.Dev.1.Type="AP      "	;RUNTIME
Net.Dev.1.Start=YES
Net.Dev.1.MAC="00:0E:53:E8:7C:D1"
Net.Dev.1.BootProto="DHCP   "
Net.Dev.1.IPV4.Address="192.168.11.8    "
Net.Dev.1.IPV4.Broadcast="192.168.11.255 "
Net.Dev.1.IPV4.Gateway="192.168.11.8    "
Net.Dev.1.IPV4.Mask="255.255.255.0  "
Net.Dev.1.IPV4.DNS1="168.95.1.1     "
Net.Dev.1.IPV4.DNS2="139.175.55.244 "
Net.Dev.2.Name="wifi2            "
Net.Dev.2.Type="STA     "
Net.Dev.2.Start=NO
Net.Dev.2.MAC="00:0E:53:E8:7C:D2"
Net.Dev.2.BootProto="DHCP   "
Net.Dev.2.IPV4.Address="192.168.0.158  "
Net.Dev.2.IPV4.Broadcast="192.168.1.255  "
Net.Dev.2.IPV4.Gateway="192.168.0.254  "
Net.Dev.2.IPV4.Mask="255.255.255.0  "
Net.Dev.2.IPV4.DNS1="168.95.1.1     "
Net.Dev.2.IPV4.DNS2="139.175.55.244 "
Net.Dev.3.Name="wifi3            "
Net.Dev.3.Type="AP      "
Net.Dev.3.Start=NO
Net.Dev.3.MAC="00:0E:53:E8:7C:D3"
Net.Dev.3.BootProto="DHCP   "
Net.Dev.3.IPV4.Address="172.92.1.1     "
Net.Dev.3.IPV4.Broadcast="172.92.1.1     "
Net.Dev.3.IPV4.Gateway="172.92.1.1     "
Net.Dev.3.IPV4.Mask="255.255.255.0  "
Net.Dev.3.IPV4.DNS1="168.95.1.1     "
Net.Dev.3.IPV4.DNS2="139.175.55.244 "
Net.WIFI_STA.AP.Totals=8
#The first group is reserved for WPS
Net.WIFI_STA.AP.1.NetworkType="Infra"
Net.WIFI_STA.AP.1.SSID="                                "
Net.WIFI_STA.AP.1.EncType="    "
Net.WIFI_STA.AP.1.CryptoKey="                                                                 "
Net.WIFI_STA.AP.2.NetworkType="Infra"
Net.WIFI_STA.AP.2.SSID="                                "
Net.WIFI_STA.AP.2.EncType="AES "
Net.WIFI_STA.AP.2.CryptoKey="                                "
Net.WIFI_STA.AP.3.NetworkType="Infra"
Net.WIFI_STA.AP.3.SSID="                                "
Net.WIFI_STA.AP.3.EncType="WEP "
Net.WIFI_STA.AP.3.CryptoKey="                                "
Net.WIFI_STA.AP.4.NetworkType="Infra"
Net.WIFI_STA.AP.4.SSID="                                "
Net.WIFI_STA.AP.4.EncType="WEP "
Net.WIFI_STA.AP.4.CryptoKey="                                "
Net.WIFI_STA.AP.5.NetworkType="Infra"
Net.WIFI_STA.AP.5.SSID="                                "
Net.WIFI_STA.AP.5.EncType="WEP "
Net.WIFI_STA.AP.5.CryptoKey="                                "
Net.WIFI_STA.AP.6.NetworkType="Infra"
Net.WIFI_STA.AP.6.SSID="                                "
Net.WIFI_STA.AP.6.EncType="WEP "
Net.WIFI_STA.AP.6.CryptoKey="                                "
Net.WIFI_STA.AP.7.NetworkType="Infra"
Net.WIFI_STA.AP.7.SSID="                                "
Net.WIFI_STA.AP.7.EncType="WEP "
Net.WIFI_STA.AP.7.CryptoKey="                                "
Net.WIFI_STA.AP.8.NetworkType="Infra"
Net.WIFI_STA.AP.8.SSID="                                "
Net.WIFI_STA.AP.8.EncType="    "
Net.WIFI_STA.AP.8.CryptoKey="                                "
Net.WIFI_STA.WPS.Mode="PBC"
Net.WIFI_STA.WPS.PIN=1234
Net.WIFI_STA.WPS.ScanBufSize=32
Net.WIFI_STA.WPS.AssocAPTime=20000
Net.WIFI_AP.SSID="AIT-Streaming-Demo-AP          "
Net.WIFI_AP.HideSSID=NO
Net.WIFI_AP.EncType="AES "
Net.WIFI_AP.CryptoKey="1234567890        "
Net.WIFI_AP.Channel=0
Net.WIFI_AP1.SSID="                               "
Net.WIFI_AP1.HideSSID=NO
Net.WIFI_AP1.EncType="AES "
Net.WIFI_AP1.CryptoKey="1234567890        "
Net.WIFI_AP1.Channel=0
Net.WIFI_AP.MaxClients=99999
Net.WIFI_AP.BlackList.Enabled=NO
Net.WIFI_AP.BlackList.Totals=3
Net.WIFI_AP.BlackList.1="00:0E:53:E8:7C:11"
Net.WIFI_AP.BlackList.2="00:0E:53:E8:7C:22"
Net.WIFI_AP.BlackList.3="00:0E:53:E8:7C:33"
Net.WIFI_AP.WhiteList.Enabled=NO
Net.WIFI_AP.WhiteList.Totals=3
Net.WIFI_AP.WhiteList.1="00:0E:53:E8:7C:11"
Net.WIFI_AP.WhiteList.2="00:0E:53:E8:7C:22"
Net.WIFI_AP.WhiteList.3="00:0E:53:E8:7C:33"
Net.Port.Service="554, 80, 80       "
Net.Port.RTP="50000,60000      "
Net.HTML.Timeout=15
Net.HTML.Config=YES
Net.DHCPD.Start=YES
Net.DHCPD.Addr.DNS1="               "
Net.DHCPD.Addr.DNS2="               "
Net.DHCPD.Lease.Life=86400
Net.DHCPD.Lease.Renew=43200
Net.DHCPD.Lease.IPPool.Start=100
Net.DHCPD.Lease.IPPool.End=120
Net.DHCPD.Lease.IPPool.Max=119
Net.DHCPD.Port.Server=67
Net.DHCPD.Port.Client=68
Net.IP.Broadcast.Enable="ENABLE		"		;RUNTIME
Net.WIFI_STA.AP.Switch="ENABLE		"		;RUNTIME


#
# Pseudo set
#
Camera.Preview.MJPEG.status="ACTIVE	";RUNTIME
Camera.Preview.MJPEG.status.record="ACTIVE      ";RUNTIME
Camera.Preview.MJPEG.status.mode="ACTIVE      "	;RUNTIME
Camera.Preview.MJPEG.WarningMSG="ACTIVE		"	;RUNTIME
Camera.Preview.MJPEG.TimeStamp="ACTIVE		"	;RUNTIME
Camera.Preview.MJPEG.TimeStamp.year=0		;RUNTIME
Camera.Preview.MJPEG.TimeStamp.month=0		;RUNTIME
Camera.Preview.MJPEG.TimeStamp.day=0		;RUNTIME
Camera.Preview.MJPEG.TimeStamp.hour=0		;RUNTIME
Camera.Preview.MJPEG.TimeStamp.minute=0		;RUNTIME
Camera.Preview.MJPEG.TimeStamp.second=0		;RUNTIME
Net="                "						;RUNTIME
Video="                "					;RUNTIME
UIMode="                "					;RUNTIME
DefMode="                "					;RUNTIME
Imageres="                "					;RUNTIME
Videores="                "					;RUNTIME
VideoClipTime="                "			;RUNTIME
PowerOffDelay="                "			;RUNTIME
VideoQuality="                "				;RUNTIME
Exposure="                "					;RUNTIME
EV="                "						;RUNTIME
AWB="                "						;RUNTIME
MTD="                "						;RUNTIME
Flicker="                "					;RUNTIME
Deletefiles="                "				;RUNTIME
TimeSettings="                "				;RUNTIME
Beep="                "						;RUNTIME
AutoPowerOff="                "				;RUNTIME
TimeFormat="                "				;RUNTIME
TVSystem="                "					;RUNTIME
TV="                "						;RUNTIME
LCDPowerSave="                "				;RUNTIME
PhotoBurst="                "				;RUNTIME
Timelapse="                "				;RUNTIME
UpsideDown="                "				;RUNTIME
SpotMeter="                "				;RUNTIME
LoopingVideo="                "				;RUNTIME
HDR="                "						;RUNTIME
Q-SHOT="                "					;RUNTIME
StatusLights="                "				;RUNTIME
SoundIndicator="                "			;RUNTIME
PowerSaving="                "				;RUNTIME
SD0="                "						;RUNTIME
FactoryReset="       "						;RUNTIME
Playback="               "					;RUNTIME
WiFi="           "						;RUNTIME
DidToken="                                                                                                ";RUNTIME
UserConfirm="    ";RUNTIME
GSensor="						 "	;RUNTIME
#
#Camera.Menu="ACTIVE "					;RUNTIME
Camera.Menu.UIMode="                "	;RUNTIME
Camera.Menu.DefMode="                "	;RUNTIME
Camera.Menu.VideoRes="                "	;RUNTIME
Camera.Menu.ImageRes="                "	;RUNTIME
Camera.Menu.MTD="                "		;RUNTIME
Camera.Menu.Flicker="       "			;RUNTIME
Camera.Menu.AWB="                "		;RUNTIME
Camera.Menu.EV="        "				;RUNTIME
Camera.Menu.FWversion="                  ";RUNTIME
Camera.Menu.IsStreaming="                ";RUNTIME
Camera.Menu.Timelapse="      "			;RUNTIME
Camera.Menu.PhotoBurst="      "			;RUNTIME
Camera.Menu.UpsideDown="             "	;RUNTIME
Camera.Menu.SpotMeter="    "			;RUNTIME
Camera.Menu.LoopingVideo="      "		;RUNTIME
Camera.Menu.VideoClipTime="      "		;RUNTIME
Camera.Menu.HDR="    "					;RUNTIME
Camera.Menu.Q-SHOT="    "				;RUNTIME
Camera.Menu.StatusLights="   "			;RUNTIME
Camera.Menu.SoundIndicator="   "		;RUNTIME
Camera.Menu.PowerSaving="     "			;RUNTIME
Camera.Menu.PowerOffDelay="      "		;RUNTIME
Camera.Menu.TVSystem="     "			;RUNTIME
Camera.Menu.TV="     "					;RUNTIME
Camera.Menu.SD0="                "		;RUNTIME
Camera.Menu.GSensor="						 ";RUNTIME
Camera.Menu.LCDPower="            ";RUNTIME
Camera.DBFileNum="        "				;RUNTIME
Camera.NormalDBSize="						";RUNTIME
Camera.Menu.Property=" "				;RUNTIME

#
Camera.File.Total=0						;RUNTIME
#
# Camera runtime properties
# 
Camera.Preview.MJPEG.w=320
Camera.Preview.MJPEG.h=240
Camera.Preview.MJPEG.fps=30
Camera.Preview.MJPEG.bitrate=5000000
#max resolution for most cases: 1280x720
Camera.Preview.H264.w=640
Camera.Preview.H264.h=360
#bit rate should not greater than 4mbps in general case according to WiFi throughput.
Camera.Preview.H264.bitrate=2800000
Camera.Preview.RTSP.rtcp=0
#Camera.Preview.RTSP.av1=1
#For APP to request URL for streaming. 1: av1, 2:v1, 3:av2 4:av4
Camera.Preview.RTSP.av=4
#keep-alive should be at least 10 seconds
Camera.Preview.RTSP.keepalive=30
# Front/Rear stream switch
Camera.Preview.Source.Totals=2
Camera.Preview.Source.1.Camid="    "				;RUNTIME
Camera.Preview.Source.2.Camid="    "				;RUNTIME
#ADAS Setting
Camera.Preview.Adas.Height="240 "						;RUNTIME
Camera.Preview.Adas.Yone="100 "							;RUNTIME
Camera.Preview.Adas.Ytwo="200 "							;RUNTIME
Camera.Preview.Adas.SaveData="set"					;RUNTIME

# Camera Record time
Camera.Record.Total=0				;RUNTIME
Camera.Record.Remaining=0			;RUNTIME
Camera.Record.Available=0			;RUNTIME
Camera.Record.Start=0				;RUNTIME
Camera.Record.TS=0					;RUNTIME
# Camera Capture
Camera.Capture.Remaining=0			;RUNTIME
# Camera Battery
Camera.Battery.Level=0				;RUNTIME
Camera.FWupdate.Progress="           "	;RUNTIME

#
# APP side setting
#

#time out in millisecond
App.TimeOut = 10000

status=""                              ;RUNTIME
broadcast=""                           ;RUNTIME

# Add items before the line for AIT Standard configuration
# If new items are for a specific project,
# please add those in amn_project.ucos.conf in project folder
# Run Prelude_MPC.bat in project folder to produce auto_syscfg.h in project folder.
