[2019-09-14] movie to gif

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 filtering

    • fps=40 control frame per second, more or less detail
    • setpts=0.5*PTS speed up the video reference