Skip to content

Easily make and share gifs of your favorite YouTube moments. Built to self host with Python, AI, and Docker. Free and open source.

License

Notifications You must be signed in to change notification settings

neonwatty/youtube-gif-maker

Repository files navigation

Easily make and share GIFs of your favorite YouTube moments using Python and AI.

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 -m streamlit run yt_gif_maker/app.py

Install and run the app using Docker

Or run via Docker

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!

About

Easily make and share gifs of your favorite YouTube moments. Built to self host with Python, AI, and Docker. Free and open source.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published