Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

statsbomb/lightgifs

Repository files navigation

lightgifs

Gifs and screenshot for humans 🎥

Installation

pip install -r requirements.txt

Usage

download a sampe video with youtube-dl

youtube-dl https://www.youtube.com/watch\?v\=kdLkEmG05Ak

To generate a gif

from lightgifs.lightgifs import Clip

Clip('Lionel Messi Amazing Freekick Goal vs Liverpool 2019-kdLkEmG05Ak.mkv')
.gif()
.save_gif()

This will generate

To generate a screenshot

from lightgifs.lightgifs import Clip

Clip('Lionel Messi Amazing Freekick Goal vs Liverpool 2019-kdLkEmG05Ak.mkv')
.screenshot('00:00:02')
.save_screenshot()

This will generate

Todo

  • CLI

  • Subclips

  • Gif Settings control

Releases

No releases published

Packages

No packages published

Languages