dither4/gif.sh

13 lines
214 B
Bash
Raw Normal View History

2022-12-05 01:49:52 +00:00
fps=30000/1001
2022-12-04 23:18:51 +00:00
ffmpeg \
-r $fps -i "$1.%01d.png" \
-vf palettegen \
-y "$1.palette.png" \
&& \
ffmpeg \
-r $fps -i "$1.%01d.png" \
-i "$1.palette.png" \
-lavfi paletteuse \
-y "$1.gif"