Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngokevin/gifpardy
What is a command-line video-to-GIF maker?
https://github.com/ngokevin/gifpardy
ffmpeg gif
Last synced: about 1 month ago
JSON representation
What is a command-line video-to-GIF maker?
- Host: GitHub
- URL: https://github.com/ngokevin/gifpardy
- Owner: ngokevin
- License: mit
- Created: 2017-03-17T03:36:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-25T13:51:25.000Z (over 7 years ago)
- Last Synced: 2024-12-15T22:27:52.953Z (about 2 months ago)
- Topics: ffmpeg, gif
- Language: JavaScript
- Homepage: https://www.youtube.com/watch?v=9g3--WYH8SY
- Size: 6.84 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GIFPARDY
What is a command-line video-to-GIF maker?
![gifpardy](https://cloud.githubusercontent.com/assets/674727/24027740/06b1fa1e-0a87-11e7-8c1a-34a2a8402e21.png)
## Installation
```sh
npm install -g gifpardy
```## Usage
Path to source video is the only required argument.
If the GIF output filename is not given, the source video filename will be used
as a base.```sh
gifpardy in.mp4
gifpardy in.mp4 out.gif
gifpardy -r 320x240 -d 8 in.mp4
gifpardy --resolution 1200x800 --delay 5 in.mp4 out.gif
```| Option | Description | Default Value |
|------------------|----------------------------------------------------------------|---------------|
| -d, --delay | How much time to wait between frames in hundreths of a second. | 6 |
| -r, --resolution | GIF resolution. | 1000x630 |## System Dependencies
Requires ffmpeg and gifsicle.
- [ffmpeg](https://ffmpeg.org/)
- `brew install ffmpeg`
- `sudo apt-get install ffmpeg`
- `choco install ffmpeg`
- [gifsicle](https://www.lcdf.org/gifsicle/)
- `brew install gifsicle`
- `sudo apt-get install gifsicle`
- `choco install gifsicle`## Under the Hood
gifpardy calls a command that looks like this:
```sh
ffmpeg -i in.mp4 -s 600x400 -pix_fmt rgb24 -r 7 -f gif - | gifsicle --optimize=3 --delay=6 > out.gif
```## Taking a Screen Capture
Want to make a screen capture GIF, but don't know which screen recording tool
to use?- On Windows, try [OBS Studio](https://obsproject.com/).
- On OS X, use QuickTime Player's screen recording tool (` + ^ + N`).Then run GIFPARDY on the output video. For a final GIFPARDY, a GIF we created
with GIFPARDY:![gifpardy](https://cloud.githubusercontent.com/assets/674727/24028189/55a3249c-0a8a-11e7-8232-468683e585d2.gif)