FloatImg/funcs/vroum.sh
2020-10-07 15:26:34 +02:00

28 lines
347 B
Bash
Executable File

#!/bin/bash
src=foo.fimg
maxi=49
grabopt=" -s 1280x720 -vv -p 0 -n 200 -c none "
mkdir V
for foo in $(seq 0 $maxi)
do
echo
grabvidseq -$grabopt -o $src
fval=$(echo "$foo / $maxi" | bc -l)
./t -k $fval -v ctr2x2 $src
echo $foo $fval
nom=$(printf "V/%03d.pnm" $foo)
cp out.pnm $nom
echo $nom
done
convert -delay 20 V/*.pnm foo.gif