use zm as network camera. ???

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

use zm as network camera. ???

Post by fernando »

has was discuss on version 1.19.xx
i have tried with 1.20 with no luck the use of a zm has a network camera.

the idea is simple. have a zm master machine that control some small machine using the video source.
like /cgi-bin/zms?mode=jpeg&monitor=1&scale=100&maxfps=15&auth=efc03c32ae3b32d1453672c5e9eea35e"

i dont know why this dont work since is mjpeg like many network cameras out there.

any idea. ?
Fernando
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You have to be a little careful as the 'auth' string is time sensitive and so will expire. You would need to use username and password really, certainly for testing, to ensure that the stream gets replayed.

I can get one monitor to 'mirror' another here by using the zms stream of one monitor as the input for another so there shouldn't be any problems.

Phil
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

Post by fernando »

i got it..
now you can get jpg source using zms. so the feature is easy to use.
Fernando
User avatar
ma77hias
Posts: 71
Joined: Wed Jul 07, 2004 3:18 pm

What setting s do you use

Post by ma77hias »

This approach really interests me.
Can you please post the details of the settings you used ?
somepdguy
Posts: 43
Joined: Thu Jun 24, 2004 8:35 am

How did you do it?

Post by somepdguy »

How did you both end up doing this ?

Phil - you say you have got this working at home as a demo - what settings are you using, I have been banging my head against this since version 1.19.4 ?!?!

Help _please_!



Pete
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I just used opened up a jpeg stream and copied the image source path (do a 'view source' to find it) as the path of the new monitor. As I said above I think you'll probably have to use the username and password rather than auth string unfortunately if you are using authentication.

The string I used that worked was,

Code: Select all

/cgi-bin/zms?mode=jpeg&monitor=1&scale=100&maxfps=15&user=<user>&pass=<pass>
Phil
somepdguy
Posts: 43
Joined: Thu Jun 24, 2004 8:35 am

Same as before

Post by somepdguy »

Hi Phillip,

Thanks for that but I am back as was.

I can see the stream if I go directly to
http://myhost.com/cgi-bin/zms?mode=jpeg ... s=password

But when I put
myhost.com
80
/cgi-bin/zms?mode=jpeg&monitor=3&scale=100&maxfps=10&user=admin&pass=password in as the config, the monitor name and myhost.com goes orange in the list of monitors and I can't see the stream when I open it up.

/tmp/zm* doesn't show anything abnormal

All help appriciated.

Pete
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

How about /var/log/messages? Anything in there?

Failing that you might need to increase the debug level on the capture daemon. Which version do you have?

Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Might want to try setting that monitor to color even if the other camera is B/W. ZM can colorize the images per a config setting on the remote so would need to be set to color for the new machine.
also if you are using any of the RPM the location for zms is /cgi-bin/zm/zms
Cheers,
Cordel
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
Locked