Skip to content

Instantly share code, notes, and snippets.

View v1c77's full-sized avatar
🌕
super moon released!!!

vici v1c77

🌕
super moon released!!!
  • (0x1c ^ 0x77) + 7, (0x1c & 0x77) << 1
  • 21:30 (UTC +08:00)
View GitHub Profile
@v1c77
v1c77 / movie.2.gif.md
Created August 17, 2018 07:19
Convert movies to gif in OS X Mac

#OS X Movie to animated GIF

ffmpeg -i movie-name.mp4 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=0 --delay=3 > movie-name.gif

##Options

  • -r 10 tells ffmpeg to reduce the frame rate from 25 fps to 10
  • -s 600x400 tells ffmpeg the max-width and max-height