timelapse

Timelapse Script - WIP

Submitted by jean-paul on Sat, 11/16/2013 - 17:33
#!/bin/bash
#
#  Uses uvccapture
 
#  The ultimate destination for the shot.
destination=/home/fathead/Downloads/beans-tl
last_file=$(ls -tr | tail -1 | cut -c 1-5)
str_last_file="$(echo $last_file | sed 's/0*//')"
new_file=`printf "%05d" $(($str_last_file+1))`
filename=${new_file}.jpg
jpg_qual=100
delay_minutes=5
delay=$(($delay_minutes*60))
#delay=($delay_minutes)
#delay=15
width=$((1920))