Can I share a ZM USB camera with another ZM server?
Can I share a ZM USB camera with another ZM server?
I have one server with a camera working and another camera that is not working with installation, but works on another PC with the same OS (Xubuntu 15.04) under another ZM server. Since I didn't manage to share it with mjpg-streamer or with Motion (no error, just no picture on chrome or firefox) I would like to know is there is another way to stream it directly. I've tried with vlc and ffserver but every time I try I get an error and the program exits. The camera works fine with cheese, or skype or directly on vlc. I can't just share it.
Any advice?
Any advice?
Last edited by effe on Wed Jul 29, 2015 11:36 pm, edited 1 time in total.
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Can I share a ZM camera with another ZM server?
Sure, just look in your monitor presets for "Remote ZoneMinder" and then fill in the bits that are specific to your system. That includes authentication if you are using it.
Note that most IP cameras can dual stream these days. However, many cameras cannot dual stream using the same url. There is a slightly different url to use for the secondary stream. The specifics should be part of your cameras documentation.
Note that most IP cameras can dual stream these days. However, many cameras cannot dual stream using the same url. There is a slightly different url to use for the secondary stream. The specifics should be part of your cameras documentation.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Can I share a ZM camera with another ZM server?
I do apologize, I forgot to say that the cameras are USB, not IP...
I specified the ip (192.168.25.102), the port (80), and adding the complete remote address (http://192.168.25.2/zm/?view=watch&mid=5) but all I have is a blue screen with the timestamp...
I specified the ip (192.168.25.102), the port (80), and adding the complete remote address (http://192.168.25.2/zm/?view=watch&mid=5) but all I have is a blue screen with the timestamp...
Last edited by effe on Wed Jul 29, 2015 10:29 pm, edited 1 time in total.
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Can I share a ZM camera with another ZM server?
I've been using IP camera so long myself that I tend to forget about the other types.effe wrote:I do apologize, I forgot to say that the cameras are USB, not IP...
The first sentence in my reply does apply to all cameras types. If the camera works in zoneminder server #1, you can add it as a camera to zoneminder server #2 using the "remote zoneminder" preset. That is what you were asking, right?
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Can I share a ZM camera with another ZM server?
yes, is exactly what I need: "share" an usb camera from a zm server to another zm server that is accessible from the outside.
I've updated my last reply with some additional infos.
I've updated my last reply with some additional infos.
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Can I share a ZM camera with another ZM server?
If zoneminder authentication is turned on, you will have to add the the username and password.
The url in the monitor config should look like this:
The url in the monitor config should look like this:
/cgi-bin/nph-zms?mode=jpeg&monitor=<?>&scale=100&maxfps=10&buffer=1000&user=USERNAME&pass=PASSWORD
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Can I share a ZM camera with another ZM server?
I didn't enabled the authentication (for now). And there is just the admin user on both servers.
Anyway I've tried with
Settings: Remote protocol HTTP and Remote MethodSimple, Target Colorspace 32 bit 640x480 (same configuration of the source server).
Anyway I've tried with
and with/cgi-bin/nph-zms?mode=jpeg&monitor=<1>&scale=100&maxfps=10&buffer=1000&user=Myuser&pass=mypassword
Since on the server there is just one usb cam I used monitor=<1> (and Monitor-1)./cgi-bin/nph-zms?mode=jpeg&monitor=<1>&scale=100&maxfps=10&buffer=1000
Settings: Remote protocol HTTP and Remote MethodSimple, Target Colorspace 32 bit 640x480 (same configuration of the source server).
Re: Can I share a ZM USB camera with another ZM server?
how interesting. I'd have never imagined a 'Remote Zoneminder' to be stuffed in between various camera models!
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Can I share a ZM USB camera with another ZM server?
@asker
Yeah, I added that preset into ZoneMinder a few versions back. There currently is no better place to put it. An even better solution will be to use iconnor's multi-server code, but I don't think he's got it all in the source tree yet. That is a story for another day.
@effe
You need to replace "<1>" with the monitor number without the brackets.
For example, replace "monitor=<1>" with "monitor=1" for monitor number one,
replace "monitor=<1>" with "monitor=5" for monitor number 5, and so on.
Yeah, I added that preset into ZoneMinder a few versions back. There currently is no better place to put it. An even better solution will be to use iconnor's multi-server code, but I don't think he's got it all in the source tree yet. That is a story for another day.
@effe
You need to replace "<1>" with the monitor number without the brackets.
For example, replace "monitor=<1>" with "monitor=1" for monitor number one,
replace "monitor=<1>" with "monitor=5" for monitor number 5, and so on.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Can I share a ZM USB camera with another ZM server?
Thank you! Thank you! Thank you!
I've set on remote server as monitor and modect on the primary server and it worked!
I didn't find this information on wiki, better add it because is a HUGE help. 3 cameras running fine now.
I've set on remote server as monitor and modect on the primary server and it worked!
I didn't find this information on wiki, better add it because is a HUGE help. 3 cameras running fine now.
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Can I share a ZM USB camera with another ZM server?
I thought it was in the Wiki, but I don't see it either.
We need help from the community to help keep the wiki up to date. Please consider helping out.
We need help from the community to help keep the wiki up to date. Please consider helping out.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Can I share a ZM USB camera with another ZM server?
Even if my English is quite far from be perfect I'll have a look on it.
Thanks again!
Thanks again!