5
Motion jpeg in a browser
55
5
MOTION JPEG IN A BROWSER
Basic streaming from the camera to a browser can be done using the mjpg.cgi call.
Microsoft IE does not support this function. IE doesn’t support the server-push implementation, so Firefox
is recommended for use with mjpg.cgi. Other browsers (e.g. Chrome) may also work.
First, configure the target video stream profile to use MJPEG encoding type. If multiple video profiles use
MJPEG, then the
profile
parameter should also be included; this is discussed below.
In the browser enter the mjpg.cgi call. Substitute the camera IP/URL for <IP ADDRESS>:
http://<IP ADDRESS>/stream/mjpg.cgi
The user will be challenged for a username and password; this is required and can’t be disabled.
The username/password can be included with the URL avoiding the username/password pop-up window.
Use the following format (substitute root:pass with appropriate username:password):
http://
root:pass
@<IP ADDRESS>/stream/mjpg.cgi
If multiple profiles are using MJPEG codec, then the
profile=n
parameter should be included to specify
which video stream profile to use. Substitute the stream profile number (e.g. profile=2 for camera video
profile 2) for n:
http://<IP ADDRESS>/stream/mjpg.cgi?
profile=n