Compare commits
2 Commits
0f72fd1ed0
...
90af7dd796
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90af7dd796 | ||
|
|
b2cbcd928f |
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
|
||||||
@ -16,10 +16,10 @@ GIF="t-$SEQ.gif"
|
|||||||
echo "seq $SEQ -> $GIF" | tee -a WS/log
|
echo "seq $SEQ -> $GIF" | tee -a WS/log
|
||||||
|
|
||||||
convert \
|
convert \
|
||||||
-delay 10 -dither none \
|
-delay 8 -dither none \
|
||||||
-resize 40% \
|
-resize '320x200!' \
|
||||||
-colorspace gray -normalize \
|
-normalize \
|
||||||
-colors 14 \
|
-remap datas/ega-colors.png \
|
||||||
frames/$SEQ/?[012]*[369].png \
|
frames/$SEQ/?[012]*[369].png \
|
||||||
$GIF
|
$GIF
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user