从视频和图像序列创建压缩gif
vid2gif的Python项目详细描述
VID2GIF
将一个视频或多个图像转换为优化的gif。
- 适合文本,如控制台屏幕录制。
- 需要gifsicle,convert和ffmpeg/avconv二进制文件。
目录
Installation
Latest development release on github
拉入并安装到当前目录:
pip install -e git+https://github.com/casperdcl/vid2gif.git@master#egg=vid2gif
Changelog
所有更改的列表可在Github的版本中找到: 或爬虫程序,如 allmychanges.com。
Usage
vid2gif [–help | options] <outfile> <infile>…
Documentation
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]