VideoSubDub
This script extracts audio from video files, transcribes it into text using OpenAI's Whisper, generates an SRT subtitle file, and translates it into Arabic.
Install / Use
/learn @Dg0x6/VideoSubDubREADME
Video Subtitle & Dubbing
Video Subtitle & Dubbing Converter
Description This project provides two Python scripts for processing video files:
- video_to_srt.py: Extracts audio from video, transcribes it using Whisper, and generates SRT subtitle files in both English and Arabic.
- auto_dubber.py: Performs the same operations as video_to_srt.py, but also generates Arabic voice dubbing and merges it with the video.
Features
✅ Convert video to subtitles (.srt) <br> ✅ Transcribe audio using Whisper (local model, no API required) <br> ✅ Translate subtitles from English to Arabic <br> ✅ Generate Arabic voice dubbing using gTTS <br> ✅ Merge dubbed audio with video <br> ✅ Supports multiple video formats: .mp4, .avi, .mov, .mkv <br>
Installation
1️⃣ Clone the Repository
$ git clone https://github.com/Dg0x6/VideoSubDub.git
$ cd VideoSubDub
2️⃣ Install Dependencies
Make sure you have Python installed (Python 3.8+ recommended). Then, run:
$ pip install -r requirements.txt
$ pip install git+https://github.com/openai/whisper.git
$ pip install moviepy==1.0.3
3️⃣ Download Whisper Model
By default, the scripts use the "base" Whisper model. You can manually download a model if needed:
import whisper
whisper.load_model("base") # Change "base" to "small", "medium", or "large" if needed
Usage
- Convert Video to Subtitles Only To generate English and Arabic subtitles:
$ python video_to_srt.py
Enter the folder path containing your videos when prompted.
- Convert Video to Subtitles & Dubbed Audio To generate subtitles and Arabic dubbing:
$ python auto_dubber.py
Enter the folder path containing your videos when prompted.
Output <br> For each video, the script will generate:
- video_name.srt – English subtitles
- video_name_ar.srt – Arabic subtitles
- video_name_dubbed.mp4 – Video with Arabic voice dubbing (only for auto_dubber.py)
License<br> This project is licensed under the MIT License.
Author<br> 👤 Muhammed Galal
Related Skills
qqbot-channel
352.0kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.6k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
352.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
