35 lines
506 B
Bash
Executable File
35 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
|
|
src=/dev/shm/foo.fimg
|
|
out=out.fimg
|
|
|
|
maxi=49
|
|
W="640"
|
|
H="480"
|
|
grabopt=" -s 640x480 -vv -p 0 -n 500 -c cos01 "
|
|
|
|
mkdir /tmp/V
|
|
|
|
G=$(printf "%dx%d+0+0" $W $H)
|
|
|
|
for foo in $(seq 0 $maxi)
|
|
do
|
|
|
|
echo ; echo
|
|
|
|
grabvidseq -$grabopt -o $src
|
|
|
|
fval=$(echo "$foo / $maxi" | bc -l)
|
|
./t -vv -k 0.333 -o $out displace $src
|
|
|
|
# fimgstats $out
|
|
|
|
echo $foo ' => ' $fval
|
|
dst=$(printf "/tmp/V/%03d.png" $foo)
|
|
echo $dst
|
|
montage $src $out -tile 1x2 -geometry $G $dst
|
|
|
|
done
|
|
|
|
convert -delay 10 /tmp/V/*.png foo.gif
|