Ana səhifə

Cgi commands 1 jpeg image commands 1 Get one jpeg image


Yüklə 56.12 Kb.
tarix09.05.2016
ölçüsü56.12 Kb.
CGI commands V1.1
1. JPEG image commands

1.1 Get one JPEG image

Method: Get

URL: http://camera_ip/jpg/image.jpg

Return: One JPEG image will be transferred to client.


1.2 Get one JPEG image without any authentication

Method: Get

URL: http://camera_ip/loginfree.jpg

Return: One JPEG image will be transferred to client.

Note: User maybe change the loginfree filename.
1.3 Get one JPEG video stream

Method: Get

URL: http://camera_ip/mjpg/video.mjpg

Return: One multipart JPEG video stream will be transferred to client.

Format:

HTTP/1.0 200 OK\r\n

Content-Type: multipart/x-mixed-replace;

boundary=myboundary\r\n

\r\n

--myboundary\r\n



Content-Type: image/jpeg\r\n

Content-Length: 15656\r\n

\r\n

\r\n
--myboundary\r\n

Content-Type: image/jpeg\r\n

Content-Length: 14978\r\n

\r\n


\r\n
--myboundary\r\n

Content-Type: image/jpeg\r\n

Content-Length: 15136\r\n

\r\n


\r\n

--myboundary\r\n

. . . . . .

2. System commands

2.1 Get system information and configuration

2.1.1 Get image properties supported by camera

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Properties.Image

Return: Image resolution, flipmode and format supported by camera

Example:

root.Properties.Image.FlipMode=1

root.Properties.Image.Resolution=1280x1024,1024x768,640x480,320x240

root.Properties.Image.Format=mjpeg,mpeg4

Description: Camera support flipmode, supports 4 kinds of

resolution and supports MJPEG and MPEG4 format.
2.1.2 Get MJPEG image properties supported by camera

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Properties.Image.I0

Return: Image resolution, flipmode and format supported by camera

Example:

root.Properties.Image.I0.FlipMode=1

root.Properties.Image.I0.Resolution=1280x1024,640x480,320x240 root.Properties.Image.I0.Format=mjpeg

Description: Camera support flipmode, supports 3 kinds of

resolution and supports MJPEG format.


2.1.3 Get MPEG4 image properties supported by camera

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Properties.Image.I1

Return: Image resolution, flipmode and format supported by camera

Example:

root.Properties.Image.I1.FlipMode=1

root.Properties.Image.I1.Resolution=1024x768,640x480,320x240

root.Properties.Image.I1.Format=mpeg4

Description: Camera support flipmode, supports 3 kinds of

resolution and supports MPEG4 format.

2.1.4 Get current camera configuration of resolution and JPEG quality

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Image.I0.Appearance

Return: Current configuration of JPEG resolution and JPEG quality

Example:


root.Image.I0.Appearance.Resolution=640x480

root.Image.I0.Appearance.Compression=0

Compression: value range is 0~4

0:low 4:high


2.1.5 Get current camera configuration of resolution and MPEG4 quality

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Image.I1.Appearance

Return: Current configuration of JPEG resolution and JPEG quality

Example:


root.Image.I1.Appearance.Resolution=1024x768

root.Image.I1.Appearance.stats=compression

root.Image.I1.Appearance.compression=7

stats: compression for VBR,bitrate for CBR

Compression: value range is 13~5 ( Lowest:13、Low:11、Normal:9、High:7、Highest:5 )
2.1.6 Get current FPS value of MJPEG camera

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Image.I0.Stream

Return: Current FPS value of camera (frame rate per second)

Example:

Image.I0.Stream.FPS=15

MJPEG only.


2.1.7 Get current FPS value of MPEG4 camera

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group= Image.I1.Stream

Return: Current FPS value of camera (frame rate per second)

Example:

Image.I1.Stream.FPS=15

MPEG4 only.


2.1.8 Get default video format

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Layout

Return: Camera default video format ( mjpeg or mpeg4 video mode )

Example:


Layout.DefaultVideoFormat=mpeg4
2.1.9 Get information about the brand

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Brand

Return: Information about the brand and type of camera

Example:


root.Brand.Brand=EDIMAX

