nice improvments
This commit is contained in:
1 parent
98b4d69855
commit
8cd3a3f439
3 files changed
+94
-35
No files matched your search
@@ -21,13 +21,12 @@ for source in $(ls -1 frames/$SEQ/*.png)
|
|||||||
do
|
do
|
||||||
bname=$( basename $source )
|
bname=$( basename $source )
|
||||||
destname="frames/EGA/$bname"
|
destname="frames/EGA/$bname"
|
||||||
# echo $source "==>" $destname
|
echo $source " -> " $destname
|
||||||
|
|
||||||
convert $source \
|
convert $source \
|
||||||
-equalize \
|
|
||||||
-dither none \
|
-dither none \
|
||||||
-resize '640x350!' \
|
-resize '640x350!' \
|
||||||
-remap datas/ega-16colors.png \
|
-colors 16 \
|
||||||
$destname
|
$destname
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
+85
-25
@@ -7,12 +7,13 @@ source tools/config.sh
|
|||||||
IDX=0
|
IDX=0
|
||||||
SPOOL="frames/Spool"
|
SPOOL="frames/Spool"
|
||||||
SEQNAME="none"
|
SEQNAME="none"
|
||||||
TMP="WS/tmp.png"
|
TMP="WS/lf-tmp.png"
|
||||||
FONTE="FreeSerif-Bold"
|
FONTE="FreeSerif-Bold"
|
||||||
|
BSLVL=0 # bullshit level
|
||||||
|
|
||||||
source tools/fonctions.sh
|
source tools/fonctions.sh
|
||||||
|
|
||||||
# -------------------------------------------------------
|
# =======================================================
|
||||||
# /!\ this function just copy the
|
# /!\ this function just copy the
|
||||||
# file to the spool dir, so
|
# file to the spool dir, so
|
||||||
# you can use it for tmp pics.
|
# you can use it for tmp pics.
|
||||||
@@ -26,8 +27,43 @@ dstname=$(printf "%s/%05d.png" $SPOOL $IDX)
|
|||||||
cp -f $src $dstname
|
cp -f $src $dstname
|
||||||
IDX=$(( IDX + 1 ))
|
IDX=$(( IDX + 1 ))
|
||||||
}
|
}
|
||||||
# -------------------------------------------------------
|
# =======================================================
|
||||||
|
intersequence ()
|
||||||
|
{
|
||||||
|
local nombre=$1
|
||||||
|
local blabla=$2
|
||||||
|
|
||||||
|
echo "Inter Sequence : $nombre [$blabla]"
|
||||||
|
|
||||||
|
# --- preparation du fond
|
||||||
|
local TGA="/dev/shm/lnkfrm-hexa-inter-A.tga"
|
||||||
|
local IMG="/dev/shm/lnkfrm-hexa-inter-B.png
|
||||||
|
"
|
||||||
|
tga_tools mk_hgrad $TGA $Img_Width $Img_Height
|
||||||
|
tga_effects $TGA noise $TGA 60
|
||||||
|
tga_television $TGA gruud $TGA 0
|
||||||
|
|
||||||
|
for foo in $(seq 0 $nombre)
|
||||||
|
do
|
||||||
|
local txt=$( printf "bslvl: 0x%06x" $accu )
|
||||||
|
convert $TGA \
|
||||||
|
-font Courier-Regular \
|
||||||
|
-pointsize 64 \
|
||||||
|
-fill $INFOCOL \
|
||||||
|
-annotate +50+160 "$txt" \
|
||||||
|
-annotate +50+300 "$blabla" \
|
||||||
|
$IMG
|
||||||
|
copy_a_file ${IMG}
|
||||||
|
copy_a_file ${IMG}
|
||||||
|
copy_a_file ${IMG}
|
||||||
|
BSLVL=$(( BSLVL + $RANDOM + $RANDOM ))
|
||||||
|
done
|
||||||
|
|
||||||
|
}
|
||||||
|
# =======================================================
|
||||||
|
#
|
||||||
|
# c'est ici qu'on insère une séquence dans le film
|
||||||
|
#
|
||||||
linkfarm ()
|
linkfarm ()
|
||||||
{
|
{
|
||||||
SRC="frames/$1"
|
SRC="frames/$1"
|
||||||
@@ -35,20 +71,19 @@ echo "linkfarm $SRC" # XXX | tee -a WS/log
|
|||||||
|
|
||||||
local INTER="/dev/shm/tmp-intertitre.png"
|
local INTER="/dev/shm/tmp-intertitre.png"
|
||||||
tools/plot-timing.sh $1
|
tools/plot-timing.sh $1
|
||||||
|
local NBRE=42
|
||||||
local NBRE=40
|
|
||||||
|
|
||||||
convert "WS/negatif.png" \
|
convert "WS/negatif.png" \
|
||||||
-gravity center \
|
-gravity center \
|
||||||
-font $FONTE \
|
-font $FONTE \
|
||||||
-pointsize 140 \
|
-pointsize 110 \
|
||||||
-kerning 15 \
|
-kerning 15 \
|
||||||
-fill $TEXTCOL \
|
-fill $TEXTCOL \
|
||||||
-strokewidth 2 -stroke $STROKOL \
|
-strokewidth 2 -stroke $STROKOL \
|
||||||
-annotate +0+0 "$1" \
|
-annotate +0+0 "$1" \
|
||||||
${INTER}
|
${INTER}
|
||||||
|
|
||||||
for foo in $(seq 0 $NBRE)
|
for foo in $(seq 0 $(( $NBRE * 2)) )
|
||||||
do
|
do
|
||||||
copy_a_file $INTER
|
copy_a_file $INTER
|
||||||
# :
|
# :
|
||||||
@@ -59,6 +94,8 @@ do
|
|||||||
copy_a_file "$SRC/00000.png"
|
copy_a_file "$SRC/00000.png"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sleep 15
|
||||||
|
|
||||||
for src in "$SRC"/*
|
for src in "$SRC"/*
|
||||||
do
|
do
|
||||||
copy_a_file $src
|
copy_a_file $src
|
||||||
@@ -71,19 +108,33 @@ do
|
|||||||
copy_a_file "$PIC"
|
copy_a_file "$PIC"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
# -------------------------------------------------------
|
# =======================================================
|
||||||
faire_le_titre ()
|
faire_le_titre ()
|
||||||
{
|
{
|
||||||
echo "faire le titre"
|
echo "faire le titre"
|
||||||
|
|
||||||
local NBRE=320
|
local NBRE=320
|
||||||
local SRC="frames/hexatube/00199.png"
|
local SRC="frames/hexatube/00451.png"
|
||||||
local GRAY="/dev/shm/tmp-titre.png"
|
local GRAY="/dev/shm/tmp-titre.png"
|
||||||
|
|
||||||
|
intersequence 33 "loading..."
|
||||||
|
intersequence 8 "LOADED !!!"
|
||||||
|
|
||||||
|
for foo in $(seq 1 15)
|
||||||
|
do
|
||||||
|
K=$(( foo * 3 ))
|
||||||
|
convert -colorspace gray -colors 8 \
|
||||||
|
-blur ${K}x${K} $SRC $GRAY
|
||||||
|
copy_a_file "$GRAY"
|
||||||
|
done
|
||||||
|
|
||||||
|
# --- le titre du flim (at 11 ?)
|
||||||
convert -colorspace gray -colors 42 $SRC $GRAY
|
convert -colorspace gray -colors 42 $SRC $GRAY
|
||||||
|
Ypos=-25
|
||||||
|
Psiz=65
|
||||||
|
|
||||||
|
txt="La vie\nde la\nfamille\nHexaCone"
|
||||||
|
|
||||||
Ypos=-20
|
|
||||||
Psiz=100
|
|
||||||
for foo in $(seq 0 $NBRE)
|
for foo in $(seq 0 $NBRE)
|
||||||
do
|
do
|
||||||
convert ${GRAY} \
|
convert ${GRAY} \
|
||||||
@@ -93,7 +144,7 @@ do
|
|||||||
-kerning 6 \
|
-kerning 6 \
|
||||||
-fill $TEXTCOL \
|
-fill $TEXTCOL \
|
||||||
-strokewidth 3 -stroke $STROKOL \
|
-strokewidth 3 -stroke $STROKOL \
|
||||||
-annotate +0+${Ypos} "La famille\nHexaCone" \
|
-annotate +0+${Ypos} "$txt" \
|
||||||
${TMP}
|
${TMP}
|
||||||
|
|
||||||
copy_a_file ${TMP}
|
copy_a_file ${TMP}
|
||||||
@@ -103,16 +154,16 @@ do
|
|||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
# -------------------------------------------------------
|
# =======================================================
|
||||||
faire_la_fin ()
|
faire_la_fin ()
|
||||||
{
|
{
|
||||||
local NBRE=190
|
local NBRE=190
|
||||||
datetime=$(LANG=fr date -u +"%Y/%m/%d %H:%M" | tr "01" "ol" )
|
datetime=$(LANG=fr date -u +"%Y/%m/%d %H:%M" | tr "01" "ol" )
|
||||||
echo " $datetime" | tee -a WS/log
|
echo " $datetime" | tee -a WS/log
|
||||||
|
|
||||||
local SRC="frames/around/00042.png"
|
local SRC="frames/around/00586.png"
|
||||||
local GRAY="/dev/shm/tmp-fin.png"
|
local GRAY="/dev/shm/tmp-fin.png"
|
||||||
convert -dither none -colorspace gray -colors 40 $SRC $GRAY
|
convert -dither none -colorspace gray -colors 24 $SRC $GRAY
|
||||||
|
|
||||||
for foo in $(seq 0 $NBRE)
|
for foo in $(seq 0 $NBRE)
|
||||||
do
|
do
|
||||||
@@ -126,7 +177,9 @@ do
|
|||||||
-strokewidth 2 -stroke $STROKOL \
|
-strokewidth 2 -stroke $STROKOL \
|
||||||
-annotate +0+${Ypos} \
|
-annotate +0+${Ypos} \
|
||||||
"un film de\ntTh des Bourtoulots" \
|
"un film de\ntTh des Bourtoulots" \
|
||||||
|
-font Courier-Bold \
|
||||||
-pointsize 48 \
|
-pointsize 48 \
|
||||||
|
-kerning 1 \
|
||||||
-strokewidth 1 \
|
-strokewidth 1 \
|
||||||
-gravity south \
|
-gravity south \
|
||||||
-annotate +0+110 "${datetime}" \
|
-annotate +0+110 "${datetime}" \
|
||||||
@@ -136,9 +189,12 @@ do
|
|||||||
|
|
||||||
printf "."
|
printf "."
|
||||||
done
|
done
|
||||||
|
intersequence 35 "unloading"
|
||||||
|
intersequence 5 "unloaded!"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
# -------------------------------------------------------
|
# =======================================================
|
||||||
|
|
||||||
figlet "Link farmer"
|
figlet "Link farmer"
|
||||||
|
|
||||||
@@ -148,27 +204,31 @@ faire_le_titre
|
|||||||
|
|
||||||
linkfarm approche
|
linkfarm approche
|
||||||
linkfarm hexacone
|
linkfarm hexacone
|
||||||
# linkfarm remote
|
|
||||||
linkfarm hexabenz
|
linkfarm hexabenz
|
||||||
# linkfarm patrouille # new St Valentine 2026
|
|
||||||
linkfarm hexawood
|
linkfarm hexawood
|
||||||
# linkfarm escadrille
|
|
||||||
linkfarm hexatube
|
|
||||||
# linkfarm survol
|
|
||||||
linkfarm around # new 26 jan 2026
|
linkfarm around # new 26 jan 2026
|
||||||
|
|
||||||
|
# linkfarm escadrille
|
||||||
# linkfarm cutoff
|
# linkfarm cutoff
|
||||||
# linkfarm panoramic
|
|
||||||
# linkfarm topview
|
# linkfarm topview
|
||||||
# linkfarm trident
|
# linkfarm trident
|
||||||
# linkfarm passage
|
|
||||||
# linkfarm scene
|
# linkfarm scene
|
||||||
# linkfarm carto
|
# linkfarm carto
|
||||||
linkfarm circular
|
|
||||||
# linkfarm bubblecut
|
# linkfarm bubblecut
|
||||||
# linkfarm orbite
|
# linkfarm orbite
|
||||||
|
|
||||||
|
intersequence 60 "entering danger zone..."
|
||||||
|
linkfarm circular
|
||||||
|
linkfarm escadrille
|
||||||
|
linkfarm patrouille # new St Valentine 2026
|
||||||
|
linkfarm remote
|
||||||
|
linkfarm panoramic
|
||||||
|
linkfarm hexatube
|
||||||
|
linkfarm passage
|
||||||
|
linkfarm survol
|
||||||
|
intersequence 10 "Use Futur;"
|
||||||
linkfarm essai
|
linkfarm essai
|
||||||
|
|
||||||
tools/plot-timing.sh
|
|
||||||
faire_la_fin
|
faire_la_fin
|
||||||
|
|
||||||
ff_encodage Spool the-hexacone-family.mp4
|
ff_encodage Spool the-hexacone-family.mp4
|
||||||
|
|||||||
@@ -48,19 +48,20 @@ do
|
|||||||
fi
|
fi
|
||||||
set -e
|
set -e
|
||||||
sqn=$(echo ${SEQNAME} | tr [a-z] [A-Z])
|
sqn=$(echo ${SEQNAME} | tr [a-z] [A-Z])
|
||||||
txt=$(printf "%4d" ${frame} | tr '01' 'ol')
|
nbf=$(printf "%4d" ${frame} | tr '01' 'ol')
|
||||||
# echo $frame $img $txt
|
# echo $frame $img $txt
|
||||||
convert ${TMPIMG} \
|
convert ${TMPIMG} \
|
||||||
-alpha off \
|
-alpha off \
|
||||||
-font Courier-Bold \
|
-font Courier-Bold \
|
||||||
-pointsize 42 \
|
-pointsize 36 \
|
||||||
-kerning 6 \
|
|
||||||
-strokewidth 1 \
|
-strokewidth 1 \
|
||||||
-fill ${STROKOL} -stroke ${TEXTCOL} \
|
-fill ${STROKOL} -stroke ${TEXTCOL} \
|
||||||
-gravity south-west \
|
-gravity south-west \
|
||||||
-annotate +14+0 "$sqn" \
|
-kerning 9 \
|
||||||
|
-annotate +12+0 "$sqn" \
|
||||||
-gravity south-east \
|
-gravity south-east \
|
||||||
-annotate +14+0 "$txt" \
|
-kerning 3 \
|
||||||
|
-annotate +12+0 "$nbf" \
|
||||||
${img}
|
${img}
|
||||||
fin=$(date +%s)
|
fin=$(date +%s)
|
||||||
printf "%-12s %5d %5d\n" \
|
printf "%-12s %5d %5d\n" \
|
||||||
@@ -72,11 +73,10 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
date --utc > WS/$SEQNAME.done
|
date --utc > WS/$SEQNAME.done
|
||||||
echo
|
|
||||||
|
|
||||||
sleep 10
|
|
||||||
ff_encodage $SEQNAME wip-${SEQNAME}.mp4
|
ff_encodage $SEQNAME wip-${SEQNAME}.mp4
|
||||||
|
|
||||||
|
sleep 30
|
||||||
echo "build '$SEQNAME' done" | tee -a WS/log
|
echo "build '$SEQNAME' done" | tee -a WS/log
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user