Skip to content

phips4/yts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yts (YouTube Summarize)

Yts is an open source Elixir Phoenix LiveView prototype that takes a YouTube video and generates a textual summary. It uses modern ML tools like OpenAI Whisper and Facebook's BART for transcription and summarization. yts

The video used in the preview is 6.27 MB in size and spans 10mins 18s. On my local machine on CPU only it took 1min 14s to download and process. It can be optimized with a faster internet connection and running the ML tasks on the GPU.

How it works

When a URL is entered, it is validated and the YouTube video ID is extracted to display the video thumbnail. Meanwhile, the server downloads the video using the yt-dlp CLI tool.
Once the download is complete, ffmpeg encodes the audio and splits it into 60-second chunks so that OpenAI Whisper can generate text transcriptions.
All text chunks are then joined and passed through Facebook's BART model to generate a summary.

Try it out

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Technology used

About

a tool to generate a textual summary of a youtube video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published