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

+9 -9
View File
@@ -14,7 +14,7 @@ source tools/fonctions.sh
# -------------------------------------------------------
# /!\ this function just copy the
# file to the spool dir, so
# file to the spool dir, so
# you can use it for tmp pics.
#
copy_a_file ()
@@ -31,7 +31,7 @@ IDX=$(( IDX + 1 ))
linkfarm ()
{
SRC="frames/$1"
# echo "linkfarm $SRC" | tee -a WS/log
echo "linkfarm $SRC" | tee -a WS/log
local INTER="/dev/shm/tmp-intertitre.png"
tools/plot-timing.sh $1
@@ -149,10 +149,10 @@ linkfarm remote
linkfarm hexabenz
linkfarm patrouille # new St Valentine 2026
linkfarm hexawood
linkfarm escadrille
linkfarm survol
# linkfarm escadrille
# linkfarm survol
linkfarm around # new 26 jan 2026
linkfarm cutoff
# linkfarm cutoff
linkfarm panoramic
linkfarm topview
linkfarm trident
@@ -160,12 +160,12 @@ linkfarm passage
linkfarm scene
linkfarm carto
linkfarm circular
linkfarm bubblecut
linkfarm orbite
# linkfarm bubblecut
# linkfarm orbite
linkfarm essai
tools/plot-timing.sh
faire_la_fin
tools/plot-timing.sh
# faire_la_fin
ff_encodage Spool the-hexacone-family.mp4
+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