A powerful and user-friendly tool to extract subtitles from video files using FFmpeg.
- Extract subtitles from multiple video files with a single click
- Support for various subtitle formats (SRT, ASS, VobSub, WebVTT)
- Batch processing with directory and subdirectory selection
- Custom output directory option
- Clear progress tracking with time estimation
- Detailed logging and extraction statistics
The Subtitle Extractor interface showing the directory selection and subdirectory list
- Python 3.7+
- FFmpeg and FFprobe installed and in your system PATH
- CustomTkinter library
-
Clone the repository:
git clone https://github.com/MoshikoKar/subtitle-extractor.git -
Install dependencies:
pip install customtkinter -
Ensure FFmpeg is installed:
- Windows: Download from FFmpeg.org and add to PATH
- macOS:
brew install ffmpeg - Linux:
sudo apt install ffmpeg
-
Run the application:
python extract_subtitles.py -
Select your source directory containing video files
-
Choose the subdirectories you want to process and click "Apply Selection"
-
Select the subtitle language and output format
-
Click "Extract Subtitles" to begin the extraction process
The tool supports extracting subtitles in different languages based on the language codes in the video files. Common language codes include:
eng- Englishheb- Hebrewund- Undefined/Unknown
You can also enter custom language codes in the "Custom Language" field.
The following subtitle formats are supported:
- SRT (SubRip Text) - Most widely compatible format
- ASS (Advanced SubStation Alpha) - Supports advanced styling
- VobSub - DVD subtitle format (.idx/.sub)
- WebVTT - Web Video Text Tracks format
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
