Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Log In
Found the internet!

ZoneMinder

r/ZoneMinder

3
Posted by2 days ago

I've been tinkering with four 4k Lorex cameras hooked to a Zoneminder system running on an 8 core AMD APU machine w/16GB RAM booting Debian and two 4 TB disks for capture storage. ZM was installed natively via the Debian guide, no docker involved. ZM runs, the cameras work great, I have them all connected, configured and displaying in Zoneminder as monitors.

I am having trouble trying to figure out mocord with 4k cameras. I initially set them all to mocord and the zmc processes ate CPU and RAM until they fell over from OOM in mere seconds. Reading up on this the fix is to use the cameras low resolution substream for motion analysis and trigger recording the 4k stream to disk. Though I am not sure how this is accomplished. So far I have:

  • Configured two monitors for each camera: the 4k stream and the 720p substream.

  • Configure the substream to modect with analysis enabled.

  • Configure the 4k stream to nodect with analysis and decoding enabled as well as setting the substream as a linked monitor to trigger recording.

I configured one camera like this and it doesn't appear to trigger any recording. In addition, the substream camera shows up in the montage displaying the same camera twice. I also still see heavy memory usage with /dev/shmem consuming 7GB but ZM reports it is only using 475MB of that 7GB or 6% which seems like a waste of RAM. Htop shows my 16 GB machine is sitting at 14.1GB mem and 2.75GB swap and all the zmc processes at the top of the memory use list.

I still have more research to do but any help to getting these things configured to record without filling up RAM or eating CPU until the machine falls over is greatly appreciated. I also just built a second system at another location using the same cameras but running on an older 12 core server with 32GB, same install procedure though it only monitors, no recording yet.

3
0 comments
4
5
Posted by9 days ago
5
2 comments
2
Posted by10 days ago
2
0 comments
5
Posted by14 days ago
5
11 comments
2
Posted by18 days ago

https://gist.github.com/DanielBorgesOliveira/d3e578e2b677245cec550e965eae1755

I'm trying to get this script to run with Zoneminder 1.36; it sends and initilal mp4 file (which doesn't play but indicates a motion event has been triggered) but doesn't send the followup file with the video of the event which was recorded.

i) I can only think that the file naming convension of 1.36 has changed and isn't date and time created as indicated in the script but is follows a sequential numbering convention - 17-video.mp4, 18-video,mp4 etc.

ii) can anyone suggest a alteration to this script which would follow the new sequential naming convension? (the number direclty relates to the files the images and video are saved to)

ie. /var/cache/zoneminder/events/1/2023-03-04/17/17-video.mp4

FileName='Video_'+str(Time.day)+"-"+str(Time.month)+\

"-"+str(Time.year)+"_"+str(Time.hour)+"-"+\
str(Time.minute)+"-"+str(Time.second)+".mp4"

Thanks in advance

2
4 comments

About Community

ZoneMinder, an Open Source Linux CCTV Video Surveillance System.
Created Sep 13, 2013

2.9k

Members

6

Online

Moderators

Moderator list hidden. Learn More