HexaCone/linkfarmer.sh
2024-12-31 12:51:12 +01:00

71 lines
992 B
Bash
Executable File

#!/bin/bash
set -e ; set -u
source ./fonctions.sh
IDX=0
SPOOL="frames/Spool"
# -------------------------------------------------------
addfile ()
{
src="$1"
dstname=$(printf "%s/%05d.png" $SPOOL $IDX)
# echo "$src -> $dstname"
# ln --force --symbolic $src $dstname
cp -f $src $dstname
IDX=$(( IDX + 1 ))
}
# -------------------------------------------------------
linkfarm ()
{
SRC="frames/$1"
echo "linkfarm $SRC" | tee -a WS/log
local NBRE=36
for foo in $(seq 0 $NBRE)
do
addfile "$SRC/00000.png"
done
for src in "$SRC"/*
do
addfile $src
done
for foo in $(seq 0 $NBRE)
do
addfile "$SRC/00359.png"
done
sync
}
# -------------------------------------------------------
faire_le_titre ()
{
echo "faire le titre"
local NBRE=80
for foo in $(seq 0 $NBRE)
do
addfile "datas/cover.png"
done
}
# -------------------------------------------------------
faire_le_titre
ralentisseur 10
linkfarm topview
linkfarm passage
linkfarm scene
linkfarm essai
ff_encodage Spool full.mp4