hints for set up ZM24.9 + raspi Motion

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
gdh
Posts: 4
Joined: Mon Sep 28, 2020 3:56 pm

hints for set up ZM24.9 + raspi Motion

Post by gdh »

hi folks,

i bought a raspberry pi 4 with 4gb and a raspi cam v2.1. on the PI i installey motioneye os with the following camera settings:
sgreg.JPG
sgreg.JPG (181.18 KiB) Viewed 3485 times
also I run zoneminder 34.9 on a server to capture movments (modect) with following settings:
sgreg.4JPG.JPG
sgreg.4JPG.JPG (74.31 KiB) Viewed 3484 times
sgreg.3JPG.JPG
sgreg.3JPG.JPG (74.04 KiB) Viewed 3484 times

I have several issues.
sometimes it is not recording but it should (not detecting)
if light goes on it detects (false positive)
if detecting correct motion video is smooth at the beginning but after 5 seconds it lags for like 3 seconds and continues afterwards smooth

appreciate help to those 3 issues
Is there is already a best practice for raspi 4 combined with the pi cam?
gdh
Posts: 4
Joined: Mon Sep 28, 2020 3:56 pm

Re: hints for set up ZM24.9 + raspi Motion

Post by gdh »

further screenshots to cam settings:
sgreg.2JPG.JPG
sgreg.2JPG.JPG (99.26 KiB) Viewed 3483 times
sgreg.5JPG.JPG
sgreg.5JPG.JPG (49.79 KiB) Viewed 3483 times
sgreg.6JPG.JPG
sgreg.6JPG.JPG (93.16 KiB) Viewed 3483 times
User avatar
burger
Posts: 390
Joined: Mon May 11, 2020 4:32 pm

Re: hints for set up ZM24.9 + raspi Motion

Post by burger »

gdh wrote: Mon Sep 28, 2020 4:08 pm sometimes it is not recording but it should (not detecting)
if light goes on it detects (false positive)
if detecting correct motion video is smooth at the beginning but after 5 seconds it lags for like 3 seconds and continues afterwards smooth
RPI is covered in http://wiki.zoneminder.com/Single_Board_Computers

You will want to set GPU_MEM. This may resolve some of the lag issues. If that doesn't work, lower resolution and or FPS. Disable JPEG saving, and use passthrough. FYI, it's best to do modect on a low res stream, and then record / nodect the high res stream. Especially with cpu limited devices such as RPI. You can do linked_monitors.

For your 1st and 2nd question, you can tune the zones see: https://wiki.zoneminder.com/Understandi ... or_Dummies It's not easy to get them to be 100% reliable.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
gdh
Posts: 4
Joined: Mon Sep 28, 2020 3:56 pm

Re: hints for set up ZM24.9 + raspi Motion

Post by gdh »

the 2 issues i can tackle with defining zones and playing around with the settings.

but i am lost regarding 2-4s of freezing picture after an event got captured.

i checked on motioneye os via webbrowser, the video is very smooth, no hanging etc.

so i think this issue is with zoneminder. for some reason the video hangs.
I downloaded it, just to make sure it is not the browser. The downloaded video is also hanging.

any idea?
User avatar
burger
Posts: 390
Joined: Mon May 11, 2020 4:32 pm

Re: hints for set up ZM24.9 + raspi Motion

Post by burger »

fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Post Reply