Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/bin/sh
mkdir $1
i=0
t=-1
if [ $# -eq 3 ]
then
t=$3
fi
while [ $i -ne $t ]
do
sleep $2
a=`date +%Y%m%d_%H%M%S`
#a=$i
scrot $1/$a.png
i=$[$i+1]
done
#!/bin/sh
mencoder mf://$1/*.png -mf w=$2:h=$3:fps=$4:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o $5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment