https://github.com/kvdomingo/mp4-to-gif
A simple Python script to convert short videos to GIFs.
https://github.com/kvdomingo/mp4-to-gif
Last synced: 25 days ago
JSON representation
A simple Python script to convert short videos to GIFs.
- Host: GitHub
- URL: https://github.com/kvdomingo/mp4-to-gif
- Owner: kvdomingo
- Created: 2021-01-08T17:35:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-14T11:12:21.000Z (about 4 years ago)
- Last Synced: 2025-05-08T03:08:13.203Z (25 days ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mp4-to-gif
A simple script to convert short videos to GIFs.
## Instructions
1. Install dependencies in your environment (recommended):
```commandline
pip install -r requirements.txt
```1.5 Install latest version of [ImageMagick](https://imagemagick.org/script/download.php) (optional, recommended) for higher quality GIFs
2. Place your video in the project root.
3. Run the following:
```commandline
python mp42gif.py -f FILENAME.mp4 -c 90 -o OUTPUT_FILENAME.gif
```4. The `-c` (compression) and `-o` (output filename) flags are optional. Omitting the compression flag will not apply any compression to the output. Omitting the output filename will use the same filename as the source file.