2025-01-05 10:41:14 +11:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e ; set -u
|
|
|
|
|
|
|
|
IDX=0
|
|
|
|
SPOOL="frames/Spool"
|
|
|
|
SEQNAME="none"
|
|
|
|
TMP="WS/tmp.png"
|
2025-01-16 08:13:42 +11:00
|
|
|
FONTE="Helvetica-Bold"
|
|
|
|
TEXTCOL="yellow"
|
2025-01-12 12:33:39 +11:00
|
|
|
STROKOL="darkblue"
|
2025-01-05 10:41:14 +11:00
|
|
|
|
|
|
|
source tools/fonctions.sh
|
|
|
|
|
|
|
|
# -------------------------------------------------------
|
|
|
|
# /!\ this function just copy the
|
|
|
|
# file to the spool dir, so
|
|
|
|
# you can use it for tmp pics.
|
|
|
|
#
|
2025-01-16 08:13:42 +11:00
|
|
|
copy_a_file ()
|
2025-01-05 10:41:14 +11:00
|
|
|
{
|
|
|
|
src="$1"
|
|
|
|
dstname=$(printf "%s/%05d.png" $SPOOL $IDX)
|
|
|
|
# echo "$src -> $dstname"
|
|
|
|
# ln --force --symbolic $src $dstname
|
|
|
|
cp -f $src $dstname
|
|
|
|
IDX=$(( IDX + 1 ))
|
|
|
|
}
|
|
|
|
# -------------------------------------------------------
|
2025-01-16 08:13:42 +11:00
|
|
|
|
2025-01-05 10:41:14 +11:00
|
|
|
linkfarm ()
|
|
|
|
{
|
|
|
|
SRC="frames/$1"
|
|
|
|
echo "linkfarm $SRC" | tee -a WS/log
|
2025-01-16 08:13:42 +11:00
|
|
|
tools/plot-timing.sh $1
|
|
|
|
|
|
|
|
local NBRE=60
|
|
|
|
|
|
|
|
for foo in $(seq 0 $NBRE)
|
|
|
|
do
|
|
|
|
copy_a_file "WS/negatif.png"
|
|
|
|
done
|
2025-01-05 10:41:14 +11:00
|
|
|
|
|
|
|
for foo in $(seq 0 $NBRE)
|
|
|
|
do
|
2025-01-16 08:13:42 +11:00
|
|
|
copy_a_file "$SRC/00000.png"
|
2025-01-05 10:41:14 +11:00
|
|
|
done
|
|
|
|
|
|
|
|
for src in "$SRC"/*
|
|
|
|
do
|
2025-01-16 08:13:42 +11:00
|
|
|
copy_a_file $src
|
2025-01-05 10:41:14 +11:00
|
|
|
done
|
|
|
|
|
|
|
|
for foo in $(seq 0 $NBRE)
|
|
|
|
do
|
2025-01-16 08:13:42 +11:00
|
|
|
copy_a_file "$SRC/00359.png"
|
2025-01-05 10:41:14 +11:00
|
|
|
done
|
|
|
|
}
|
|
|
|
# -------------------------------------------------------
|
|
|
|
faire_le_titre ()
|
|
|
|
{
|
|
|
|
echo "faire le titre"
|
|
|
|
|
2025-01-12 12:33:39 +11:00
|
|
|
local NBRE=180
|
2025-01-16 08:13:42 +11:00
|
|
|
local SRC="frames/passage/00059.png"
|
|
|
|
local GRAY="/dev/shm/tmp-titre.png"
|
|
|
|
|
|
|
|
convert -colorspace gray -colors 27 $SRC $GRAY
|
|
|
|
|
2025-01-05 10:41:14 +11:00
|
|
|
for foo in $(seq 0 $NBRE)
|
|
|
|
do
|
2025-01-16 08:13:42 +11:00
|
|
|
Ypos=$(( -175 + foo ))
|
|
|
|
convert ${GRAY} \
|
2025-01-12 12:33:39 +11:00
|
|
|
-gravity north \
|
|
|
|
-font $FONTE \
|
|
|
|
-pointsize 172 \
|
|
|
|
-kerning 6 \
|
|
|
|
-fill $TEXTCOL \
|
|
|
|
-strokewidth 3 -stroke $STROKOL \
|
2025-01-08 00:33:26 +11:00
|
|
|
-annotate +0+${Ypos} "HexaCone" \
|
2025-01-05 10:41:14 +11:00
|
|
|
${TMP}
|
|
|
|
# identify ${TMP}
|
2025-01-16 08:13:42 +11:00
|
|
|
copy_a_file ${TMP}
|
2025-01-12 12:33:39 +11:00
|
|
|
printf "."
|
2025-01-05 10:41:14 +11:00
|
|
|
done
|
2025-01-12 12:33:39 +11:00
|
|
|
echo
|
2025-01-05 10:41:14 +11:00
|
|
|
}
|
|
|
|
# -------------------------------------------------------
|
|
|
|
faire_la_fin ()
|
|
|
|
{
|
2025-01-16 08:13:42 +11:00
|
|
|
local NBRE=180
|
|
|
|
datetime=$(LANG=fr date -u +"%Y/%m/%d")
|
2025-01-08 00:33:26 +11:00
|
|
|
echo $datetime | tee -a WS/log
|
|
|
|
|
2025-01-05 10:41:14 +11:00
|
|
|
for foo in $(seq 0 $NBRE)
|
|
|
|
do
|
2025-01-16 08:13:42 +11:00
|
|
|
Ypos=$(( foo + 20 ))
|
2025-01-05 10:41:14 +11:00
|
|
|
convert "WS/negatif.png" \
|
|
|
|
-gravity north \
|
2025-01-08 00:33:26 +11:00
|
|
|
-font $FONTE \
|
|
|
|
-pointsize 86 \
|
2025-01-12 12:33:39 +11:00
|
|
|
-kerning 6 \
|
|
|
|
-fill $TEXTCOL \
|
|
|
|
-strokewidth 2 -stroke $STROKOL \
|
2025-01-16 08:13:42 +11:00
|
|
|
-annotate +0+${Ypos} \
|
|
|
|
"un film de\ntTh des Bourtoulots" \
|
2025-01-05 10:41:14 +11:00
|
|
|
-pointsize 48 \
|
2025-01-08 00:33:26 +11:00
|
|
|
-strokewidth 1 \
|
|
|
|
-gravity south \
|
2025-01-16 08:13:42 +11:00
|
|
|
-annotate +0+170 "${datetime}" \
|
2025-01-05 10:41:14 +11:00
|
|
|
${TMP}
|
|
|
|
# identify ${TMP}
|
2025-01-16 08:13:42 +11:00
|
|
|
copy_a_file ${TMP}
|
2025-01-12 12:33:39 +11:00
|
|
|
printf "."
|
2025-01-05 10:41:14 +11:00
|
|
|
done
|
2025-01-12 12:33:39 +11:00
|
|
|
echo
|
2025-01-05 10:41:14 +11:00
|
|
|
}
|
|
|
|
# -------------------------------------------------------
|
|
|
|
|
2025-01-08 00:33:26 +11:00
|
|
|
figlet "Link farmer"
|
|
|
|
|
2025-01-12 12:33:39 +11:00
|
|
|
rm -f frames/Spool/*.png
|
2025-01-05 10:41:14 +11:00
|
|
|
|
2025-01-16 08:13:42 +11:00
|
|
|
# tools/plot-timing.sh
|
2025-01-05 10:41:14 +11:00
|
|
|
faire_le_titre
|
|
|
|
|
|
|
|
linkfarm hexabenz
|
2025-01-16 08:13:42 +11:00
|
|
|
linkfarm hexacone
|
2025-01-08 00:33:26 +11:00
|
|
|
linkfarm escadrille
|
2025-01-05 10:41:14 +11:00
|
|
|
linkfarm topview
|
|
|
|
linkfarm passage
|
|
|
|
linkfarm scene
|
2025-01-08 00:33:26 +11:00
|
|
|
linkfarm orbite
|
|
|
|
|
2025-01-12 12:33:39 +11:00
|
|
|
linkfarm essai
|
2025-01-05 10:41:14 +11:00
|
|
|
|
|
|
|
tools/plot-timing.sh
|
|
|
|
faire_la_fin
|
|
|
|
|
|
|
|
ff_encodage Spool full.mp4
|
|
|
|
|
2025-01-16 08:13:42 +11:00
|
|
|
nb=$(( $IDX - 1 ))
|
|
|
|
echo "linkfarmed $nb files" | tee -a WS/log
|
2025-01-12 12:33:39 +11:00
|
|
|
|
2025-01-05 10:41:14 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|