use fractional build (see the doc)

This commit is contained in:
Tonton Th committed 2026-11-13 20:48:10 +01:00
1 parent 26269bae0c
commit 6f31e80873
1 file changed
+21 -15
+21 -15
View File
@@ -6,27 +6,32 @@ source tools/config.sh
source tools/fonctions.sh source tools/fonctions.sh
SEQNAME="$1" SEQNAME="$1"
START=0 LAST="WS/$SEQNAME.last"
if [ $# == 2 ] if [ ! -r $LAST ]
then then
START=$2 echo 0 > $LAST
fi fi
echo "$0 $SEQNAME from $START" >> WS/log NEXT=$(head -1 $LAST)
echo "MakeOneSeq $SEQNAME : $NEXT" >> WS/log
DIMS="-W$Img_Width -H$Img_Height" DIMS="-W$Img_Width -H$Img_Height"
NBFR=" Declare=NbFrames=$NBFRAMES " NBFR=" Declare=NbFrames=$NBFRAMES "
POVOPT="+q9 +A0.02 -d ${DIMS} ${NBFR} -WT4" POVOPT="+q9 +A -v -d ${DIMS} ${NBFR} -WT4"
echo $NBFR "frames." echo $NBFR "frames."
echo $POVOPT ; echo ; sleep 2 # echo $POVOPT ; echo ; sleep 2
TMPIMG=/dev/shm/${SEQNAME}-tmp.png TMPIMG=/dev/shm/hc-${SEQNAME}-tmp.png
# echo "TMPIMG" ${TMPIMG} | tee -a WS/log # DEBUG ! # echo "TMPIMG" ${TMPIMG} | tee -a WS/log # DEBUG !
INC=1
for frame in $(seq $START $INC $((NBFRAMES-1)))
do
count=$(( ($RANDOM % 33) + 50 ))
printf "cout : %3d\n" $count | tee -a WS/log
for idx in $(seq 0 $count)
do
frame=$(( $idx + $NEXT ))
img=$(printf "frames/%s/%05d.png" $SEQNAME $frame) img=$(printf "frames/%s/%05d.png" $SEQNAME $frame)
debut=$(date +%s) debut=$(date +%s)
set +e set +e
@@ -35,7 +40,7 @@ do
if [ $err != 0 ] ; then if [ $err != 0 ] ; then
echo "$SEQNAME fail $frame" >> WS/log echo "$SEQNAME fail $frame" >> WS/log
mogrify -colorspace gray -blur 5x5 -colors 8 $img mogrify -colorspace gray -blur 5x5 -colors 8 $img
visual_sleep "render fail" 12 visual_sleep "render fail" 30
continue continue
fi fi
set -e set -e
@@ -44,8 +49,8 @@ do
# echo $frame $img $txt # echo $frame $img $txt
convert ${TMPIMG} \ convert ${TMPIMG} \
-font Courier-Regular \ -font Courier-Regular \
-pointsize 52 \ -pointsize 56 \
-kerning 4 \ -kerning 7 \
-strokewidth 1 \ -strokewidth 1 \
-fill ${STROKOL} -stroke ${TEXTCOL} \ -fill ${STROKOL} -stroke ${TEXTCOL} \
-gravity south-west \ -gravity south-west \
@@ -58,11 +63,12 @@ do
printf "%-12s %5d %5d\n" \ printf "%-12s %5d %5d\n" \
${SEQNAME} $frame $(( fin-debut )) | \ ${SEQNAME} $frame $(( fin-debut )) | \
tee -a WS/mp4.timing tee -a WS/mp4.timing
echo echo $(( $NEXT + 1)) > $LAST
done done
date --utc > WS/$SEQNAME.done date --utc > WS/$SEQNAME.done
echo echo
ff_encodage $SEQNAME wip-${SEQNAME}.mp4 ff_encodage $SEQNAME wip-${SEQNAME}.mp4