use fractional build (see the doc)
This commit is contained in:
1 parent
26269bae0c
commit
6f31e80873
1 file changed
+21
-15
+21
-15
@@ -6,27 +6,32 @@ source tools/config.sh
|
||||
source tools/fonctions.sh
|
||||
|
||||
SEQNAME="$1"
|
||||
START=0
|
||||
LAST="WS/$SEQNAME.last"
|
||||
|
||||
if [ $# == 2 ]
|
||||
if [ ! -r $LAST ]
|
||||
then
|
||||
START=$2
|
||||
echo 0 > $LAST
|
||||
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"
|
||||
NBFR=" Declare=NbFrames=$NBFRAMES "
|
||||
POVOPT="+q9 +A0.02 -d ${DIMS} ${NBFR} -WT4"
|
||||
POVOPT="+q9 +A -v -d ${DIMS} ${NBFR} -WT4"
|
||||
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 !
|
||||
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)
|
||||
debut=$(date +%s)
|
||||
set +e
|
||||
@@ -35,7 +40,7 @@ do
|
||||
if [ $err != 0 ] ; then
|
||||
echo "$SEQNAME fail $frame" >> WS/log
|
||||
mogrify -colorspace gray -blur 5x5 -colors 8 $img
|
||||
visual_sleep "render fail" 12
|
||||
visual_sleep "render fail" 30
|
||||
continue
|
||||
fi
|
||||
set -e
|
||||
@@ -44,8 +49,8 @@ do
|
||||
# echo $frame $img $txt
|
||||
convert ${TMPIMG} \
|
||||
-font Courier-Regular \
|
||||
-pointsize 52 \
|
||||
-kerning 4 \
|
||||
-pointsize 56 \
|
||||
-kerning 7 \
|
||||
-strokewidth 1 \
|
||||
-fill ${STROKOL} -stroke ${TEXTCOL} \
|
||||
-gravity south-west \
|
||||
@@ -58,11 +63,12 @@ do
|
||||
printf "%-12s %5d %5d\n" \
|
||||
${SEQNAME} $frame $(( fin-debut )) | \
|
||||
tee -a WS/mp4.timing
|
||||
echo
|
||||
echo $(( $NEXT + 1)) > $LAST
|
||||
|
||||
done
|
||||
|
||||
date --utc > WS/$SEQNAME.done
|
||||
echo
|
||||
echo
|
||||
|
||||
ff_encodage $SEQNAME wip-${SEQNAME}.mp4
|
||||
|
||||
|
||||
Reference in new issue
Block a user