>>39604412ffmpeg -i dance.webm%04d.png -vf palettegen=reserve_transparent=1 palette.png
ffmpeg -framerate 24 -i dance.webm%04d.png -i palette.png -lavfi scale=0.415*iw:-1,paletteuse=alpha_threshold=128 -gifflags -offsetting dance.gif
i got most of it from stackoverflow and couldn't be assed to attempt to shorten it to 1 command