Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neonwatty/yt-gif-maker
Easily make and share GIFs of your favorite YouTube moments.
https://github.com/neonwatty/yt-gif-maker
ai machine-learning python streamlit whisper-ai
Last synced: 13 days ago
JSON representation
Easily make and share GIFs of your favorite YouTube moments.
- Host: GitHub
- URL: https://github.com/neonwatty/yt-gif-maker
- Owner: neonwatty
- License: apache-2.0
- Created: 2024-07-22T15:17:02.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T16:22:28.000Z (23 days ago)
- Last Synced: 2024-10-21T19:19:59.700Z (23 days ago)
- Topics: ai, machine-learning, python, streamlit, whisper-ai
- Language: Python
- Homepage:
- Size: 6.79 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YouTube gif maker
Easily make and share GIFs of your favorite YouTube moments.
- [Using the app](#using-the-app)
- [Install and run the app using Python](#install-and-run-the-app-using-python)
- [Install and run the app using Docker](#install-and-run-the-app-using-docker)
- [How it works](#how-it-works)## Using the app
To use the app
1. Find a youtube / shorts url containing a short phrase you want to gif-a-fy
2. Enter text describing the moment you want to gif-a-fy
3. Click the 'create gif' button to create your gif, download, and share!After creation you can manually adjust, trim, or extend the length of your gif.
Here's a brief gif showing how easy it is to create gifs using the app.
And here are a few gifs made using the app
## Install and run the app using Python
To run the app install the associated `requirements.txt` and run
```python
python -m streamlit run yt_gif_maker/app.py
```## Install and run the app using Docker
Or run via Docker
```sh
docker compose up
```You do _not_ need a GPU to run this locally.
## How it works
The app pulls your desired YouTube video and - if available - YouTube's automated transcript. Because these transcripts tend to be low quality, you can also produce your own using any of Whisper's core models (including the newly released turbo).
A vector embedding of the transcription is then created for semantic matching of your input phrase.
Once the best match is found the corresponding timestamps are used to create an initial clip + gif of your input phrase. You can then manually adjust the start/stop time of your gif, download, and share!