update ugly vidz maker

This commit is contained in:
Tonton Th
2026-06-18 01:05:48 +02:00
parent b2a54ecaca
commit cb0b4aedf1

View File

@@ -4,23 +4,26 @@ SPOOL="$HOME/TMP"
mkdir "$SPOOL"
NBRE=599
POVOPT=" -w1280 -h960 +q9 -a -d "
POVOPT=" Declare=Nbre=${NBRE} -w11152 -h900 +q9 +a -d "
SRCFILE="train.pov"
for idx in $(seq 0 $NBRE)
do
outfile=$(printf "%s/%04d.png" $SPOOL $idx)
outfile=$(printf "%s/pj-%04d.png" $SPOOL $idx)
horloge=$(echo "$idx / $NBRE" | bc -l)
printf "%-20s %.4f\n" $outfile $horloge
povray -i${SRCFILE} ${POVOPT} -K${horloge} -o${outfile}
sleep 3m
done
ffmpeg -nostdin \
-loglevel error \
-y -r 25 -f image2 -i $SPOOL/%04d.png \
-metadata artist='tTh des Bourtoulots' \
-y -r 30 -f image2 -i $SPOOL/pj-%04d.png \
-c:v libx264 -pix_fmt yuv420p \
$SPOOL/foo.mp4
povjouets.mp4