dither4/gif.sh

14 lines
301 B
Bash
Raw Permalink Normal View History

2022-12-08 00:12:15 +00:00
fps=60000/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" \
2022-12-11 19:58:37 +00:00
-lavfi "[0]scale=w=800:h=480:sws_flags=neighbor[scaled];\
[scaled][1]paletteuse=dither=none" \
2022-12-04 23:18:51 +00:00
-y "$1.gif"