Skip to content

A gradio interface for making transcribed and translated subtitles for videos

License

Notifications You must be signed in to change notification settings

EliasVincent/whisper-subtitles-webui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open In Colab

A gradio frontend for generating transcribed or translated subtitles for videos using OpenAI Whisper locally.

Install

This has been tested with Python 3.12

python -m venv .venv

Activate the venv on Windows with

.\.venv\Scripts\activate

On Linux and Mac, run

source .venv/bin/activate

Now, install the pip dependencies:

# if this doesn't work, pip install the following manually: openai-whisper ffmpeg torch gradio

pip install -r requirements.txt

Then launch the server with

python server.py

To share, add --remote=True.

For embedding subtitles into a video, you need to have ffmpeg installed on your system.

Features

  • Input a video or any other media file
  • Input a YouTube URL
  • Transcribe
  • Translate to English
  • Select different models for your hardware
  • CUDA support
  • Output .srt or video file with embedded subtitles

Troubleshooting

If the output says gpu available: False you might need to pip install a different version of Torch for your specific hardware

Why

I just wanted a nice frontend where you can just drop a video or url and it will spit out subs. Whisper is amazing but I haven't found that many implementations, especially ones that can be run locally.

Privacy

By default, Gradio sends some data to its servers. Gradio provides some variables to disable them, which have been applied here.

About

A gradio interface for making transcribed and translated subtitles for videos

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published