jclem/gifify

gifify turns movies into gifs.

Shell

1,139

41 commits

updated Feb 13, 2024

See the code

README

gifify

gifify is a shell script for converting screen recordings into GIFs that can be embedded conveniently into places like Slack channels or GitHub issues and pull requests.

Installation

brew install gifify

Usage

Given a file recording.mov:

  • Convert it into recording.mov.gif:
gifify recording.mov
  • Convert it into new_gif.gif:
gifify -o new_gif recording.mov
  • Convert it, cropping the top left corner:
gifify -c 100:100 recording.mov
  • Convert it and output at 60 frames per second:
gifify -r 60 recording.mov
  • Convert it and output at 30 frames per second at 2x speed:
gifify -r 30@2 recording.mov
  • Convert it and output at 30 frames per second at 2x speed, with a single loop:
gifify -r 30@2 -l 1 recording.mov

Regarding framerates:

GIF renderers typically cap the framerate somewhere between 60 and 100 frames per second. If you choose to change the framerate or playback speed of your GIFs, ensure your framerates do not exceed 60 frames per second to ensure your GIFs play consistently. An easy way to compute this is to ensure that FPS x SPEED is not greater than 60.

License

MIT (See LICENSE)

jclem/gifify

gifify turns movies into gifs.

Shell

1,139

41 commits

updated Feb 13, 2024

See the code

README

gifify

gifify is a shell script for converting screen recordings into GIFs that can be embedded conveniently into places like Slack channels or GitHub issues and pull requests.

Installation

brew install gifify

Usage

Given a file recording.mov:

  • Convert it into recording.mov.gif:
gifify recording.mov
  • Convert it into new_gif.gif:
gifify -o new_gif recording.mov
  • Convert it, cropping the top left corner:
gifify -c 100:100 recording.mov
  • Convert it and output at 60 frames per second:
gifify -r 60 recording.mov
  • Convert it and output at 30 frames per second at 2x speed:
gifify -r 30@2 recording.mov
  • Convert it and output at 30 frames per second at 2x speed, with a single loop:
gifify -r 30@2 -l 1 recording.mov

Regarding framerates:

GIF renderers typically cap the framerate somewhere between 60 and 100 frames per second. If you choose to change the framerate or playback speed of your GIFs, ensure your framerates do not exceed 60 frames per second to ensure your GIFs play consistently. An easy way to compute this is to ensure that FPS x SPEED is not greater than 60.

License

MIT (See LICENSE)

Significant stargazers

Mattt

19,219 followers · starred Nov 2020

Amjad Masad

2,455 followers · starred Jun 2013

Josh Gross

351 followers · starred Feb 2020

Rik

607 followers · starred Jan 2015