Getting an m-jpeg camera to work with ZM

Forum for questions and support relating to the 1.25.x releases only.
Locked
Jethro_uk
Posts: 14
Joined: Tue Sep 18, 2012 3:19 pm

Getting an m-jpeg camera to work with ZM

Post by Jethro_uk »

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

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
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 ?
ralph179
Posts: 11
Joined: Tue Oct 22, 2013 11:55 pm

Re: Getting an m-jpeg camera to work with ZM

Post by ralph179 »

I have two camera that use /videostream.cgi the remote host name is set as username:password@192.168.1.56 and the remote host path is set as /videostream.cgi. Source type is Remote.

Ralph
Jethro_uk
Posts: 14
Joined: Tue Sep 18, 2012 3:19 pm

Re: Getting an m-jpeg camera to work with ZM

Post by Jethro_uk »

ralph179 wrote:I have two camera that use /videostream.cgi the remote host name is set as username:password@192.168.1.56 and the remote host path is set as /videostream.cgi. Source type is Remote.

Ralph
Thanks, but no joy :(
mikb
Posts: 604
Joined: Mon Mar 25, 2013 12:34 pm

Re: Getting an m-jpeg camera to work with ZM

Post by mikb »

Jethro_uk wrote: Can Zoneminder decode this natively ?
If it's MJPEG, then yes it should. How sure are you that it is MJPEG? Name the model and manufacturer, someone might be able to confirm whether it is "expected" to work :)
Jethro_uk
Posts: 14
Joined: Tue Sep 18, 2012 3:19 pm

Re: Getting an m-jpeg camera to work with ZM

Post by Jethro_uk »

mikb wrote:
Jethro_uk wrote: Can Zoneminder decode this natively ?
If it's MJPEG, then yes it should. How sure are you that it is MJPEG? Name the model and manufacturer, someone might be able to confirm whether it is "expected" to work :)
I can't name the manufacturer - it's a Chinese no-name jobbie. The closest I can come is to say the manual speaks of "L-Series", and the traffic from the camera to browser is shown above. As I said, the camera works great if you navigate to it's own webserver.

e2a: I just tried the "smartphone" option from the menu you get after logging in. This calls a page "/snapshot.cgi" which I *can* view in a browser. It seems to be posting a succession of JPG images. I'm going to experiment with this now ...
Locked