FloatImg4PythonBinding/funcs/vroum.sh

35 lines
506 B
Bash
Raw Normal View History

2020-10-06 13:01:48 +02:00
#!/bin/bash
2020-10-09 01:26:07 +02:00
src=/dev/shm/foo.fimg
out=out.fimg
maxi=49
2020-10-09 01:26:07 +02:00
W="640"
H="480"
2020-10-26 18:49:37 +01:00
grabopt=" -s 640x480 -vv -p 0 -n 500 -c cos01 "
2020-10-07 11:32:23 +02:00
2020-10-09 01:36:04 +02:00
mkdir /tmp/V
2020-10-06 13:01:48 +02:00
2020-10-09 01:26:07 +02:00
G=$(printf "%dx%d+0+0" $W $H)
2020-10-06 13:01:48 +02:00
for foo in $(seq 0 $maxi)
do
2020-10-10 01:26:42 +02:00
echo ; echo
2020-10-07 15:26:34 +02:00
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-26 16:45:36 +01:00
./t -vv -k 0.333 -o $out displace $src
# fimgstats $out
2020-10-06 13:01:48 +02:00
2020-10-26 16:45:36 +01:00
echo $foo ' => ' $fval
2020-10-09 01:36:04 +02:00
dst=$(printf "/tmp/V/%03d.png" $foo)
echo $dst
montage $src $out -tile 1x2 -geometry $G $dst
2020-10-06 13:01:48 +02:00
done
convert -delay 10 /tmp/V/*.png foo.gif