movie to gif via ffmpeg
ffmpeg -i ~/Desktop/darkmode.mov -filter_complex "[0:v] fps=40, setpts=0.5*PTS" -f gif ~/Desktop/darkmode-2.gif
-i
specify input file
-f
specify format
lastly sepcify output file
extras:
-ss
for seeking-filter_complex
to do filteringfps=40
control frame per second, more or less detailsetpts=0.5*PTS
speed up the video reference