2020-10-06 22:01:48 +11:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
src=foo.fimg
|
2020-10-08 00:26:34 +11:00
|
|
|
maxi=49
|
|
|
|
grabopt=" -s 1280x720 -vv -p 0 -n 200 -c none "
|
2020-10-07 20:32:23 +11:00
|
|
|
|
2020-10-08 00:26:34 +11:00
|
|
|
mkdir V
|
2020-10-06 22:01:48 +11:00
|
|
|
|
|
|
|
for foo in $(seq 0 $maxi)
|
|
|
|
do
|
|
|
|
|
2020-10-08 00:26:34 +11:00
|
|
|
echo
|
|
|
|
|
2020-10-07 01:30:42 +11:00
|
|
|
grabvidseq -$grabopt -o $src
|
|
|
|
|
2020-10-06 22:01:48 +11:00
|
|
|
fval=$(echo "$foo / $maxi" | bc -l)
|
2020-10-07 20:32:23 +11:00
|
|
|
./t -k $fval -v ctr2x2 $src
|
2020-10-06 22:01:48 +11:00
|
|
|
|
|
|
|
echo $foo $fval
|
|
|
|
|
2020-10-08 00:26:34 +11:00
|
|
|
nom=$(printf "V/%03d.pnm" $foo)
|
2020-10-06 22:01:48 +11:00
|
|
|
cp out.pnm $nom
|
|
|
|
echo $nom
|
|
|
|
|
|
|
|
done
|
|
|
|
|
2020-10-08 00:26:34 +11:00
|
|
|
convert -delay 20 V/*.pnm foo.gif
|