1337bl0g

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

Posts Tagged ‘webcam time lapse

Webcam Time Lapse – Full Automate Windows Solution

leave a comment »



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

software
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

user
enter_username_here
enter_password_here
binary
delete timelapse.flv
put timelapse.flv
bye

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