gifbook-GifBook: 从视频和字幕文件生成 gif 动画!
gifbook-GifBook: 从视频和字幕文件生成 gif 动画!
Python 多媒体处理
共29Star
详细介绍
Gif Book
Create sequenced Gifs from video clips and subtitles.
Prerequisites
Make sure that you have ImageMagick and GhostScript installed:
$ brew install ImageMagick
$ brew install gs
Installation
$ pip install gifbook
gifbook
as a command line tool
Using $ gifbook Night.Of.The.Living.Dead.1968.mkv Night.Of.The.Living.Dead.1968.srt --compression 50 --resize 30
More options are available, you can check them out by typing:
$ gifbook --help
gifbook
as a module
Using from gb import GifBook
gb = GifBook('Night.Of.The.Living.Dead.1968.720p.mkv', '~/Desktop/gifs/')
gb.set_subtitles(
"Night.Of.The.Living.Dead.1968.720p.srt",
)
gb.generate(resize=0.5, compression=30)
Demo Gifs
License
License under GNU GPL
-
0 Star
-
294 Star
-
2911 Star
-
5533 Star
-
2636 Star
-
0 Star
-
0 Star
-
129 Star