Skip to content

Convert videos to gifs using ffmpeg and gifsicle

Notifications You must be signed in to change notification settings

matthewmueller/node-gify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gify

Turn videos into gifs.

Installation

$ npm install gify

Also requires ffmpeg and 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] [0]
  • duration length of video to convert in seconds or hh:mm:ss[.xxx] [auto]

License

MIT

About

Convert videos to gifs using ffmpeg and gifsicle

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.2%
  • Makefile 1.8%