Use ffmpeg to make GIFs from videos
Go to file
2024-12-11 00:37:22 -05:00
Dockerfile A bunch of stuff, including outsourcing globs to the shell, positional input argument, more consistent edocs, and better Docker handling 2024-07-05 21:52:15 -04:00
README.md Added --extra command to video_to_gif2.py, updated documentation in README.md 2024-12-11 00:37:22 -05:00
video_to_gif2.py Added --extra command to video_to_gif2.py, updated documentation in README.md 2024-12-11 00:37:22 -05:00
video_to_gif.py Better input handling 2024-07-25 23:22:49 -04:00

video-to-gif

Usage

usage: video_to_gif.py [-h] [-w WIDTH] [-r FRAMERATE] [-e] [-t TAG] INPUT [INPUT ...]

Use ffmpeg and gifski to make GIFs from videos

positional arguments:
  INPUT                 input file, supports passing a glob like /Users/MyName/Videos/*.mov

options:
  -h, --help            show this help message and exit
  -w, --width WIDTH     width of the GIF in pixels, respecting aspect ratio (default: 960)
  -r, --framerate FRAMERATE
                        framerate of GIF (default: 12)
  -e, --extra           increase quality at the expense of file size and encoding time
  -t, --tag TAG         optional tag included in file name

— Be gay and do crime

Docker

Docker only works for the video_to_gif.py script.

docker build -t video_to_gif:latest .
docker run --rm -it video_to_gif --help
docker run -it --rm -v "/Users/MyUsername/Movies/:$PWD" video_to_gif $PWD/my_movie.mov