0.1.0 • Published 4 years ago

node-video-to-gif v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

node-video-to-gif

Turn videos into gifs.

Project forked from https://github.com/tj/node-gify

Installation

$ npm install node-video-to-gif

Requires ffmpeg and graphicsmagick:

brew install ffmpeg graphicsmagick

Example

Without options:

gify('out.mp4', 'out.gif', function(err){
  if (err) throw err;
});

With options:

var opts = {
  width: 300
};

gify('out.mp4', 'out.gif', opts, function(err){
  if (err) throw err;
});

Options

  • width max width 500
  • height max height none
  • delay between frames auto
  • rate frame rate 10
  • start start position in seconds or hh:mm:ss.xxx
  • duration length of video to convert in seconds or hh:mm:ss.xxx
  • ignore_loop 0 for keep looping or-1 not looping -1

License

MIT