FloatImg/Fonderie/essai.sh

52 lines
987 B
Bash
Executable File

#!/bin/bash
# ------------------------------------------------------------
liste_filtres ()
{
FILTRES="5:6:13 15 2:2 5:9:8 4:25 8:13:13:7 10:1 25:25:25:25 13:14:13"
rm /tmp/fstack*.png
for F in $FILTRES
do
I="/tmp/fstack-"$F".png"
echo ; echo ==== $I
./t -F $F
txt=$(printf "[%-10s]" $F)
convert foo.png -pointsize 24 -kerning 0 \
-fill Gray80 -undercolor Gray20 \
-font Courier-Bold \
-annotate +0+23 "$txt" \
$I
done
convert -delay 100 /tmp/fstack*.png foo.gif
}
# ------------------------------------------------------------
essai_single ()
{
MP4="/home/tth/Essais/FondageDePlomb/foo.mp4"
echo '*** essai single ***'
rm /tmp/x8/*.png
time ./t -v -F rnd48b:water:liss2x2 -x
ffmpeg -nostdin \
-loglevel error \
-y -r 30 -f image2 -i /tmp/x8/%05d.png \
-c:v libx264 -pix_fmt yuv420p \
$MP4
}
# ------------------------------------------------------------
# MAIN
essai_single
# ------------------------------------------------------------