- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Stop Paying for Captions! Generate FREE Auto Subtitles in Python & Whisper AI
🚀 Generate 100% Accurate Auto-Subtitles for FREE using Python & OpenAI's Whisper AI! – Urdu/Hindi AI Tutorial with English Subs!
Tired of paying for expensive caption tools or struggling to find free options? In this video, I will show you exactly how to build your own local Auto-Subtitle generator using Python, FFmpeg, and the OpenAI Whisper model. Convert your Urdu/Hindi audio into perfect English .srt files in just a few minutes, completely free and offline!
⏰ Timestamps:
0:00 Intro & The 1 Million Subs Vision
0:28 The Problem with Paid Subtitle Tools
1:32 Step 1: Installing FFmpeg via PowerShell (Winget)
3:05 Step 2: Setting up Requirements & The Python Script
3:37 Step 3: Processing the Video with Whisper AI
6:25 The Magic: .srt File is Ready!
8:53 Outro & Support the Channel
🔗 Resources:
FFmpeg Official: https://ffmpeg.org/
OpenAI Whisper GitHub: https://github.com/openai/whisper
requirements.txt:
openai-whisper
torch
ffmpeg-python
subtitles.py:
import whisper
import os
VIDEO_FILE = "video.mp4"
def format_timestamp(seconds):
hrs = int(seconds // 3600)
mins = int((seconds % 3600) // 60)
secs = int(seconds % 60)
ms = int((seconds - int(seconds)) * 1000)
return f"{hrs:02}:{mins:02}:{secs:02},{ms:03}"
def create_srt(segments, filename="subtitles.srt"):
with open(filename, "w", encoding="utf-8") as f:
for i, seg in enumerate(segments, start=1):
start = format_timestamp(seg["start"])
end = format_timestamp(seg["end"])
text = seg["text"].strip()
f.write(f"{i}\n")
f.write(f"{start} -- {end}\n")
f.write(f"{text}\n\n")
def main():
if not os.path.exists(VIDEO_FILE):
print("❌ video.mp4 folder mein nahi mili.")
return
print("⏳ Model load ho raha hai...")
model = whisper.load_model("base")
print("🎙️ Video process ho rahi hai...")
result = model.transcribe(
VIDEO_FILE,
task="translate"
)
print("📝 SRT file ban rahi hai...")
create_srt(result["segments"])
print("✅ subtitles.srt successfully create ho gayi!")
if __name__ == "__main__":
main()
👍 If this automation saved you time and money, please Like and Share it with your creator friends!
🔔 Subscribe to Ali Ahmed's AI Lab and join our journey to 1 Million+ subscribers before June 2027!
#AutoSubtitles #PythonTutorial #OpenAIWhisper #FFmpeg #UrduAI #MachineLearning #ContentCreation
🌐 GitHub: https://github.com/ali112919821
💼 LinkedIn: https://www.linkedin.com/in/ali112919821/
📧 For Business: aliahmed.ailab@gmail.com
Видео Stop Paying for Captions! Generate FREE Auto Subtitles in Python & Whisper AI канала Ali Ahmed's AI Lab
Tired of paying for expensive caption tools or struggling to find free options? In this video, I will show you exactly how to build your own local Auto-Subtitle generator using Python, FFmpeg, and the OpenAI Whisper model. Convert your Urdu/Hindi audio into perfect English .srt files in just a few minutes, completely free and offline!
⏰ Timestamps:
0:00 Intro & The 1 Million Subs Vision
0:28 The Problem with Paid Subtitle Tools
1:32 Step 1: Installing FFmpeg via PowerShell (Winget)
3:05 Step 2: Setting up Requirements & The Python Script
3:37 Step 3: Processing the Video with Whisper AI
6:25 The Magic: .srt File is Ready!
8:53 Outro & Support the Channel
🔗 Resources:
FFmpeg Official: https://ffmpeg.org/
OpenAI Whisper GitHub: https://github.com/openai/whisper
requirements.txt:
openai-whisper
torch
ffmpeg-python
subtitles.py:
import whisper
import os
VIDEO_FILE = "video.mp4"
def format_timestamp(seconds):
hrs = int(seconds // 3600)
mins = int((seconds % 3600) // 60)
secs = int(seconds % 60)
ms = int((seconds - int(seconds)) * 1000)
return f"{hrs:02}:{mins:02}:{secs:02},{ms:03}"
def create_srt(segments, filename="subtitles.srt"):
with open(filename, "w", encoding="utf-8") as f:
for i, seg in enumerate(segments, start=1):
start = format_timestamp(seg["start"])
end = format_timestamp(seg["end"])
text = seg["text"].strip()
f.write(f"{i}\n")
f.write(f"{start} -- {end}\n")
f.write(f"{text}\n\n")
def main():
if not os.path.exists(VIDEO_FILE):
print("❌ video.mp4 folder mein nahi mili.")
return
print("⏳ Model load ho raha hai...")
model = whisper.load_model("base")
print("🎙️ Video process ho rahi hai...")
result = model.transcribe(
VIDEO_FILE,
task="translate"
)
print("📝 SRT file ban rahi hai...")
create_srt(result["segments"])
print("✅ subtitles.srt successfully create ho gayi!")
if __name__ == "__main__":
main()
👍 If this automation saved you time and money, please Like and Share it with your creator friends!
🔔 Subscribe to Ali Ahmed's AI Lab and join our journey to 1 Million+ subscribers before June 2027!
#AutoSubtitles #PythonTutorial #OpenAIWhisper #FFmpeg #UrduAI #MachineLearning #ContentCreation
🌐 GitHub: https://github.com/ali112919821
💼 LinkedIn: https://www.linkedin.com/in/ali112919821/
📧 For Business: aliahmed.ailab@gmail.com
Видео Stop Paying for Captions! Generate FREE Auto Subtitles in Python & Whisper AI канала Ali Ahmed's AI Lab
Комментарии отсутствуют
Информация о видео
18 марта 2026 г. 18:01:01
00:07:25
Другие видео канала





















