2024-06-29 03:03:23 +00:00
|
|
|
# video-to-gif
|
2024-07-03 04:15:18 +00:00
|
|
|
## Usage
|
2024-06-29 03:03:23 +00:00
|
|
|
```
|
2024-07-03 04:15:18 +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
|
2024-07-03 04:15:18 +00:00
|
|
|
Width of the GIF in pixels, respecting aspect ratio (default: 960)
|
2024-06-29 03:03:23 +00:00
|
|
|
-r FRAMERATE, --framerate FRAMERATE
|
2024-07-03 04:15:18 +00:00
|
|
|
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
|
2024-07-03 04:15:18 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Docker
|
|
|
|
```shell
|
|
|
|
docker build -t video_to_gif:latest .
|
|
|
|
docker run video_to_gif --help
|
2024-06-29 03:03:23 +00:00
|
|
|
```
|