nice try, but...
This commit is contained in:
parent
fe3bdff7dd
commit
e5439eee54
36
tools/motionblur.sh
Executable file
36
tools/motionblur.sh
Executable 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
|
||||||
|
|
||||||
|
# -------------------------------------------------------
|
||||||
Loading…
Reference in New Issue
Block a user