PySubs banner

PySubs

2 devlogs
3h 13m 3s

Add Subtitles to your videos!

This project uses AI

Perplexity to fix bugs

slowonarocket

Day 2

I finally finished working on this cli tool. Its working right now however i still want to compile this into a .exe to make it easier to use.

What was done

  • Whisper implementation
  • Adding the subtitles to videos
  • Being able to use any font you would like!

To be honest tweaking the font settings and understanding how moviepy worked was probably the hardest part of this. Also since i don’t have a dynamic font size this only works for 1920x1080 videos.


What’s next ?

The next thing I’m planning on doing is making a user interface to make everything easier ill also add options to tweak the font and other settings. I might try another UI library since tkinter isn’t my favorite thing to use.

The attachment is a hack club video I subtitled with PySubs

0
slowonarocket

Day 0 - The Foundation

For now I’m working on a CLI exclusive version. However i plan to make it have a user interface and compile it. The work completed today wasn’t a lot but its pretty important. Using TKinter a python ui library i let users select the video file they want to use which is then separated using moviepy to keep the audio. I also worked on the Speech To Text part to create a Subtitles file(.srt). I tried using Vosk to do that but it didnt work well and it took a lot of time to do its work. On day 1 i will be using the whisper model from openai to create the subtitles and add them to the video using moviepy.

1

Comments

chefpenguino
chefpenguino about 2 months ago

really cool project! the whisper model is really good, i used it for another one of my projects and it was actually quite accurate. hope all goes well brother :)