zoneminder (?randomly) stops capturing on one monitor

Forum for questions and support relating to the 1.28.x releases only.
Locked
odror
Posts: 12
Joined: Sat Feb 15, 2014 8:53 pm

zoneminder (?randomly) stops capturing on one monitor

Post by odror »

OS: ubuntu 14.10
vlc verison: 2.2.0+ppa2.4
Camera: Microseven M7D12 960p Onvif 2.8 mm Wide Angle 1/3"
Source protocol: rtsp://admin:password@192.168.xx.xx:554/ipcam_h264.sdp
Source type: Libvlc

Randomly the attached monitor (monitor-1) stops capturing. In the log file there is this change from 20fps to 1fps.
I do not have this issue if I use ffmpeg. (with ffmpeg I have more serious issue, this is why it is not used)
2014-11-08 22:18:24.080391 zmc_m1 3735 INF Monitor-1: 961000 - Capturing at 1.00 fps zm_monitor.cpp 2899
2014-11-08 22:01:44.030471 zmc_m1 3735 INF Monitor-1: 960000 - Capturing at 1.00 fps zm_monitor.cpp 2899
2014-11-08 21:45:04.101200 zmc_m1 3735 INF Monitor-1: 959000 - Capturing at 1.00 fps zm_monitor.cpp 2899
2014-11-08 21:28:24.111723 zmc_m1 3735 INF Monitor-1: 958000 - Capturing at 1.00 fps zm_monitor.cpp 2899
2014-11-08 21:11:44.029337 zmc_m1 3735 INF Monitor-1: 957000 - Capturing at 1.00 fps zm_monitor.cpp 2899
2014-11-08 20:55:04.015242 zmc_m1 3735 INF Monitor-1: 956000 - Capturing at 1.25 fps zm_monitor.cpp 2899
2014-11-08 20:41:46.351318 zmc_m1 3735 INF Monitor-1: 955000 - Capturing at 20.00 fps zm_monitor.cpp 2899
2014-11-08 20:40:56.396503 zmc_m1 3735 INF Monitor-1: 954000 - Capturing at 20.00 fps zm_monitor.cpp 2899
2014-11-08 20:40:06.440080 zmc_m1 3735 INF Monitor-1: 953000 - Capturing at 20.00 fps zm_monitor.cpp 2899
2014-11-08 20:39:16.416851 zmc_m1 3735 INF Monitor-1: 952000 - Capturing at 20.00 fps zm_monitor.cpp 2899
2014-11-08 20:38:26.461548 zmc_m1 3735 INF Monitor-1: 951000 - Capturing at 20.00 fps
This is not a camera issue. The camera keeps working.

Any help will be appreciated.

If not a solution, can someone suggest a workaround where I will be restarting capturing on that camera every few hours ( without restarting zoneminder)
maybe a cron job to do that until a fix is found.

Thanks
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zoneminder (?randomly) stops capturing on one monitor

Post by bbunge »

I have noticed this with libvlc. But, today I tested a Foscam FI8905E with libvlc connecting to the camera with http. And the camera worked all day in mocord with no issues. I too was using Ubuntu 14.10 with ZM 1.28.0 with the VLC "extras" installed. I have a couple of h.264 cameras on my production system and will try them with libvlc tomorrow after installing the next two cameras. Have to pull cable so I may not get to the testing. Just hope it does not take too long to drill through the brick & block walls!

For a work around try ffmpeg with the same settings

The Microseven support site shows three streams for the M7B15/M7B12 camera:

RTSP://192.168.1.201/11 - primary stream
RTSP://192.168.1.201/12 - secondary stream
RTSP://192.168.1.201/13 - third stream

Do these work in the desktop version of VLC?

bb
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zoneminder (?randomly) stops capturing on one monitor

Post by bbunge »

This is to confirm that the two Foscam FI8905E cameras are working very well under ZM 1.28.0 on Ubuntu 14.04. They have been running for two days without a hiccup! Now, with that said, I tried two h.264 cameras with no success. Both were set up to use ffmpeg and have been running for well over a year with no issues. The cameras ran with libvlc for a while then stopped recording. I have some other issues with PHP settings and have not been able to export the log. So it may be a while before I can get back to getting some specifics...

bb
odror
Posts: 12
Joined: Sat Feb 15, 2014 8:53 pm

Re: zoneminder (?randomly) stops capturing on one monitor

Post by odror »

I have no issues with a similar foscam camera on http.

The issue is specific to the microseven camera using libvlc on rtsp.
I have a workaround that seems to work well. I restart the zmc daemon every 12 hours.

#!/bin/sh
/usr/bin/zmdc.pl stop zmc -m 1
sleep 0.2
/usr/bin/zmdc.pl start zmc -m 1


I cannot use ffmpeg on any of my h264 cameras. I have streaking artifacts often.
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zoneminder (?randomly) stops capturing on one monitor

Post by bbunge »

Those two Foscam cameras? Took them off of libvlc tonight and am running them as remote. One had too much delay in displaying video. Back to the drawing board!

For your streaking cameras try lowering the frame rate and key frame interval. Force TCP (?tcp option at the end of the source line) and use a lower resolution.

bb
Locked