Winter is comimg at Bourtoulots
This commit is contained in:
1 parent
d9df971110
commit
2f97671726
9 files changed
+20
-17
No files matched your search
Executable
+71
@@ -0,0 +1,71 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e ; set -u
|
||||
|
||||
source tools/config.sh
|
||||
source tools/fonctions.sh
|
||||
|
||||
SEQNAME="$1"
|
||||
START=0
|
||||
|
||||
if [ $# == 2 ]
|
||||
then
|
||||
START=$2
|
||||
fi
|
||||
|
||||
echo "$0 $SEQNAME from $START" >> WS/log
|
||||
|
||||
DIMS="-W$Img_Width -H$Img_Height"
|
||||
NBFR=" Declare=NbFrames=$NBFRAMES "
|
||||
POVOPT="+q9 +A0.02 -d ${DIMS} ${NBFR} -WT4"
|
||||
echo $NBFR "frames."
|
||||
echo $POVOPT ; echo ; sleep 2
|
||||
|
||||
TMPIMG=/dev/shm/${SEQNAME}-tmp.png
|
||||
# echo "TMPIMG" ${TMPIMG} | tee -a WS/log # DEBUG !
|
||||
INC=1
|
||||
for frame in $(seq $START $INC $((NBFRAMES-1)))
|
||||
do
|
||||
|
||||
img=$(printf "frames/%s/%05d.png" $SEQNAME $frame)
|
||||
debut=$(date +%s)
|
||||
set +e
|
||||
povray ${POVOPT} +K${frame} -i${SEQNAME}.pov -o${TMPIMG}
|
||||
err=$?
|
||||
if [ $err != 0 ] ; then
|
||||
echo "$SEQNAME fail $frame" >> WS/log
|
||||
mogrify -colorspace gray -blur 5x5 -colors 8 $img
|
||||
visual_sleep "render fail" 12
|
||||
continue
|
||||
fi
|
||||
set -e
|
||||
sqn=$(echo ${SEQNAME} | tr [a-z] [A-Z])
|
||||
txt=$(printf "%03d" ${frame} | tr '01' 'ol')
|
||||
# echo $frame $img $txt
|
||||
convert ${TMPIMG} \
|
||||
-font Courier-Regular \
|
||||
-pointsize 52 \
|
||||
-kerning 4 \
|
||||
-strokewidth 1 \
|
||||
-fill ${STROKOL} -stroke ${TEXTCOL} \
|
||||
-gravity south-west \
|
||||
-annotate +25+5 "$sqn" \
|
||||
-gravity south-east \
|
||||
-annotate +25+5 "$txt" \
|
||||
${img}
|
||||
fin=$(date +%s)
|
||||
echo ; sleep 1
|
||||
printf "%-12s %5d %5d\n" \
|
||||
${SEQNAME} $frame $(( fin-debut )) | \
|
||||
tee -a WS/mp4.timing
|
||||
echo
|
||||
done
|
||||
|
||||
date --utc > WS/$SEQNAME.done
|
||||
echo
|
||||
|
||||
ff_encodage $SEQNAME wip-${SEQNAME}.mp4
|
||||
|
||||
echo "build of '$SEQNAME' done" | tee -a WS/log
|
||||
|
||||
|
||||
Reference in new issue
Block a user