Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hizkifw/gifthumb
create gif thumbnails from video
https://github.com/hizkifw/gifthumb
Last synced: about 1 month ago
JSON representation
create gif thumbnails from video
- Host: GitHub
- URL: https://github.com/hizkifw/gifthumb
- Owner: hizkifw
- Created: 2023-05-18T08:52:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-16T11:15:18.000Z (9 months ago)
- Last Synced: 2024-06-21T03:26:03.914Z (6 months ago)
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gifthumb
Generate GIF / animated thumbnails from a video URL.
## How it works
- User requests `/thumb?url=...`
- gifthumb runs `ffprobe` to check the video at the URL
- gifthumb runs N instances of `ffmpeg` to capture frames at equal intervals
across the whole video duration
- another `ffmpeg` instance is run to combine the frames into a gif
- gif is cached and served to user## How to use
Copy `config.example.json` to `config.json` and run
```
go run ./main.go
```