a lot of crazy tweaks

This commit is contained in:
Tonton Th committed 2026-11-15 23:37:54 +01:00
1 parent c87aa7e57d
commit 96a402b9d8
12 files changed
+40 -30

No files matched your search

+15 -14
View File
@@ -15,42 +15,43 @@ fi
NEXT=$(head -1 $LAST)
echo "MakeOneSeq $SEQNAME : $NEXT" >> WS/log
count=$(( ($RANDOM % 42) + 60 ))
printf "mk1seq %-10s %5d %5d\n" $SEQNAME $NEXT $count >> WS/log
DIMS="-W$Img_Width -H$Img_Height"
NBFR=" Declare=NbFrames=$NBFRAMES "
POVOPT="+q9 +A -v -d ${DIMS} ${NBFR} -WT4"
echo $NBFR "frames."
# echo $NBFR
# echo $POVOPT ; echo ; sleep 2
TMPIMG=/dev/shm/hc-${SEQNAME}-tmp.png
# echo "TMPIMG" ${TMPIMG} | tee -a WS/log # DEBUG !
count=$(( ($RANDOM % 33) + 50 ))
printf "cout : %3d\n" $count | tee -a WS/log
for idx in $(seq 0 $count)
do
frame=$(( $idx + $NEXT ))
printf "%-12s : trace %3d of %d\n" $SEQNAME $idx $count
frame=$NEXT
img=$(printf "frames/%s/%05d.png" $SEQNAME $frame)
debut=$(date +%s)
set +e
povray ${POVOPT} +K${frame} -i${SEQNAME}.pov -o${TMPIMG}
povray ${POVOPT} +K${frame} \
-i${SEQNAME}.pov -o${TMPIMG} 2> WS/${SEQNAME}.stderr
err=$?
if [ $err != 0 ] ; then
echo "$SEQNAME fail $frame" >> WS/log
mogrify -colorspace gray -blur 7x7 -colors 8 $img
tail WS/${SEQNAME}.stderr
visual_sleep "render fail" 30
continue
fi
set -e
sqn=$(echo ${SEQNAME} | tr [a-z] [A-Z])
txt=$(printf "%03d" ${frame} | tr '01' 'ol')
txt=$(printf "%4d" ${frame} | tr '01' 'Ol')
# echo $frame $img $txt
convert ${TMPIMG} \
-font Courier-Regular \
-font Courier-Bold \
-pointsize 64 \
-kerning 7 \
-kerning 8 \
-strokewidth 1 \
-fill ${STROKOL} -stroke ${TEXTCOL} \
-gravity south-west \
@@ -59,11 +60,11 @@ do
-annotate +25+5 "$txt" \
${img}
fin=$(date +%s)
echo ; sleep 1
printf "%-12s %5d %5d\n" \
${SEQNAME} $frame $(( fin-debut )) | \
${SEQNAME} $NEXT $(( fin-debut )) | \
tee -a WS/mp4.timing
echo $(( $NEXT + 1)) > $LAST
NEXT=$(( ($NEXT + 1) % $NBFRAMES ))
echo $NEXT > $LAST
done
@@ -72,6 +73,6 @@ echo
ff_encodage $SEQNAME wip-${SEQNAME}.mp4
echo "build of '$SEQNAME' done" | tee -a WS/log
echo "build '$SEQNAME' done" | tee -a WS/log