A Couple Of Questions

Forum for questions and support relating to the 1.30.x releases only.
Locked
Haselsmasher
Posts: 19
Joined: Thu Jul 06, 2017 1:35 am

A Couple Of Questions

Post by Haselsmasher »

If you've read my previous posts you may recall I've been working on an effort to alert people in the town where I live when trains are approaching.

I spoke with a friend and we've decided to make this effort open source. Our current plan is to use ZM for initial event identification, We hope to have other folks work on and contribute the necessary logic to do event analysis and pushing of information to a web app, as well as development of one or multiple "clients" that will grab the data and disseminate as appropriate.

I have two questions:

1. My current camera configuration is getting a TON of "Signal Reacquisition" events. On the one hand I could filter them out. But that feels like sweeping the dirt under the rug so no one can see it: It doesn't really solve any fundamental underlying issue. (FYI Source type is ffmpeg, I'm using rtsp to port 554; 640x354 resolution).

2. What is the underlying ZM module where motion detection/alerting is initiated? We're thinking/wondering if we can do something "early" in the motion detection sequence so as to get ASAP access to an event taking place - rather than waiting for an alert/event to be completed - we'll get more timely alerting. Thoughts on this?

BTW - my recent blog post looking for interested open source developers is here:
http://jimhconsulting.com/blog/seekingos

The project on GitHub can be found here:
https://github.com/Haselmaier/TrainAlert

Thanks!

Jim
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: A Couple Of Questions

Post by iconnor »

Can't speak to the first problem without seeing your logs. I suggest turning on debug logging and see what it says. Are you using UDP or TCP for your Remote Method? I might suggest trying TCP.

As to # 2, the function is in zm_monitor.cpp around line 1143, called bool Monitor::Analyse().
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: A Couple Of Questions

Post by bbunge »

You should look to train fans for your solution. There is a program called ATCS Monitor that may work. Keep i mind that railroad property is private property and roads cross tracks with permission of the railroad. PM me if you would like more input.
Bb
Haselsmasher
Posts: 19
Joined: Thu Jul 06, 2017 1:35 am

Re: A Couple Of Questions

Post by Haselsmasher »

Thanks to both of you.

bbunge - I know/assume the railroads get concerned about a variety of things like trespassing, etc. One of the things I like about my approach is that I'm basing it only on what can be seen. So I'm figuring that significantly reduces any concerns about being invasive on their operations or property. But I will PM you.

iconnor:

Below is a clip out of one of the log files. I saw messages like this when I was capturing at 1280x720 resolution, which is why the current resolution is reduced to what it is. I can see the warnings are offering suggestions on how to resolve this. Any suggestions based on your experience?

Thx.

Jim


07/25/17 20:14:02.184172 zma_m1[20195].WAR-zm_monitor.cpp/1429 [Signal: Lost]
07/25/17 20:14:02.467750 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or in
creasing ring buffer size]
07/25/17 20:14:02.768050 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or in
creasing ring buffer size]
07/25/17 20:14:03.085724 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or in
creasing ring buffer size]
07/25/17 20:14:03.870273 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or in
creasing ring buffer size]
07/25/17 20:14:04.407133 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or in
creasing ring buffer size]
07/25/17 20:14:04.725574 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or in
creasing ring buffer size]
07/25/17 20:14:05.043171 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:05.602554 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:05.878698 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:06.413165 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:06.706474 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:07.017564 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:07.326757 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:07.886159 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:08.679876 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:09.465796 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:10.069632 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:10.621528 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:10.922814 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:11.274069 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:11.574770 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:11.859122 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:12.493725 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:12.805983 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:13.098760 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:13.408020 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:13.717266 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:14.009947 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:14.327474 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:14.870087 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:15.648615 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:16.184445 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:16.727820 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:17.045493 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:17.580077 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:17.856190 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:18.417390 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:18.710670 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:19.028278 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:19.596012 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:19.872120 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:20.423360 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:20.734996 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:21.027603 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:21.328410 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:21.937397 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:22.730936 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:23.007990 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:23.317411 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:23.678503 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:24.037906 zma_m1[20195].WAR-zm_monitor.cpp/1324 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
07/25/17 20:14:24.605547 zma_m1[20195].WAR-zm_monitor.cpp/1429 [Signal: Reacquired]
Locked