motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.88k stars 652 forks source link

Cameras randomly stop detecting motion #2562

Open zaphod24 opened 2 years ago

zaphod24 commented 2 years ago

I have been using Wansview Q5 cameras in addition to RPi0W (running motioneyeOS). As electrical storms have slowly taken out my RPi0W cameras (and because supply chain issues make them VERY expensive to replace), I have replaced everything with Q5 cameras. After changing over the last camera (I run 7 total atm, only 3 are setup for motion and recording), I am noticing that one or more cameras now randomly stops detecting motion. I can still view the camera feed on the motioneye web page and the Q5 has embedded time which is current, but no motion events and recording is triggered.

I am running dev motioneye on an Odroid N2 with Ubtunu 20.04.4. CPU usage is usually around 400% and there is around half of the total memory free or available for buffers.

Any idea what is causing motion to stop detecting? If I restart the motioneye service, everything works again for a while.

cryptage21 commented 2 years ago

I think I have the same problem. Videos are missing randomly for my 5 cameras.

In log files I only have :

Jul 20 23:34:17 motioneye motion: [9:nc9:Camera 3] [ERR] [NET] netcam_rtsp_handler_reconnect: norm: Reconnecting with camera....

But I don't think that's the root cause because it concerns only 2 cameras while my 5 cameras have the problem.

I don't know for how long I have this but it's clearly related to Python3 release and that's really annoying.

zaphod24 commented 2 years ago

I was seeing 400+ percent CPU utilization, so I've decided to cut it down to the 3 outside cameras I actually want alerts for, for now, and see if that eliminates the issue...

cryptage21 commented 2 years ago

That's not my case, no important CPU usage.

zaphod24 commented 2 years ago

Looks like mine may have been the result of the newer Q5 cameras changing from H264 to H265/HEVC. I wasn't detecting motion, just using the overview to monitor some rooms with the newer Q5s. I haven't had random motion detection stops for several days since removing the newer Q5 cameras from motioneye.

cryptage21 commented 2 years ago

Which motion version do you have ? I reverted back to Motion 4.3 from 4.4 (I didn't see before there were problems with this version).

It looks better... Will check in the next days.

zaphod24 commented 2 years ago

4.3

MichaIng commented 1 year ago

I'm about to add motion 4.4 support: #2462