Files
HexaCone/tools/build-ega-mp4.sh

39 lines
649 B
Bash
Raw Normal View History

2025-10-19 16:46:51 +02:00
#!/bin/bash
set -eu
source tools/fonctions.sh
# retour aux vieilles pratiques : EGA 640x350
# c'est une nouveauté du 18 octobre 2025
SEQ="essai"
if [ $# == 1 ] ; then
SEQ=$1
fi
2026-01-20 21:37:07 +01:00
# echo "[$SEQ] going EGA" | tee -a WS/log
2025-10-19 16:46:51 +02:00
debut=$(date +%s)
2025-10-20 04:45:59 +02:00
2025-10-20 04:47:52 +02:00
rm -f spool/EGA/*.png
2025-10-20 04:45:59 +02:00
2025-10-19 16:46:51 +02:00
for source in $(ls -1 frames/$SEQ/*.png)
do
bname=$( basename $source )
destname="frames/EGA/$bname"
# echo $source "==>" $destname
convert $source \
2025-10-21 14:45:49 +02:00
-equalize \
2025-10-19 16:46:51 +02:00
-dither none \
2025-10-21 14:45:49 +02:00
-resize '640x350!' \
-remap datas/ega-16colors.png \
2025-10-19 16:46:51 +02:00
$destname
done
ff_encodage "EGA/" "ega-$SEQ.mp4"
fin=$(date +%s)
2026-01-14 13:50:54 +01:00
echo "$SEQ -> ega" $(( fin-debut )) "secondes"