FloatImg4PythonBinding/Fonderie/essai.sh

52 lines
987 B
Bash
Raw Normal View History

2020-12-02 19:24:54 +01:00
#!/bin/bash
2021-01-08 22:57:45 +01:00
# ------------------------------------------------------------
liste_filtres ()
{
2020-12-08 15:51:07 +01:00
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"
2020-12-07 04:45:51 +01:00
rm /tmp/fstack*.png
2020-12-02 19:24:54 +01:00
2020-12-04 23:14:44 +01:00
for F in $FILTRES
do
2020-12-02 19:24:54 +01:00
2020-12-07 04:45:51 +01:00
I="/tmp/fstack-"$F".png"
2020-12-08 15:51:07 +01:00
echo ; echo ==== $I
2020-12-04 23:14:44 +01:00
./t -F $F
txt=$(printf "[%-10s]" $F)
2020-12-07 12:52:17 +01:00
convert foo.png -pointsize 24 -kerning 0 \
2020-12-07 04:45:51 +01:00
-fill Gray80 -undercolor Gray20 \
2020-12-04 23:14:44 +01:00
-font Courier-Bold \
2020-12-07 12:52:17 +01:00
-annotate +0+23 "$txt" \
2020-12-04 23:14:44 +01:00
$I
2020-12-02 19:24:54 +01:00
2020-12-04 23:14:44 +01:00
done
2021-01-08 22:57:45 +01:00
convert -delay 100 /tmp/fstack*.png foo.gif
}
# ------------------------------------------------------------
essai_single ()
{
MP4="/home/tth/Essais/FondageDePlomb/foo.mp4"
2020-12-04 23:14:44 +01:00
2021-01-08 22:57:45 +01:00
echo '*** essai single ***'
2020-12-08 15:51:07 +01:00
2021-01-08 22:57:45 +01:00
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
# ------------------------------------------------------------