从视频和图像序列创建压缩GIF
项目描述
vid2gif
将视频或多个图像转换为优化的GIF。
适用于控制台屏幕录制等文本。
需要 gifsicle,convert 和 ffmpeg/avconv 可执行文件。
安装
最新的PyPI稳定版
pip install vid2gif
GitHub上的最新开发版
在当前目录下拉取并安装
pip install -e git+https://github.com/casperdcl/vid2gif.git@master#egg=vid2gif
变更日志
所有变更的列表可在GitHub的发行版中找到: 或在类似 allmychanges.com 的爬虫网站上。
用法
vid2gif [–help | 选项] <输出文件> <输入文件>…
文档
vid2gif --help
-h, --help Print this help text and exit
-v, --version Print version number and exit
-a=<a>, --avconv=<a> FFMpeg executable in PATH [default: avconv]
-c=<c>, --convert=<c> Conversion executable in PATH [default: convert]
-C=<C>, --cdepth=<C> Colour conversion depth [default: 3]
-d=<d>, --dupdir=<d> Directory to move duplicate input files into
[default: vid2gif_dup]
-D, --nodup Don't move duplicates (ignores `dupdir`)
-g=<g>, --gifsicle=<g>
gifsicle executable in PATH [default: gifsicle]
-i, --interactive Pause and wait for the user to manually tweak images
after video -> image conversion
-l=<level>, --log=<level>
Print various types of debugging information. Choices:
CRITICAL|FATAL
ERROR
WARN(ING)
[default: INFO]
DEBUG
NOTSET
-L, --log-trace Print lots of debugging information (-D NOTSET)
-n, --just-print Don't execute commands, just show them (dry-run, recon)
-T=<T>, --period=<T> Frame period [default: 10]
-t=<t>, --tmpdir=<t> Directory to use as scratch space
[default: vid2gif_tmp]
贡献
所有源代码托管在 GitHub 上。欢迎贡献力量。
有关更多信息,请参阅 CONTRIBUTE 文件。