Advent of Code 2022 - 2nd attempt in c++
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
344 B

#!/bin/sh
rm img/*.gif
waitjobs() {
while [ "$(jobs -p | wc -l)" -ge "$1" ]; do wait; done
}
for x in img/*.pam; do
echo "$x"
pamtogif -quiet "$x" > "$x.gif" &
waitjobs "$(nproc)"
done
wait
gifsicle -d1 --verbose img/*.gif > anim.gif
ffmpeg -i anim.gif -filter:v "setpts=0.1*PTS,scale=iw*4:ih*4:flags=neighbor" -r 100 anim.webm