Two different settings here.
The top clip was rendered and optimized into a gif with this code:
for i in *.mp4; do ffmpeg -y -i "$i" -sws_dither bayer=5 -filter_complex "fps=30,scale=540:-1:flags=lanczos,smartblur=1.5:-0.55" gifs/${i%.}.gif; done
Then the second one using this code:
for i in *.mp4; do ffmpeg -y -i "$i" -filter_complex "smartblur=1.5:-1" gifski1/${i%.}.mp4; done
Which sharpens the frames of the MP4 clip, then this to make the gif:
for i in *.mp4; do gifski --fps 23 --width 540 --quality 100 -o ${i%.*}.gif "$i"; done
The differences are way more apparent on mobile. The bottom gif has inkier blacks, overall handles the original colors better, and doesn't have the very obvious dithering that the top gif does. However, it's also a larger file size at 7.3MB vs. 4.3 MB—but those are both pretty good amounts of compression for a 3.25 second gif. If you wanted to do a long gif (like 5-6 seconds) you could probably still upload it using the first code.









