https://github.com/astronomersiva/gifvid
Converts a GIF to an MP4 using ffmpeg
https://github.com/astronomersiva/gifvid
Last synced: about 2 months ago
JSON representation
Converts a GIF to an MP4 using ffmpeg
- Host: GitHub
- URL: https://github.com/astronomersiva/gifvid
- Owner: astronomersiva
- License: mit
- Created: 2018-04-29T17:16:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-02T17:47:54.000Z (about 7 years ago)
- Last Synced: 2025-01-21T20:49:06.335Z (4 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gifvid
Converts a GIF to an MP4 using ffmpeg.Based on the blog [Replace Animated GIFs with Video](https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/replace-animated-gifs-with-video/) by Jeremy Wagner.
### Why?
Because the command given in the blog produces a video that is not supported by Safari and Firefox. The right command is long and needs an alias to be set up unless you have genius level memory.
### Installation
* Install ffmpeg(`brew install ffmpeg` on macOS).
* Clone the repo.
* Run `chmod +x gifvid`.
* Copy this to the bin path by running `cp gifvid /usr/bin`. Use `sudo` if needed.### Usage
`gifvid source`
`source` is mandatory. The converted video will be written to `source.mp4`.
### CLI Flags
`-s`
`--src` - Specify the source.`-d`
`--dest` - Specify the destination. Will be `source.mp4` if not given.`-c`
`--crf` - Constant Rate Factor. Defaults to `25`. Lower the number, higher the quality and file size.