video-to-gif/README.md

31 lines
1.3 KiB
Markdown
Raw Normal View History

2024-06-29 03:03:23 +00:00
# video-to-gif
## Usage
2024-06-29 03:03:23 +00:00
```
usage: video_to_gif.py [-h] -i INPUT [-w WIDTH] [-r FRAMERATE]
[-s {fast_bilinear,bilinear,bicubic,experimental,neighbor,area,bicublin,gauss,sinc,lanczos,spline}]
[-interpolate {none,dup,blend,mci}] [-t TAG]
2024-06-29 03:03:23 +00:00
Use ffmpeg to make GIFs from videos
options:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Input pattern like '/users/MyName/Videos/*.mov'
-w WIDTH, --width WIDTH
Width of the GIF in pixels, respecting aspect ratio (default: 960)
2024-06-29 03:03:23 +00:00
-r FRAMERATE, --framerate FRAMERATE
Framerate of GIF (default: 12)
-s {fast_bilinear,bilinear,bicubic,experimental,neighbor,area,bicublin,gauss,sinc,lanczos,spline}, --scaler {fast_bilinear,bilinear,bicubic,experimental,neighbor,area,bicublin,gauss,sinc,lanczos,spline}
Scaling algorithm to use (default: lanczos)
-interpolate {none,dup,blend,mci}, --interpolate {none,dup,blend,mci}
Interpolation method to use (default: none)
2024-06-29 03:03:23 +00:00
-t TAG, --tag TAG Optional tag included in file name
— Be gay and do crime
```
## Docker
```shell
docker build -t video_to_gif:latest .
docker run video_to_gif --help
2024-06-29 03:03:23 +00:00
```