DeepSubtitles - generates subtitles and renders them onto the video. [Build]

Dhravya - Mar 13 '22 - - Dev Community

Overview of My Submission

It is a python script that takes a Video, and Renders subtitles onto it. Transcriptions are fetched from Deepgram

Submission Category: Accessibility Advocates

Link to Code on GitHub

GitHub logo Dhravya / DeepSubtitles

A Python script that generates subtitles and renders them onto the video.

DeepSubtitles Logo

DeepSubtitles

A Python script that generates subtitles and renders them to the video.

This was made as a submission for the DeepGram x Dev Hackathon


Here's a Demo 👀

What it does:

  • Takes a video file's path as the input
  • Generates Subtitles from the video's contents
  • Renders them onto the video

Goal of this project was to provide accessibility to the video for people with disabilities.

Features

  • 💯 Accurate subtitles, powered by Deepgram
  • Customisable
  • 👀 Heavily commented and documented code

One Caveat is that it's not a fast script and probably not ideal for a production environment.

If you have any questions, please feel free to reach out to me, if you'd like to contribute to this project, feel free to make an issue on Github

Installation and Usage

Clone this repository and download the requirements:

git clone https://github.com/Dhravya/DeepSubtitles
cd DeepSubtitles
pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

Then, go to src/conf.py…

Additional Resources / Info

Here's a small demo.
(You can also check the MP4 version of this with audio here)
Here's a demo

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player