brotching the build system
This commit is contained in:
parent
e978a02196
commit
cdc0fb6780
11
fonctions.sh
11
fonctions.sh
@ -6,10 +6,13 @@ ralentisseur ()
|
|||||||
{
|
{
|
||||||
temps=$1
|
temps=$1
|
||||||
|
|
||||||
echo "#+++ ralentisseur $temps +++#" | tee -a WS/log
|
load=$(awk '{print int($1)}' < /proc/loadavg)
|
||||||
|
# echo " load is $load" | tee -a WS/log
|
||||||
sleep $temps
|
if [ $load -gt 10 ] ; then
|
||||||
|
attente=$(( $temps + ($RANDOM % 90) ))
|
||||||
|
echo "ralentir $0 $SEQNAME $attente" | tee -a WS/log
|
||||||
|
sleep $attente
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
|
@ -22,7 +22,7 @@ linkfarm ()
|
|||||||
SRC="frames/$1"
|
SRC="frames/$1"
|
||||||
echo "linkfarm $SRC" | tee -a WS/log
|
echo "linkfarm $SRC" | tee -a WS/log
|
||||||
|
|
||||||
local NBRE=36
|
local NBRE=30
|
||||||
for foo in $(seq 0 $NBRE)
|
for foo in $(seq 0 $NBRE)
|
||||||
do
|
do
|
||||||
addfile "$SRC/00000.png"
|
addfile "$SRC/00000.png"
|
||||||
@ -45,7 +45,7 @@ faire_le_titre ()
|
|||||||
{
|
{
|
||||||
echo "faire le titre"
|
echo "faire le titre"
|
||||||
|
|
||||||
local NBRE=80
|
local NBRE=90
|
||||||
for foo in $(seq 0 $NBRE)
|
for foo in $(seq 0 $NBRE)
|
||||||
do
|
do
|
||||||
addfile "datas/cover.png"
|
addfile "datas/cover.png"
|
||||||
@ -54,7 +54,7 @@ done
|
|||||||
# -------------------------------------------------------
|
# -------------------------------------------------------
|
||||||
faire_la_fin ()
|
faire_la_fin ()
|
||||||
{
|
{
|
||||||
local NBRE=80
|
local NBRE=90
|
||||||
for foo in $(seq 0 $NBRE)
|
for foo in $(seq 0 $NBRE)
|
||||||
do
|
do
|
||||||
addfile "datas/back.png"
|
addfile "datas/back.png"
|
||||||
@ -72,6 +72,8 @@ linkfarm passage
|
|||||||
linkfarm scene
|
linkfarm scene
|
||||||
linkfarm essai
|
linkfarm essai
|
||||||
|
|
||||||
|
faire_la_fin
|
||||||
|
|
||||||
ff_encodage Spool full.mp4
|
ff_encodage Spool full.mp4
|
||||||
|
|
||||||
|
|
||||||
|
29
mkloop.sh
29
mkloop.sh
@ -15,39 +15,43 @@ esac
|
|||||||
|
|
||||||
echo "Running $0 $TYPE $SEQNAME" >> WS/log
|
echo "Running $0 $TYPE $SEQNAME" >> WS/log
|
||||||
|
|
||||||
POVOPT="+q9 +a0.02 -d ${DIMS} -WT6"
|
POVOPT="+q9 +a0.01 -d ${DIMS} -WT6"
|
||||||
echo $POVOPT ; echo ; sleep 2
|
echo $POVOPT ; echo ; sleep 2
|
||||||
|
|
||||||
TMPIMG=/dev/shm/${SEQNAME}-tmp.png
|
TMPIMG=/dev/shm/${SEQNAME}-tmp.png
|
||||||
|
|
||||||
for frame in $(seq 0 $((NBFRAMES-1)))
|
for frame in $(seq 0 $((NBFRAMES-1)))
|
||||||
do
|
do
|
||||||
figlet -k $frame
|
# figlet -k $frame ; sleep 1
|
||||||
img=$(printf "frames/%s/%05d.png" $SEQNAME $frame)
|
|
||||||
|
|
||||||
|
ralentisseur 25
|
||||||
|
|
||||||
|
img=$(printf "frames/%s/%05d.png" $SEQNAME $frame)
|
||||||
debut=$(date +%s)
|
debut=$(date +%s)
|
||||||
set +e
|
set +e
|
||||||
povray ${POVOPT} +K${frame} -i${SEQNAME}.pov -o${TMPIMG}
|
povray ${POVOPT} +K${frame} -i${SEQNAME}.pov -o${TMPIMG}
|
||||||
err=$?
|
err=$?
|
||||||
if [ $err != 0 ] ; then
|
if [ $err != 0 ] ; then
|
||||||
echo "$SEQNAME fail $frame" >> WS/log
|
echo "$SEQNAME fail $frame" >> WS/log
|
||||||
|
mogrify -colorspace gray $img
|
||||||
sleep 6
|
sleep 6
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
set -e
|
set -e
|
||||||
txt=$(printf "%s %03d" ${SEQNAME} $frame)
|
txt=$(printf "%s %03d" ${SEQNAME} $frame)
|
||||||
echo $frame $img $txt
|
# echo $frame $img $txt
|
||||||
convert ${TMPIMG} \
|
convert ${TMPIMG} \
|
||||||
-font Courier \
|
-font Courier-Bold \
|
||||||
-pointsize 14 \
|
-pointsize 16 \
|
||||||
-fill orange \
|
-fill turquoise \
|
||||||
-gravity south \
|
-gravity south \
|
||||||
-annotate +0+0 "$txt" \
|
-annotate +0+5 "$txt" \
|
||||||
${img}
|
${img}
|
||||||
fin=$(date +%s)
|
fin=$(date +%s)
|
||||||
echo
|
echo ; sleep 1
|
||||||
echo $frame $(( fin - debut )) | tee -a WS/${TYPE}.timing
|
echo ${SEQNAME} $frame $(( fin - debut )) | \
|
||||||
echo
|
tee -a WS/mp4.timing
|
||||||
|
echo ; sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
@ -57,3 +61,6 @@ case $TYPE in
|
|||||||
-colors 102 frames/* foo.gif ;;
|
-colors 102 frames/* foo.gif ;;
|
||||||
"mp4") ff_encodage $SEQNAME wip-${SEQNAME}.mp4 ;;
|
"mp4") ff_encodage $SEQNAME wip-${SEQNAME}.mp4 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo "+------- build of $SEQNAME done"
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ BEGIN { \
|
|||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
\
|
\
|
||||||
$1=="orbite" { \
|
$1=="passage" { \
|
||||||
accu[$2] += $3; \
|
accu[$2] += $3; \
|
||||||
count[$2]++; \
|
count[$2]++; \
|
||||||
if (mini[$2] > $3) mini[$2] = $3; \
|
if (mini[$2] > $3) mini[$2] = $3; \
|
||||||
|
Loading…
Reference in New Issue
Block a user