Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/techgaun/mustang
A simple script to convert videos to animated gif
https://github.com/techgaun/mustang
convert-videos ffmpeg gif
Last synced: about 1 month ago
JSON representation
A simple script to convert videos to animated gif
- Host: GitHub
- URL: https://github.com/techgaun/mustang
- Owner: techgaun
- License: apache-2.0
- Created: 2015-10-03T19:40:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-05T19:11:44.000Z (about 9 years ago)
- Last Synced: 2024-08-03T18:22:17.190Z (4 months ago)
- Topics: convert-videos, ffmpeg, gif
- Language: Shell
- Size: 148 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nepal - Mustang - Video to GIF
README
# mustang
A simple script to convert videos to animated gif![Tongue Twister](http://i.imgur.com/iMNDmMh.gif)
### Installation
You can install mustang by following command:```shell
$ wget https://raw.githubusercontent.com/techgaun/mustang/master/mustang -O /usr/bin/mustang
$ chmod +x /usr/bin/mustang
```There's a package called mustang so make sure you don't have it or update installation instruction appropriately.
Alternatively, you can use the docker images to use mustang without having to install ffmpeg or imagemagick on your host OS.
```shell
$ docker run --rm -v /tmp/data:/data techgaun/mustang:alpine -i /data/out.ogv -o /data/out.gif
```You can alternatively use images based on ubuntu or centos. Just replace `techgaun/mustang:alpine` with `techgaun/mustang:ubuntu` or `techgaun/mustang:centos` however alpine based image is ~85Mb (could be reduced I believe) so ideal.
### Usage
mustang is a simple script that converts videos to animated [gifs](https://en.wikipedia.org/wiki/GIF) using [ffmpeg](https://www.ffmpeg.org/) and [convert](http://www.imagemagick.org) (optionally).```shell
$ ./mustang -h
mustang - written by techgaun
Usage: mustang [-f ] -i -o [-c] [-w]
Example: mustang -f 15 -i /tmp/input.mp4 -o /tmp/output.gif
mustang -h
Options:
-c Enable use of convert command
-f Frames per second for gif. Default: 12
-h Show help screen
-i Input video file
-o Output gif file
-w Overwrite output file if it exists
```### To Do
- add high quality switch to create high quality gif
- add transdiff toggle option
- add ability to pass custom ffmpeg and convert args
- add ability to cut the input video clip### Author
- Samar Acharya \