

export COLTEXT_A="#CCCCBB"
export COLTEXT_B="#555544"
export COLTIME="Orange"

export COLHARD_A="Red"
export COLHARD_B="Pink"

export TEXT_IT="Lato-Italic"
export TEXT_BF="Lato-Bold"
export TEXT_TT="Courier-Bold"


export LOG_ENC="WS/log.encode"

log_event ()
{
texte=$1
curdate=$(date --utc +'%d/%m %H:%M' | tr -d '\n')
printf "%s - %s\n" "${curdate}" "${texte}" | tee -a $LOG_ENC
}

encodage ()
{
pattern="$1"
film="$2"

ffmpeg  -nostdin                                   			\
        -loglevel error                            			\
        -y -r 30 -f image2 -i "$pattern"           			\
	-metadata artist='---[ tTh ]---'				\
	-metadata title='* this is just an ugly wip (2024 Jan) *'	\
        -c:v libx264 -pix_fmt yuv420p                           	\
        "$film"
}