Skip to playerSkip to main content
Stop wasting hours transcribing your videos manually! In this step-by-step tutorial, I show you how to set up and run a local subtitle generator using Python and the Auto Subtitle library, powered by OpenAI's Whisper model.

I cover all the necessary prerequisites (Python 3.7+ and FFMPEG environment setups) before taking you through the simple terminal installation command. You'll learn how to instantly generate a matching SRT file for any video, switch between different Whisper model sizes (Tiny, Base, Small, Medium, Large) depending on your accuracy needs, and even automatically translate your results into English!

To Install the repo
pip install git+https://github.com/m1guelpf/auto-subtitle.git

To use
auto_subtitle "Test.mp4" --srt_only TRUE

Original YouTube Tutorial: https://youtu.be/x5zES2J3Aus

Connected Videos in this Series:
* How to Install GIT:
https://www.dailymotion.com/video/xa71vgq
* How to Install Python & Set Environment Variables:
https://www.dailymotion.com/video/xa8ony2
* How to Install FFMPEG:
https://www.dailymotion.com/video/xa71wxg

Source/Model Resources:
* Auto Subtitle GitHub Repository (by m1guelpf): https://github.com/m1guelpf/auto-subtitle
* Powered by OpenAI Whisper Models

Video Details:
* Original Publish Date: May 15, 2024
* Focus: Local AI Transcription / SRT Generation / Python Automation / OpenAI Whisper
* Test Hardware: RTX 4060 Ti (16GB VRAM)

Follow lordcaocao2025 on Dailymotion for more deep dives into AI workflow optimization, Python script automation, and local machine learning tools!

---
Connect with me:
📺 YouTube: https://www.youtube.com/@CaoCao2025
📱 TikTok: https://www.tiktok.com/@caocao20250
💎 Patreon: https://www.patreon.com/cw/Caocao2025

#WhisperAI #Subtitles #SRT #Python #VideoEditing #AITutorial #Automation #lordcaocao2025
Transcript
00:00Hello guys, welcome back with me, CiaoCiao2025.
00:04Today we're going to learn about how to create a SRT subtitle file for your video using Python
00:09and Auto Subtitle Library.
00:11First, you need to install Python.
00:13In this example I use Python 3.9, but you could use other Python versions starting from
00:18Python 3.7.
00:20Next, you need fmpeg.
00:22You must set up ffmpeg in environment variables.
00:27It is optional, but I suggest you install it for easy installation process.
00:31I already cover how to install Python, fmpeg, and git in another video.
00:36You could check it out yourself.
00:37Link in the description.
00:39Now let's start the installing process.
00:42Go to github.com slash m1gelpf slash auto dash slash auto dash subtitle.
00:50I also put the link on description.
00:52This is the github description.
00:54You could learn if you want.
00:55Now, after you read the description and you think it's okay to install, open your command
01:00prompt.
01:01Write this pip install git plus http us colon double slash github dot com slash m1gelpf slash
01:11auto subtitle dot git and then press enter.
01:15Don't worry, you could see the script on description or on the github page.
01:19This will install auto subtitle into your Python library.
01:23To create a subtitle file or SRT, use this command that is auto subtitle video location double
01:31minus SRT underscore true.
01:32This will generate SRT file with the same name of view video.
01:37The logic of the program is that it's going to use whisper model to listen to the voice
01:42and convert it to text.
01:44The default model that it used is the small whisper.
01:46You could add double minus model, and after that you could add a model that you want from
01:51tiny tiny dot n, base base dot n, small small dot n, medium dot n, and large.
01:57You could also add double minus translator's parameter so the subtitle will be translated
02:03into English.
02:04Hear the example result.
02:14Hello guys, welcome back with me, chow chow 2025.
02:20Today we're going to learn about using to control net.
02:51Hello guys, welcome back with me, chow chow 2025.
02:56Today we're going to learn about using to control net.
03:00If you want to know how to install control net on automatic 1111, we already create the
03:06video before.
03:07Just check the description for the link.
03:10For this example, let's combine open pose with canny to make a certain expression.
03:15expression.
03:15This two combination really created a very good expression, head position.
03:20expression.
03:21Don't forget to like, share, and comment.
03:23And see you again on the next episode.
03:25Have a nice day.
03:27Have a nice day.
03:27Please subscribe.
Comments

Recommended