HexaCone/linkfarmer.sh

71 lines
992 B
Bash
Raw Normal View History

2024-12-29 14:56:10 +11:00
#!/bin/bash
set -e ; set -u
source ./fonctions.sh
IDX=0
SPOOL="frames/Spool"
2024-12-31 22:51:12 +11:00
# -------------------------------------------------------
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 ))
}
# -------------------------------------------------------
2024-12-29 14:56:10 +11:00
linkfarm ()
{
SRC="frames/$1"
echo "linkfarm $SRC" | tee -a WS/log
2024-12-31 22:51:12 +11:00
local NBRE=36
for foo in $(seq 0 $NBRE)
do
addfile "$SRC/00000.png"
done
2024-12-29 14:56:10 +11:00
for src in "$SRC"/*
do
2024-12-31 22:51:12 +11:00
addfile $src
done
for foo in $(seq 0 $NBRE)
do
addfile "$SRC/00359.png"
2024-12-29 14:56:10 +11:00
done
sync
}
2024-12-31 22:51:12 +11:00
# -------------------------------------------------------
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
2024-12-29 14:56:10 +11:00
linkfarm topview
linkfarm passage
linkfarm scene
linkfarm essai
ff_encodage Spool full.mp4