gigantic refactoring, part one
This commit is contained in:
@@ -2,3 +2,10 @@
|
||||
|
||||
Build system and utilities.
|
||||
|
||||
## Linkfarming
|
||||
|
||||
## Encoding
|
||||
|
||||
## Plot the timing
|
||||
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
set -eu
|
||||
|
||||
# --------------------------------------------------------------
|
||||
#
|
||||
# un essai qui semble un echec.
|
||||
#
|
||||
ralentisseur ()
|
||||
{
|
||||
temps=$1
|
||||
@@ -35,7 +38,9 @@ ffmpeg -nostdin \
|
||||
# wc -c $FILMNAME | tee -a WS/log
|
||||
}
|
||||
# --------------------------------------------------------------
|
||||
|
||||
#
|
||||
# celui-ci n'est pas terminé !
|
||||
#
|
||||
mp_encodage()
|
||||
{
|
||||
#
|
||||
|
||||
@@ -7,6 +7,8 @@ SPOOL="frames/Spool"
|
||||
SEQNAME="none"
|
||||
TMP="WS/tmp.png"
|
||||
FONTE="Palatino-Bold"
|
||||
TEXTCOL="orange"
|
||||
STROKOL="darkblue"
|
||||
|
||||
source tools/fonctions.sh
|
||||
|
||||
@@ -51,27 +53,30 @@ faire_le_titre ()
|
||||
{
|
||||
echo "faire le titre"
|
||||
|
||||
local NBRE=190
|
||||
local NBRE=180
|
||||
for foo in $(seq 0 $NBRE)
|
||||
do
|
||||
Ypos=$(( 210 - ( foo / 2 ) ))
|
||||
convert "WS/negatif.png" \
|
||||
-gravity north \
|
||||
-font $FONTE \
|
||||
-pointsize 172 \
|
||||
-fill black \
|
||||
-strokewidth 2 -stroke gray90 \
|
||||
Ypos=$(( 210 - ( foo / 3 ) ))
|
||||
convert "WS/negatif.png" \
|
||||
-gravity north \
|
||||
-font $FONTE \
|
||||
-pointsize 172 \
|
||||
-kerning 6 \
|
||||
-fill $TEXTCOL \
|
||||
-strokewidth 3 -stroke $STROKOL \
|
||||
-annotate +0+${Ypos} "HexaCone" \
|
||||
${TMP}
|
||||
# identify ${TMP}
|
||||
addfile ${TMP}
|
||||
printf "."
|
||||
done
|
||||
echo
|
||||
}
|
||||
# -------------------------------------------------------
|
||||
faire_la_fin ()
|
||||
{
|
||||
local NBRE=120
|
||||
datetime=$(LANG=fr date -u)
|
||||
local NBRE=150
|
||||
datetime=$(LANG=fr date -u +"%Y/%M/%D")
|
||||
echo $datetime | tee -a WS/log
|
||||
|
||||
for foo in $(seq 0 $NBRE)
|
||||
@@ -81,23 +86,26 @@ do
|
||||
-gravity north \
|
||||
-font $FONTE \
|
||||
-pointsize 86 \
|
||||
-fill Black \
|
||||
-strokewidth 2 -stroke gray90 \
|
||||
-kerning 6 \
|
||||
-fill $TEXTCOL \
|
||||
-strokewidth 2 -stroke $STROKOL \
|
||||
-annotate +0+${Ypos} "tTh des Bourtoulots" \
|
||||
-pointsize 48 \
|
||||
-strokewidth 1 \
|
||||
-gravity south \
|
||||
-annotate +0+170 "${datetime}" \
|
||||
-annotate +0+270 "${datetime}" \
|
||||
${TMP}
|
||||
# identify ${TMP}
|
||||
addfile ${TMP}
|
||||
printf "."
|
||||
done
|
||||
echo
|
||||
}
|
||||
# -------------------------------------------------------
|
||||
|
||||
figlet "Link farmer"
|
||||
|
||||
rm frames/Spool/*.png
|
||||
rm -f frames/Spool/*.png
|
||||
|
||||
tools/plot-timing.sh
|
||||
faire_le_titre
|
||||
@@ -109,13 +117,15 @@ linkfarm passage
|
||||
linkfarm scene
|
||||
linkfarm orbite
|
||||
|
||||
# linkfarm essai
|
||||
linkfarm essai
|
||||
|
||||
tools/plot-timing.sh
|
||||
faire_la_fin
|
||||
|
||||
ff_encodage Spool full.mp4
|
||||
|
||||
echo "linkfarmed $IDX files" | tee -a WS/log
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -45,8 +45,6 @@ END { \
|
||||
|
||||
# cat -n $TMPFILE | tail # ; exit
|
||||
|
||||
|
||||
|
||||
gnuplot << __EOC__
|
||||
set term png size 1024,768
|
||||
set output "timing.png"
|
||||
|
||||
Reference in New Issue
Block a user