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
|
||||
bname=$( basename $source )
|
||||
destname="frames/EGA/$bname"
|
||||
# echo $source "==>" $destname
|
||||
echo $source " -> " $destname
|
||||
|
||||
convert $source \
|
||||
-equalize \
|
||||
-dither none \
|
||||
-resize '640x350!' \
|
||||
-remap datas/ega-16colors.png \
|
||||
-colors 16 \
|
||||
$destname
|
||||
|
||||
done
|
||||
|
||||
+85
-25
@@ -7,12 +7,13 @@ source tools/config.sh
|
||||
IDX=0
|
||||
SPOOL="frames/Spool"
|
||||
SEQNAME="none"
|
||||
TMP="WS/tmp.png"
|
||||
TMP="WS/lf-tmp.png"
|
||||
FONTE="FreeSerif-Bold"
|
||||
BSLVL=0 # bullshit level
|
||||
|
||||
source tools/fonctions.sh
|
||||
|
||||
# -------------------------------------------------------
|
||||
# =======================================================
|
||||
# /!\ this function just copy the
|
||||
# file to the spool dir, so
|
||||
# you can use it for tmp pics.
|
||||
@@ -26,8 +27,43 @@ dstname=$(printf "%s/%05d.png" $SPOOL $IDX)
|
||||
cp -f $src $dstname
|
||||
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 ()
|
||||
{
|
||||
SRC="frames/$1"
|
||||
@@ -35,20 +71,19 @@ echo "linkfarm $SRC" # XXX | tee -a WS/log
|
||||
|
||||
local INTER="/dev/shm/tmp-intertitre.png"
|
||||
tools/plot-timing.sh $1
|
||||
|
||||
local NBRE=40
|
||||
local NBRE=42
|
||||
|
||||
convert "WS/negatif.png" \
|
||||
-gravity center \
|
||||
-font $FONTE \
|
||||
-pointsize 140 \
|
||||
-pointsize 110 \
|
||||
-kerning 15 \
|
||||
-fill $TEXTCOL \
|
||||
-strokewidth 2 -stroke $STROKOL \
|
||||
-annotate +0+0 "$1" \
|
||||
${INTER}
|
||||
|
||||
for foo in $(seq 0 $NBRE)
|
||||
for foo in $(seq 0 $(( $NBRE * 2)) )
|
||||
do
|
||||
copy_a_file $INTER
|
||||
# :
|
||||
@@ -59,6 +94,8 @@ do
|
||||
copy_a_file "$SRC/00000.png"
|
||||
done
|
||||
|
||||
sleep 15
|
||||
|
||||
for src in "$SRC"/*
|
||||
do
|
||||
copy_a_file $src
|
||||
@@ -71,19 +108,33 @@ do
|
||||
copy_a_file "$PIC"
|
||||
done
|
||||
}
|
||||
# -------------------------------------------------------
|
||||
# =======================================================
|
||||
faire_le_titre ()
|
||||
{
|
||||
echo "faire le titre"
|
||||
|
||||
local NBRE=320
|
||||
local SRC="frames/hexatube/00199.png"
|
||||
local SRC="frames/hexatube/00451.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
|
||||
Ypos=-25
|
||||
Psiz=65
|
||||
|
||||
txt="La vie\nde la\nfamille\nHexaCone"
|
||||
|
||||
Ypos=-20
|
||||
Psiz=100
|
||||
for foo in $(seq 0 $NBRE)
|
||||
do
|
||||
convert ${GRAY} \
|
||||
@@ -93,7 +144,7 @@ do
|
||||
-kerning 6 \
|
||||
-fill $TEXTCOL \
|
||||
-strokewidth 3 -stroke $STROKOL \
|
||||
-annotate +0+${Ypos} "La famille\nHexaCone" \
|
||||
-annotate +0+${Ypos} "$txt" \
|
||||
${TMP}
|
||||
|
||||
copy_a_file ${TMP}
|
||||
@@ -103,16 +154,16 @@ do
|
||||
done
|
||||
echo
|
||||
}
|
||||
# -------------------------------------------------------
|
||||
# =======================================================
|
||||
faire_la_fin ()
|
||||
{
|
||||
local NBRE=190
|
||||
datetime=$(LANG=fr date -u +"%Y/%m/%d %H:%M" | tr "01" "ol" )
|
||||
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"
|
||||
convert -dither none -colorspace gray -colors 40 $SRC $GRAY
|
||||
convert -dither none -colorspace gray -colors 24 $SRC $GRAY
|
||||
|
||||
for foo in $(seq 0 $NBRE)
|
||||
do
|
||||
@@ -126,7 +177,9 @@ do
|
||||
-strokewidth 2 -stroke $STROKOL \
|
||||
-annotate +0+${Ypos} \
|
||||
"un film de\ntTh des Bourtoulots" \
|
||||
-font Courier-Bold \
|
||||
-pointsize 48 \
|
||||
-kerning 1 \
|
||||
-strokewidth 1 \
|
||||
-gravity south \
|
||||
-annotate +0+110 "${datetime}" \
|
||||
@@ -136,9 +189,12 @@ do
|
||||
|
||||
printf "."
|
||||
done
|
||||
intersequence 35 "unloading"
|
||||
intersequence 5 "unloaded!"
|
||||
|
||||
echo
|
||||
}
|
||||
# -------------------------------------------------------
|
||||
# =======================================================
|
||||
|
||||
figlet "Link farmer"
|
||||
|
||||
@@ -148,27 +204,31 @@ faire_le_titre
|
||||
|
||||
linkfarm approche
|
||||
linkfarm hexacone
|
||||
# linkfarm remote
|
||||
linkfarm hexabenz
|
||||
# linkfarm patrouille # new St Valentine 2026
|
||||
linkfarm hexawood
|
||||
# linkfarm escadrille
|
||||
linkfarm hexatube
|
||||
# linkfarm survol
|
||||
linkfarm around # new 26 jan 2026
|
||||
|
||||
# linkfarm escadrille
|
||||
# linkfarm cutoff
|
||||
# linkfarm panoramic
|
||||
# linkfarm topview
|
||||
# linkfarm trident
|
||||
# linkfarm passage
|
||||
# linkfarm scene
|
||||
# linkfarm carto
|
||||
linkfarm circular
|
||||
# linkfarm bubblecut
|
||||
# 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
|
||||
|
||||
tools/plot-timing.sh
|
||||
faire_la_fin
|
||||
|
||||
ff_encodage Spool the-hexacone-family.mp4
|
||||
|
||||
@@ -48,19 +48,20 @@ do
|
||||
fi
|
||||
set -e
|
||||
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
|
||||
convert ${TMPIMG} \
|
||||
-alpha off \
|
||||
-font Courier-Bold \
|
||||
-pointsize 42 \
|
||||
-kerning 6 \
|
||||
-pointsize 36 \
|
||||
-strokewidth 1 \
|
||||
-fill ${STROKOL} -stroke ${TEXTCOL} \
|
||||
-gravity south-west \
|
||||
-annotate +14+0 "$sqn" \
|
||||
-kerning 9 \
|
||||
-annotate +12+0 "$sqn" \
|
||||
-gravity south-east \
|
||||
-annotate +14+0 "$txt" \
|
||||
-kerning 3 \
|
||||
-annotate +12+0 "$nbf" \
|
||||
${img}
|
||||
fin=$(date +%s)
|
||||
printf "%-12s %5d %5d\n" \
|
||||
@@ -72,11 +73,10 @@ do
|
||||
done
|
||||
|
||||
date --utc > WS/$SEQNAME.done
|
||||
echo
|
||||
|
||||
sleep 10
|
||||
ff_encodage $SEQNAME wip-${SEQNAME}.mp4
|
||||
|
||||
sleep 30
|
||||
echo "build '$SEQNAME' done" | tee -a WS/log
|
||||
|
||||
|
||||
Reference in new issue
Block a user