better EGA transcoding tool
This commit is contained in:
parent
b2cbcd928f
commit
90af7dd796
34
tools/build-ega-mp4.sh
Executable file
34
tools/build-ega-mp4.sh
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
#!/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
|
||||||
|
echo "[$SEQ] going EGA" | tee -a WS/log
|
||||||
|
|
||||||
|
debut=$(date +%s)
|
||||||
|
for source in $(ls -1 frames/$SEQ/*.png)
|
||||||
|
do
|
||||||
|
bname=$( basename $source )
|
||||||
|
destname="frames/EGA/$bname"
|
||||||
|
# echo $source "==>" $destname
|
||||||
|
|
||||||
|
convert $source \
|
||||||
|
-resize '640x350!' \
|
||||||
|
-dither none \
|
||||||
|
-remap datas/ega-colors.png \
|
||||||
|
$destname
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
ff_encodage "EGA/" "ega-$SEQ.mp4"
|
||||||
|
|
||||||
|
fin=$(date +%s)
|
||||||
|
echo "$SEQ -> EGA" $(( fin-debut )) "secondes" >> WS/log
|
||||||
Loading…
Reference in New Issue
Block a user