more frobnicate again
This commit is contained in:
26
tools/mk_anim.sh
Executable file
26
tools/mk_anim.sh
Executable 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
10
tools/tagpicz.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
printf "==== %s ( %s ) ===\n" $0 $1
|
||||
|
||||
VALUE=$(( $RANDOM % 4096 ))
|
||||
|
||||
printf "random value = %03xH\n" ${VALUE}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user