This project is a clean and improved fork of the original repository by Sectumsempra82.
Goal: simplify usage, improve stability, and add automatic translation.
Bu araç, videolarınız için otomatik altyazı oluşturabilir, altyazıları istediğiniz dile çevirebilir
veya hem orijinal hem de çevrilmiş altyazıyı (çift dil; örneğin türkçe-ingilizce altyazı) aynı anda üretebilir.
- Automatic subtitle translation (Google Translate backend)
- Disable translation with
--translate-off - Target language selection via
--translate-to tr|fr|... - Batch translation & multithreading for speed
- Clear, grouped CLI (Output, Language, Performance, Advanced)
- Stable Whisper integration for robust transcription
- Subtitled videos saved with
_subtitled.mp4 - Cleaner logs and small performance tweaks
Supports Python 3.7 – 3.11.
pip install git+https://github.com/seyithokelek/auto-subtitle-plusAlso install ffmpeg (if not already installed):
# Ubuntu/Debian
sudo apt install ffmpeg
# macOS (Homebrew)
brew install ffmpeg
# Windows (Chocolatey)
choco install ffmpegBy default, this creates an .srt next to your video (it does not embed unless you ask for it):
auto_subtitle_plus video_name.*This produces video_name.srt.
auto_subtitle_plus video.mp4 --output-videoOutputs video_subtitled.mp4.
auto_subtitle_plus video.mp4 --translate-to fr --output-srtauto_subtitle_plus video.mp4 --translate-off --output-srtauto_subtitle_plus *.mp4 --output-srtauto_subtitle_plus *.mp4 *.mkv *.mov --output-srtauto_subtitle_plus *.mp4 --output-videoCreates *_subtitled.mp4 for each input that produced subtitles.
auto_subtitle_plus *.mp4 --translate-to tr --output-srtshopt -s globstar nullglob
auto_subtitle_plus **/*.mp4 --output-srtGet-ChildItem -Recurse -Include *.mp4,*.mkv,*.mov | ForEach-Object {
auto_subtitle_plus $_.FullName --output-srt
}auto_subtitle_plus video.mp4 --device cpuauto_subtitle_plus video.mp4 --device cudaEnsure your PyTorch installation has CUDA support. If CUDA is unavailable, the tool falls back to CPU.
- Audio extraction workers (CPU processes):
--extract-workers 4 - Translation batch size:
--batch-size 20 - Translation threads:
--max-workers 8
Example (batch SRT with tuned settings):
auto_subtitle_plus *.mp4 --output-srt --batch-size 20 --max-workers 8 --extract-workers 4auto_subtitle_plus *.mp4 --model large --device cuda --output-srtauto_subtitle_plus --helpMIT. See LICENSE.
This fork acknowledges and builds upon the original work by Sectumsempra82 and its README (provided as README_org.md).