1 个不稳定版本
使用旧的 Rust 2015
0.1.0 | 2016 年 10 月 20 日 |
---|
#62 在 #gif
7KB
124 行
Spiralizer
帮助创建像 这个 一样的 GIF。
受到 Reddit 线程中的这个程序 的启发。
限制
- 目前无法处理视频帧提取或创建
- 动画 GIF 不能按预期工作
- 帧之间的混合看起来很奇怪
- 没有 macOS 构建版本
用法
Spiralizer 0.1.0
Matt Ickstadt <mattico8@gmail.com>
Helps create a swirly timelapse gif
USAGE:
spiralizer.exe <INPUT> <OUTPUT>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<INPUT> A directory full of images to use
<OUTPUT> A directory to output the images to
Supported input formats: PNG JPG GIF ICO BMP
Output images will be saved in PNG format.
使用 FFMpeg 转换视频
视频转图像:ffmpeg -i video.mp4 -vf fps=1 frame_%04d.png
调整 fps=
以更改从视频中保存帧的频率。
基本图像转视频:ffmpeg -i frame%04d.png out.mp4
推荐的图像转视频设置:ffmpeg -i frame%04d.png -framerate 60 -c:v libx264 -r 60 -pix_fmt yuv420p -profile slow -crf 19 out.mp4
依赖项
~12MB
~66K SLoC