root.Brand.ProdFullName= EDIMAX IC-5010 Network Camera

root.Brand.ProdShortName= EDIMAX IC-5010

root.Brand.ProdNbr= IC-5010

root.Brand.ProdType=Network Camera

root.Brand.WebURL=http://www.edimax.com.tw/


2.1.10 Get hardware MAC address of camera

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Network.Interface.I0.Active.MACAddress

Return: Hardware MAC address of camera

Example:


Network.Interface.I0.Active.MACAddress=00:11:09:15:10:AB
2.1.11 Get Firmware Version, Model ID and Vendor ID

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Properties.Firmware

Return: Firmware version, Model ID and Vendor ID of camera

Example:


Properties.Firmware.Version=v1.32

Properties.Firmware.ModelID=12

Properties.Firmware.VendorID=1
2.1.12 Get web port number

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group= System.HTTPPort

Return: web port number

Example:


System.HTTPPort=80
2.1.13 Get private video port number

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group= System.PrivateVideoPort

Return: web port number

Example:


System.PrivateVideoPort=4321
2.1.14 Get MaxUsers and CurrentUsers Number

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=list

&group=Properties.VideoServer

Return: MaxUsers and CurrentUsers Number

Example:


Properties.VideoServer.MaxUsers=16

Properties.VideoServer.CurrentUsers=2



2.2 Set system configuration

2.2.1: Set resolution of MJPEG camera

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=update

&Image.I0.Appearance.Resolution=Width x Height

Parameters: 1280x1024, 640x480, 320x240

Example: Set resolution to 320X240

http://192.168.2.114/camera-cgi/admin/param.cgi?action=update

&Image.I0.Appearance.Resolution=320x240

MJPEG only.
2.2.2: Set resolution of MPEG4 camera

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=update

&Image.I1.Appearance.Resolution=Width x Height

Parameters: 1024x768、640x480, 320x240

Example: Set resolution to 320X240

http://192.168.2.114/camera-cgi/admin/param.cgi?action=update

&Image.I1.Appearance.Resolution=320x240

MPEG4 only.
2.2.3: Set JPEG compression level

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=update

&Image.I0.Appearance.Compression=Compression Level

Parameters: value range is 0~4

0:low 4:high


Example: Set compression level to high

http://192.168.2.114/camera-cgi/admin/param.cgi?action=update

&Image.I0.Appearance.Compression=4
2.2.4 Set MPEG4 Compression

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=update

&Image.I1.Appearance.Compression=Compression Level

Parameters: Compression Level: 13(Lowest)、11(Low)、9(Normal)、7(High)、5(Highest)

Example: Set MPEG4 VBR Compression to Normal

http://192.168.2.114/camera-cgi/admin/param.cgi?action=update

&Image.I1.Appearance.Compression=9


2.2.5 Set MJPEG camera FPS

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=update

&Image.I0.Stream.FPS=FPS

Parameters: 3, 5, 10, 15, 30

Resolution 1280x1024 fps parameter: 3、5、10、15

Resolution 640x480、320x240 fps parameter:3、5、10、15、30

Example: Set FPS to 15

http://192.168.2.114/camera-cgi/admin/param.cgi?action=update

&Image.I0.Stream.FPS=15

MJPEG only.
2.2.6 Set MPEG4 camera FPS

Method: Get

URL: http://camera_ip/camera-cgi/admin/param.cgi?action=update

&Image.I1.Stream.FPS=FPS

Parameters: 3, 5, 10, 15、30

Resolution 1024x768 fps parameter:3、5、10、15

Resolution 640x480、320x240 fps parameter:3、5、10、15、30

Example: Set FPS to 15

http://192.168.2.114/camera-cgi/admin/param.cgi?action=update

&Image.I1.Stream.FPS=15

MPEG4 only.
3. Audio commands

3.1 Request an audio stream.

Method: Get

URL: http://camera_ip/camera-cgi/audio/receive.cgi

Return: Get a Multipart Audio data stream from IPCam.

Format:

HTTP/1.0 200 OK\r\n



Content-Type: audio/basic\r\n

\r\n




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©anasahife.org 2016
rəhbərliyinə müraciət