Capture every minute

Add any particular hints or tricks you have found to help with your ZoneMinder experience.
Post Reply
theneb
Posts: 12
Joined: Thu Jul 19, 2007 4:48 pm

Capture every minute

Post by theneb »

Hi all, I'm looking to just use zoneminder to do a single capture from a camera every minute. Is there a command I can run with cron to achieve this? Or a full reference to what exactly each zm command does?

Cheers
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

just set the monitor to 0.016 fps or 1 fps and a frame skip of 59
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
theneb
Posts: 12
Joined: Thu Jul 19, 2007 4:48 pm

Post by theneb »

This works but we there are serious performance issues, mainly due to the fact that we require to record at realtime for security and one frame per minute for general users.
Defining two sources locks up the cpu and delays recording, ie the timer on the source will show that it's capturing every second but the image will refresh every 4 seconds.

Any ideas?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i dont understand, maybe a full explaination of what your tring to achieve?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
theneb
Posts: 12
Joined: Thu Jul 19, 2007 4:48 pm

Post by theneb »

I need to keep a realtime recording of the camera,
Then I also need to capture one frame every minute and put that on a website.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Have you tried making the second monitor (the one minute interval one) point at a zms stream of a single jpeg of the first and setting that to capture every minute?
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You can set a cron job on the web server to wget an image from the ZM machine with:
wget http://<your_IP_for_ZM>/cgi-bin/nph-zms?mode=single&monitor=2&scale=100

This will pull the current image from the zm monitorID 2.

You can also use zmu to pull one image on the ZM macine it self.

zmu -m2 -i [-U<username> -P<password>]
theneb
Posts: 12
Joined: Thu Jul 19, 2007 4:48 pm

Post by theneb »

Hi Cordel, cheers for the reply.
zmu works fine :D
slahm
Posts: 6
Joined: Sun Jan 13, 2008 6:30 pm

Post by slahm »

Does anyone have an example Cron Job to PUSH the image from zmu to an ftp server, as my connection is unreliable, and needs something to wake it up sometimes - it is a sat connection. They also do some very creative incoming shaping.

Any advice here?

Thanks in advance.

Peter Hunt :D
gpMobile
Posts: 6
Joined: Tue Apr 15, 2008 11:39 pm
Location: Mobile, AL USA

Capture every minute

Post by gpMobile »

When I enter http://<your_ip_for_zm>/cgi-bin/nph-zms?mode=single&monitor=2&scale=100
into my browser I get a blank page. Trying wget http://<your_ip_for_zm>/cgi-bin/nph-zms?mode=single&monitor=2&scale=100 just gives an empty file. Is there something else I am missing. I would love to get a capture every minute.

Program working fine otherwise. Just trying to fine tune out cloud shadows and fine tune in cars pulling into the driveway :) Using 1.23.2 on Ubuntu installed from a .deb package.

Thx.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

do you have auth enabled?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
gpMobile
Posts: 6
Joined: Tue Apr 15, 2008 11:39 pm
Location: Mobile, AL USA

Post by gpMobile »

Not yet.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

when you view a live image through the console, right click on the image ot view the path and post it here
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
gpMobile
Posts: 6
Joined: Tue Apr 15, 2008 11:39 pm
Location: Mobile, AL USA

Post by gpMobile »

Stupidity on my part. I figured it out while messing with zmu. It helps to address the right monitors. I have 3, 7 & 10 but I was relating them to my actual /dev/video devices which are 0, 1 & 2. It works now.

Thanks
Post Reply