Re: taking pictures at certain times

Rick Miles <[email protected]> Mon, 23 Oct 2006 18:42:45 +1000
Newsgroups gmane.org.user-groups.mlug.main
Message-ID <[email protected]>
Leon, I picked up a cheap Logitech QuickCam Express and had a play with this 
over the weekend.

The application xwatv comes with some CLI aps that access webcams for saving 
video to disk, streaming video on a network and also for saving jpeg images 
to disk.

Using the below script I saved a bunch of avi clips to disk

#!/bin/bash
COUNT=0
until [ $COUNT -eq 60 ]
do
   streamer -q -c /dev/video1 -f rgb24 -r 24 -t 00:00:20 -o /videos/test/`date 
+%m%d%H%M`.avi 
   sleep 60
   COUNT=$(( $COUNT + 1 ))
done

The streamer command does the work. It'd be smarter to run it as a cron job. 
In this script a 20 sec video is made every 60 seconds Each file gets a 
unique date/time name. 

QC Express is a low end webcam if you went this route you'd need to buy 
something better for long distance focus and greater pixels.

Contact me offline if you want more info

Leon Blakeley is a darn nice person I don't care what anybody says!
> Hi All,
>
> Is there someone clever enough to get a linux box to capture still pics
> from a web cam hourly during daylight hours for months?
>
> VICROADS is starting to build a freeway past me place and I think it
> would be good to record the progress!
>
> I am not clever enough to make this happen so if it's possible and you
> can help, email me at [email protected] or call on one of the
> numbers below!
>
> Cheers
>
>
>
>
>
> Leon Blakeley
>
> CFA Communications
>
>
>
> CFA
>
> 4 Lakeside Drive
>
> East Burwood Vic. 3151
>
>
>
> Telephone: (03) 9262 8400
>
> Facsimile:   (03) 9262 8383
>
> Mobile:       0407 336 272
>
>
>
> --
> CAUTION - This message is intended for the use of the individual or
> entity named above and may contain information that is confidential or
> privileged.  If you are not the intended recipient of this message you
> are hereby notified that any use, dissemination, distribution or
> reproduction of this message is prohibited and that you must not take
> any action in reliance on it.  If you have received this communication
> in error, please notify CFA immediately and destroy the original
> message.
> --
> This email has been swept with a Anti-Virus Protection System.

-- 
Cheers,

Rick Miles

Movement stopped is no movement,
and rest set in motion is no rest.

Written on Sweetmorn, the 4th of The Aftermath, 3172 
http://www.turtlespond.net/