Getting an m-jpeg camera to work with ZM
Posted: Fri Dec 13, 2013 4:45 pm
Have been using ZM for over a year with a cheap IP camera from Amazon. Decided to buy another. It works fine when you browse to it's own webserver page: http://<cameraip>/index.htm. This shows the picture fine.
Digging into the page source shows the video feed comes from /videostream.cgi?loginuse=<user>&loginpas=<password>
However browsing to this (in Chrome) and using it in ZM monitor setup doesn't work. In Chrome I get
which suggest the camera is spitting out m-jpeg.
Can Zoneminder decode this natively ? I understand Chrome might not be able to (which is why the Cambozola applet is needed to be able to show ZM frames), so I am less bothered about not being able to browse to it. But what settings would make Zoneminder understand it ?
Digging into the page source shows the video feed comes from /videostream.cgi?loginuse=<user>&loginpas=<password>
However browsing to this (in Chrome) and using it in ZM monitor setup doesn't work. In Chrome I get
Code: Select all
Request URL:http://192.168.1.108/videostream.cgi?
loginuse=admin&loginpas=123456 Request Method:GET Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/
*;q=0.8 Accept-Encoding:gzip,deflate,sdch Accept-Language:en-US,en;q=0.8
Authorization:Digest username="admin", realm="GoAhead",
nonce="e42524f8da1767ad595119a4735f6120", uri="/videostream.cgi?
loginuse=admin&loginpas=123456", algorithm=MD5,
response="0101ffdd7b721dc1c9aa5234b7eb3bec",
opaque="5ccc069c403ebaf9f0171e9517f40e41", qop=auth, nc=00000112,
cnonce="55226d6746e9e232"
Connection:keep-alive Host:192.168.1.108 User-Agent:Mozilla/5.0 (X11;
Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63
Safari/537.36 Query String Parametersview sourceview URL encoded
loginuse:admin loginpas:123456 Response Headersview parsed HTTP/1.1 200 OK
Date: Fri Dec 13 13:10:13 2013 Server: GoAhead-Webs Accept-Ranges: bytes
Connection: close Content-Type:
multipart/x-mixed-replace;boundary=object-ipcamera
Can Zoneminder decode this natively ? I understand Chrome might not be able to (which is why the Cambozola applet is needed to be able to show ZM frames), so I am less bothered about not being able to browse to it. But what settings would make Zoneminder understand it ?