adding a lot of grabage
This commit is contained in:
@@ -7,15 +7,15 @@
|
||||
|
||||
INCFILE="WS/bloubs.inc"
|
||||
TMPPNG="/dev/shm/bloubs7.png"
|
||||
POVOPT="+Q9 +a -v -d -W1024 -H768 -WT2"
|
||||
DDIR="frames"
|
||||
POVOPT="+Q9 +a -v -d -W1600 -H1200 -WT2"
|
||||
DDIR="frames/a"
|
||||
LOGERR="log.error"
|
||||
|
||||
# --- put the work file in ramdisk
|
||||
BLBS_IN="/dev/shm/in.blbs"
|
||||
BLBS_OUT="/dev/shm/out.blbs"
|
||||
|
||||
NBIMG=1800
|
||||
NBIMG=3000
|
||||
|
||||
make all
|
||||
err=$?
|
||||
@@ -30,9 +30,9 @@ printf "\n#declare NbImg = %d;\n" $NBIMG > WS/nbimg.inc
|
||||
# first, we have to make a seminal buch of bloubs
|
||||
# --> this function need to be parametrizable
|
||||
#
|
||||
./genbloubs ${BLBS_IN} 15
|
||||
./genbloubs ${BLBS_IN} 3000
|
||||
|
||||
for idx in $(seq 0 $NBIMG)
|
||||
for idx in $(seq 0 $((NBIMG-1)) )
|
||||
do
|
||||
|
||||
echo "======== run passe $idx ========="
|
||||
@@ -43,45 +43,41 @@ do
|
||||
if [ 0 -ne $? ] ; then
|
||||
tail -15 $LOGERR
|
||||
sleep 30
|
||||
else
|
||||
grep "Trace Time" $LOGERR
|
||||
fi
|
||||
|
||||
td=$(date +'%F %R:%S')
|
||||
hi=$(printf "#%05d" $idx)
|
||||
count=$(head -1 "WS/log.nb_bloubs")
|
||||
count=$(tail -1 "WS/log.nb_bloubs")
|
||||
|
||||
PNG=$(printf "%s/%05d.png" ${DDIR} $idx)
|
||||
|
||||
convert ${TMPPNG} \
|
||||
-font Courier-Bold \
|
||||
-pointsize 16 \
|
||||
-fill Orange \
|
||||
-gravity south-east \
|
||||
-annotate +15+10 "$td" \
|
||||
-gravity south-west \
|
||||
-annotate +15+10 "$hi" \
|
||||
-pointsize 24 \
|
||||
-fill Yellow \
|
||||
-pointsize 32 \
|
||||
-gravity south-east \
|
||||
-annotate +25+5 "$td" \
|
||||
-gravity south-west \
|
||||
-annotate +25+5 "$hi" \
|
||||
-fill Yellow \
|
||||
-pointsize 48 \
|
||||
-gravity north-east \
|
||||
-annotate +15+10 "$count" \
|
||||
-annotate +25+5 "$count" \
|
||||
-gravity north-west \
|
||||
-annotate +25+5 "BloubWorld" \
|
||||
$PNG
|
||||
|
||||
echo $PNG '[done]'
|
||||
|
||||
./movebloubs ${BLBS_IN} ${BLBS_OUT}
|
||||
# ./mergebloubs ${BLBS_OUT} ${BLBS_IN}
|
||||
mv ${BLBS_OUT} ${BLBS_IN}
|
||||
echo
|
||||
|
||||
sleep 15
|
||||
|
||||
done
|
||||
|
||||
rm $LOGERR
|
||||
|
||||
# XXX convert -delay 10 -resize 50% -colors 192 \
|
||||
# XXX $DDIR/????[0]*.png foo.gif
|
||||
|
||||
nice ./encode.sh
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user