1337stuff – soft & hardware – networks – hacks – diy-stuff – cars – japan Oo

Webcam Time Lapse – Full Automate Windows Solution

leave a comment »

script for generating .avi + .flv timelapse from webcam
full automated
windows :)

mencoder (extract all files from mencoder-download your images folder*)
webcam software (webcamxp in my example)

webcam software configuration
*configure your webcam software that it outputs .jpg-images to a folder and chose your interval (i use 3mins)

i configured @ webcamxp – max. files = 200 (if you use an other webcam software you have to delete files via own script)

webcamxp autogallery tags image like this: gallery_1_12345678_123456_0.jpg

.bat file
for 24/7 update i execute a simple .bat file via a daily-task – i also created a .src file for configuring fpt-upload.

  1. mencoder “mf://gallery_1_*.jpg” -mf fps=10 -o timelapse.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=500
  2. mencoder -forceidx -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=360:240 -o timelapse.flv timelapse.avi
  3. ftp -n -s:ftp.src myftp.com

in #1 all image files named gallery_1_*****.jpg will get converted to a avi movie (timelapse.avi) – ftp/500kbs/avi – eg. for local streaming – you can change bitrate / fps
@ #2 avi -> flv transcoding
@#3 flv-file get’s upped to my ftp server via following script ftp.src

delete timelapse.flv
put timelapse.flv

this script deletes old .flv and uploads the fresh generated one

now you can link your timelapse recording to your blog/homepage… (for example with JW)


Written by iq1337

April 16, 2010 at 1:04 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: