|
2010-02-23
, 22:50
|
Posts: 125 |
Thanked: 108 times |
Joined on Feb 2010
|
#12
|
#!/usr/bin/perl -w # A simple intervalometer for the Nokia N900. # Author: Ricardo Mendonca Ferreira - ric@mpcnet.com.br # http://talk.maemo.org/showthread.php?t=38275 # This script requires gstreamer installed on your N900. # See the link above for more info. # Run this script on an X Terminal in your device with: # perl intervalometer.pl # 2009.12.17 First version. # 2009.12.24 Better gstreamer pipeline; more options, with better descriptions. # ############ rm changes rudolf.mittelmann@artm-friends.at # 2010-02-22 Try to use better file naming to avoid name clashes - new var jetztstr use strict; use POSIX qw(strftime); #---- CONFIG SECTION ---- [BEGIN] ---- my ($x,$y) = (1600, 1200); # image resolution - try (2592, 1968) my $cam = 0; # camera: 0 = back, 1 = front my $dir = '/home/user/MyDocs/interval'; # folder where images will be saved my $max = 10; # total number of images to take my $delay = 5; # interval between pictures #---- CONFIG SECTION ---- [END] ---- die "$dir not found!\n" if !-d $dir; my $jetztstr = strftime ("%Y-%m-%d_%H-%M-%S_", localtime()); my $gst = "/usr/bin/gst-launch v4l2camsrc device=/dev/video$cam num-buffers=1 ! ffmpegcolorspace ! video/x-raw-yuv,width=$x,height=$y ! jpegenc ! filesink location="; my $num=0; print "Intervalometer started - will take $max pictures at $x x $y\n"; while ($num < $max) { $num=sprintf'%05d',$num; `$gst$dir/$jetztstr$num.jpg`; printf "saved %d of %d", $num+1, $max; $num++; if ($num < $max) { print " - sleeping $delay sec."; sleep $delay; } print "\n"; }
The Following User Says Thank You to rm53 For This Useful Post: | ||
|
2010-02-24
, 03:05
|
Posts: 89 |
Thanked: 6 times |
Joined on Feb 2010
|
#13
|
|
2010-02-24
, 11:21
|
Posts: 59 |
Thanked: 71 times |
Joined on Sep 2009
@ Brazil
|
#14
|
The Following 4 Users Say Thank You to Ricardo For This Useful Post: | ||
|
2010-02-24
, 11:36
|
Posts: 550 |
Thanked: 110 times |
Joined on Aug 2006
|
#15
|
The Following User Says Thank You to Rocketman For This Useful Post: | ||
|
2010-02-24
, 12:03
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#16
|
|
2010-02-24
, 12:11
|
Posts: 101 |
Thanked: 11 times |
Joined on Jan 2010
|
#17
|
Very neat! People are only just beginning to take advantage of the N900 as a programmable camera platform. I would love to see a more advanced GUI camera application than the default Nokia one with more granular controls, stuff like HDR image creation, panoramic stitching, time lapse video, etc. This sort of thing would be a really great demo to the public at large of the power of an open phone platform.
|
2010-02-24
, 12:18
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#18
|
|
2010-02-24
, 13:42
|
Posts: 356 |
Thanked: 172 times |
Joined on Jan 2010
@ Canada
|
#19
|
I noticed a lot of people are using this script (with many changes and additions), so I plan to make a Qt version of it. Please feel free to give other suggestions you would like to see in this program.
|
2010-02-24
, 15:44
|
Posts: 47 |
Thanked: 1 time |
Joined on Feb 2010
|
#20
|
I was very impressed by this system:
A 2.5 gram camera (plus battery, bringing it to 5 grams) mounted on a light foam remote control airplane. Extremely cool!
video, camera sales page
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!