User manual

ARECONT VISION USER MANUAL 54
Arecont Vision 425 E Colorado St, 7
th
Floor Glendale, CA 91205 8/1/2012
www.arecontvision.com
HTTP Request Format for Continuous MJPEG Video Streaming
Continuous sequence of JPEG images (MJPEG) separated by the boundary separator can be requested from
Arecont Vision cameras by using the following GET method request format:
GET/mjpeg?res=resolution_value&x0=X0&y0=Y0&x1=X1&y1=Y1&quality=quality_value&doublescan
=doublescan_value&fps=value&id=value
HTTP/1.1\r\n
Host: ip_address\r\n
\r\n
where
Res can have value of either full or half and specifies whether camera should decimate the image by
a factor of 2 in each direction or display the full resolution.
X0, Y0, X1, Y1 are the left, top, right and bottom coordinates of the requested image window,
respectively. These values cannot exceed the size of the image sensor array for the specific camera
and should be divisible by 16 if “Res=full” and 32 if “Res=half”. These parameters allow for the video
to be cropped to a specific size.
Quality is the compression quality of the jpeg image with the range from 1 to 20;
Doublescan allows the user to specify whether the camera should delay the image output until a new
image is available (doublescan = 0) or if the image request should be serviced by outputting the
content of the image buffer that was already once output (useful for picture-in-picture display).
FPS specifies the requested frame rate; values 1 to 15 result in the specified frame rate, while
omitting fps parameter as well as fps values of 0 and all values above 16 will result in maximum
frame rate that is model dependent.
The following example illustrates the request to camera with IP address 192.168.0.36 for the new full
resolution 1600x1200 video stream with compression quality 12 at a maximum frame rate:
GET /mjpeg?res=half&x0=0&y0=0&x1=1600&y1=1200&quality=12&doublescan=0 HTTP/1.1\r\n
Host: 192.168.1.11\r\n\r\n
In response to the above request the camera sends a continuous stream of images separated by the
boundary separator “fbdr” in accordance with MIME multipart/x-mixed-replace format. Please note that MIME
multipart/x-mixed-replace format is not directly supported by Internet Explorer. For video viewing based on IE
only the users should use on-camera script that can be accessed via http://ip_address/index.html request.
HTTP/1.0 200 Ok\r\n