more frobnicate again

This commit is contained in:
le vieux
2021-03-16 00:48:07 +01:00
parent 395d648c9d
commit 255643e55a
32 changed files with 187 additions and 195 deletions

26
tools/mk_anim.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
SPOOL="$HOME/TMP"
mkdir "$SPOOL"
NBRE=279
POVOPT=" -w768 -h576 +q9 +a -d "
SRCFILE="train.pov"
for idx in $(seq 0 $NBRE)
do
outfile=$(printf "%s/%04d.png" $SPOOL $idx)
horloge=$(echo "$idx / $NBRE" | bc -l)
printf "%-20s %.3f\n" $outfile $horloge
povray -i${SRCFILE} ${POVOPT} -K${horloge} -o${outfile}
done
ffmpeg -nostdin \
-loglevel error \
-y -r 30 -f image2 -i $SPOOL/%04d.png \
-c:v libx264 -pix_fmt yuv420p \
$SPOOL/foo.mp4

10
tools/tagpicz.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
printf "==== %s ( %s ) ===\n" $0 $1
VALUE=$(( $RANDOM % 4096 ))
printf "random value = %03xH\n" ${VALUE}