Restart Specific Monitor

Forum for questions and support relating to the 1.29.x releases only.
Locked
Peppeserv
Posts: 4
Joined: Fri Jun 10, 2016 8:21 am

Restart Specific Monitor

Post by Peppeserv »

Hi all,
i'm new to zoneminder.
I installed it on an Ubuntu 16.04, and everything is going good.
I have some problem with a camera.
I have to add it with Ffmpeg source, and "rtsp://blablabla/onvif1" path. I can see the video streaming, but sometimes i can't and the stream become all blue (like a bsod).

I figured out that changing the monitor FUNCTION from modect (or monitor) to none, and then switch it back works to have the monitor stream back.

I was wondering if there's a way to "restart" only the monitor by a linux shell, like the zmu command to change the monitor STATUS. So hopefully, in a very dirty way, i can make this script in cron and call it every hour, or hopefully once a day (i have to investigate to understand how long the cam stays alive).

So, the question is: since i saw that in the api's monitor there's some new method to change the monitor's function, is possible to change it also by command line?
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Restart Specific Monitor

Post by bbunge »

What camera are you using?
Peppeserv
Posts: 4
Joined: Fri Jun 10, 2016 8:21 am

Re: Restart Specific Monitor

Post by Peppeserv »

It's a sricam sp007.
After some test now it seems working good, both in modect and record mode.
Very few times it send for few seconds a blue signal, but probably it's due to some network latency, or something like it.
Anyway, i repeat, it's seems ok. I will report if something changes ;)
j45p41
Posts: 2
Joined: Mon Jul 18, 2016 5:26 pm

Re: Restart Specific Monitor

Post by j45p41 »

Hello mate. I have just installed these cameras and having trouble configuring them with zoneminder. Could you kindly tell me what settings you used to get them to work?
mattj
Posts: 25
Joined: Sun May 06, 2007 12:49 am

Re: Restart Specific Monitor

Post by mattj »

On the main ZoneMinder web page, click the "log" link in the upper right. The log will likely show errors when your camera stream quits, hopefully the errors will be helpful.
Peppeserv
Posts: 4
Joined: Fri Jun 10, 2016 8:21 am

Re: Restart Specific Monitor

Post by Peppeserv »

@j45p41 if you mean the configuration parameter for the sp007 here they are:
General Tab:
Source Type: Ffmpeg
Source Tab:
Source Path: rtsp://your_username:your_password@camera_ip:camera_port/onvif1
Remote Method: RTP/Unicast
Capture Width: 1280
Capture Height: 720

If you need to configure your camera, like to set a static ip, you have to use the mobile app (both for ios or android).
The default username is admin, and the default password is 888888, while the port should be 554.
For instance, your source path could be like this:
rtsp://admin:888888@192.168.1.99:554/onvif1

(I don't know if there's a onvif2 path, that can be a lower quality)
razif66
Posts: 1
Joined: Sun Aug 06, 2017 1:23 pm

Re: Restart Specific Monitor

Post by razif66 »

How about for sp013?
Locked