2020-10-06 13:01:48 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
src=foo.fimg
|
2020-10-07 11:32:23 +02:00
|
|
|
maxi=179
|
|
|
|
grabopt=" s 320x240 -vv -p 0 -n 100 -c none "
|
|
|
|
|
2020-10-06 13:01:48 +02:00
|
|
|
|
|
|
|
for foo in $(seq 0 $maxi)
|
|
|
|
do
|
|
|
|
|
2020-10-06 16:30:42 +02:00
|
|
|
grabvidseq -$grabopt -o $src
|
|
|
|
|
2020-10-06 13:01:48 +02:00
|
|
|
fval=$(echo "$foo / $maxi" | bc -l)
|
2020-10-07 11:32:23 +02:00
|
|
|
./t -k $fval -v ctr2x2 $src
|
2020-10-06 13:01:48 +02:00
|
|
|
|
|
|
|
echo $foo $fval
|
|
|
|
|
|
|
|
nom=$(printf "v_%03d.pnm" $foo)
|
|
|
|
cp out.pnm $nom
|
|
|
|
|
|
|
|
echo $nom
|
|
|
|
|
|
|
|
done
|
|
|
|
|
2020-10-07 11:32:23 +02:00
|
|
|
convert -delay 20 v_*.pnm foo.gif
|