Files
tests/Misc./terribly_old_scripts/vid2a
2024-12-10 20:40:17 +01:00

15 lines
273 B
Bash
Executable File

#!/bin/bash
# Video to ascii art
DIR=$(mktemp -d)
ffmpeg -hide_banner -loglevel panic -i $1 -vf fps=5,scale=400:-1 $DIR/gif.gif
convert $DIR/gif.gif -coalesce +adjoin $DIR/GIF_FRAME.png
for i in $DIR/*; do
jp2a --color --height=${LINES} $i
sleep 0.2
done
rm -r $DIR/