ffmpeg -i untitled.mp4 -r 60 -vf "setpts=0.1*PTS,crop=1080:1080:500:0,scale=360x360:flags=lanczos,fps=60,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse=dither=bayer:bayer_scale=1" -loop 0 out.gif
