Update README.md and documentation in video_to_gif2.py

This commit is contained in:
Amber 2024-12-11 20:37:48 -05:00
parent 23d9ae3cc2
commit 5a1fae172e
2 changed files with 29 additions and 3 deletions

View File

@ -1,7 +1,33 @@
# video-to-gif # video-to-gif
## Usage ## video_to_gif.py usage
``` ```
usage: video_to_gif.py [-h] [-w WIDTH] [-r FRAMERATE] [-e] [-t TAG] INPUT [INPUT ...] usage: video_to_gif.py [-h] [-w WIDTH] [-r FRAMERATE]
[-s {fast_bilinear,bilinear,bicubic,experimental,neighbor,area,bicublin,gauss,sinc,lanczos,spline}]
[-i {none,dup,blend,mci}] [-t TAG]
INPUT [INPUT ...]
Use ffmpeg 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)
-s, --scaler {fast_bilinear,bilinear,bicubic,experimental,neighbor,area,bicublin,gauss,sinc,lanczos,spline}
scaling algorithm to use (default: lanczos)
-i, --interpolate {none,dup,blend,mci}
interpolation method to use (default: none)
-t, --tag TAG optional tag included in file name
— Be gay and do crime
```
## video_to_gif2.py usage
```
usage: video_to_gif2.py [-h] [-w WIDTH] [-r FRAMERATE] [-e] [-t TAG] INPUT [INPUT ...]
Use ffmpeg and gifski to make GIFs from videos Use ffmpeg and gifski to make GIFs from videos

View File

@ -9,7 +9,7 @@ from typing import Any, Dict, List, Tuple
def get_args() -> Dict[str, Any]: def get_args() -> Dict[str, Any]:
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
prog='video_to_gif.py', prog='video_to_gif2.py',
description='Use ffmpeg and gifski to make GIFs from videos', description='Use ffmpeg and gifski to make GIFs from videos',
epilog='— Be gay and do crime') epilog='— Be gay and do crime')
parser.add_argument('input', type=str, metavar='INPUT', nargs='+', \ parser.add_argument('input', type=str, metavar='INPUT', nargs='+', \