HTTP Request Format for Continuous MJPEG Video Streaming
Request an MJPEG stream over HTTP.
Issue an HTTP GET request with query parameters to open an (MJPEG) stream from Arecont Vision cameras:
Where the query parameters:
resis either full or half.
fullrepresents full resolution
halfreduces the stream resolution by a factor of 2 in each direction.
y1are 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=fullor 32, if
res=half. You can use these values to crop the video to be cropped to a specific size.
qualityis the compression quality of the jpeg image with a range from 1 to 21;
doublescanspecifies 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 output (useful for picture-in-picture display).
fpsspecifies the frame rate, an integer between 1 to the camera's maximum frame rate. Ommitting this parameter, providing a value of 0, or providing a value above 16 will result in the maximum frame rate for the camera.
The following example illustrates a request to a camera at 192.168.0.36 for a 1600x1200 video stream with compression quality 12 at the maximum possible frame rate: