koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
4.1k stars 243 forks source link

Motion sensing intermittently stops working #723

Closed wilsonjeff72 closed 1 year ago

wilsonjeff72 commented 1 year ago

I'm finding my cams routinely and randomly stop producing motion events. Sometimes it will stay active for over 12 hours, sometimes only a few hours. The only way I've found to fix this is to restart the RTSP Camera Plugin.

Your help is greatly appreciated.

Setup details:

Some images and logs are attached here. You can see in this latest example it died at 11:16 AM (it is currently 2:38 PM as I type this).

image

image

log_porch-cam.txt log_opencv.txt

wilsonjeff72 commented 1 year ago

I should also say I saw the same behavior when using PAM Diff, that's why I switched to OpenCV to see if it would help. It seems better at sensing motion but I still have the issue of motion detection dying randomly.

And to be clear, it never fixes itself no matter how long I wait.

koush commented 1 year ago

I should also say I saw the same behavior when using PAM Diff, that's why I switched to OpenCV to see if it would help. It seems better at sensing motion but I still have the issue of motion detection dying randomly.

And to be clear, it never fixes itself no matter how long I wait.

When its in a broken state, how many active motion detection sessions does video analysis report?

koush commented 1 year ago

provide a log from the python codecs plugin too please

wilsonjeff72 commented 1 year ago

Ok I'll have to wait for it to fail again to check active motion sessions in the failed state. When working it's 3.

Python Codecs log attached here.

log_pythoncodecs.txt

image

koush commented 1 year ago

can you grab the video analysis plugin logs too?

wilsonjeff72 commented 1 year ago

Sure: log_videoanalysis.txt

koush commented 1 year ago

Your video analysis version is old, please update. I think this was fixed last week.

wilsonjeff72 commented 1 year ago

Ok, giving that a try now, thanks.

koush commented 1 year ago

Was this resolved?

wilsonjeff72 commented 1 year ago

Maybe, 2 days now and it's been good