nice try, but...

This commit is contained in:
Tonton Th 2026-02-12 10:21:52 +01:00
parent fe3bdff7dd
commit e5439eee54

36
tools/motionblur.sh Executable file
View File

@ -0,0 +1,36 @@
#!/bin/bash
#
# a new experiment 2026/02/29
#
##############################
# THIS SOFTWARE IS A MESS #
# TOO SLOW FOR REAL USE #
##############################
set -e ; set -u
source tools/config.sh
NB_SRC=$(ls -1 frames/Spool | wc -l)
printf "%s: %d frames\n" $0 $NB_SRC | tee -a WS/log
# -------------------------------------------------------
# MAIN LOOP
for frame in $(seq 1 $(( $NB_SRC-1 )) )
do
imgA=$(printf "frames/Spool/%05d.png" $frame)
imgB=$(printf "frames/Spool/%05d.png" $((frame-1)))
imgC=$(printf "frames/TMP/%05d.png" $frame)
# echo $imgA $imgB
printf "%d " $frame
composite $imgA $imgB \
-blend 70% \
$imgC
done
ff_encodage TMP motion-blurred.mp4
# -------------------------------------------------------