Skip to content

Instantly share code, notes, and snippets.

@chaoxu
Created August 25, 2010 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaoxu/548639 to your computer and use it in GitHub Desktop.
Save chaoxu/548639 to your computer and use it in GitHub Desktop.
#!/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