Bibliothèque de traitements d'images en virgule flottante. http://la.buvette.org/photos/cumul/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
594 B

#!/bin/bash
src=/dev/shm/foo.fimg
out=out.fimg
device=/dev/video2
maxi=59
W="320"
H="240"
1 year ago
grabopt=" -s ${W}x${H} -vv -u -d $device -p 0 -n 30
0 -c none "
mkdir /tmp/V
rm /tmp/V/*
G=$(printf "%dx%d+0+0" $W $H)
for foo in $(seq 0 $maxi)
do
echo ; echo
2 years ago
grabvidseq -$grabopt -o $src
1 year ago
fval=$(echo "$foo / $maxi * 13.56636" | bc -l)
echo ; echo $foo ' => ' $fval
1 year ago
./t -vv -k $fval -o $out plasma $src
# fimgstats $out
dst=$(printf "/tmp/V/%03d.png" $foo)
echo $dst
montage $src $out -tile 1x2 -geometry $G $dst
1 year ago
sleep 55
done
convert -delay 10 /tmp/V/*.png foo.gif
rm /tmp/V/*