Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tj/node-gify
Convert videos to gifs using ffmpeg and gifsicle
https://github.com/tj/node-gify
Last synced: 5 days ago
JSON representation
Convert videos to gifs using ffmpeg and gifsicle
- Host: GitHub
- URL: https://github.com/tj/node-gify
- Owner: tj
- Created: 2013-08-29T00:58:31.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-09-06T11:59:55.000Z (about 2 years ago)
- Last Synced: 2024-10-01T15:19:42.149Z (about 1 month ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 297
- Watchers: 7
- Forks: 35
- Open Issues: 9
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
- awesome-gif - node-gify - JavaScript convert videos to GIFs using ffmpeg and gifsicle. (Libraries / JavaScript)
- awesome-github-star - node-gify
README
# gify
Turn videos into gifs.
![](http://i.cloudup.com/0lDQXlLZNS.gif)
## Installation
```
$ npm install gify
```Requires `ffmpeg` and `graphicsmagick`:
```
brew install ffmpeg graphicsmagick
```## Example
Without options:
```js
gify('out.mp4', 'out.gif', function(err){
if (err) throw err;
});
```With options:
```js
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