Metadata-Version: 2.4
Name: subtitle-generator
Version: 4.1.1
Summary: Industry-standard, cross-platform AI subtitle generation, styling, QC, and embedding toolkit.
Author-email: Ved Gupta <vedgupta@protonmail.com>
Maintainer-email: Ved Gupta <vedgupta@protonmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/innovatorved/subtitle
Project-URL: Documentation, https://subtitle.vedgupta.in
Project-URL: Repository, https://github.com/innovatorved/subtitle.git
Project-URL: Issues, https://github.com/innovatorved/subtitle/issues
Project-URL: Changelog, https://github.com/innovatorved/subtitle/releases
Keywords: subtitle,subtitles,captions,transcription,whisper,whisper.cpp,faster-whisper,vad,ai,speech-to-text,video,audio,srt,vtt,ass,ttml,karaoke
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tqdm>=4.66.0
Requires-Dist: tomli>=2.0.1; python_version < "3.11"
Provides-Extra: ffmpeg
Requires-Dist: imageio-ffmpeg>=0.5.1; extra == "ffmpeg"
Provides-Extra: yt
Requires-Dist: yt-dlp>=2024.12.0; extra == "yt"
Provides-Extra: gdrive
Requires-Dist: gdown>=5.2.0; extra == "gdrive"
Provides-Extra: faster-whisper
Requires-Dist: faster-whisper>=1.1.0; extra == "faster-whisper"
Provides-Extra: cloud
Requires-Dist: openai>=1.50.0; extra == "cloud"
Provides-Extra: translate
Requires-Dist: argostranslate>=1.9.6; extra == "translate"
Provides-Extra: all
Requires-Dist: imageio-ffmpeg>=0.5.1; extra == "all"
Requires-Dist: yt-dlp>=2024.12.0; extra == "all"
Requires-Dist: gdown>=5.2.0; extra == "all"
Requires-Dist: faster-whisper>=1.1.0; extra == "all"
Requires-Dist: openai>=1.50.0; extra == "all"
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
Requires-Dist: ruff>=0.8.0; extra == "dev"
Requires-Dist: mypy>=1.13.0; extra == "dev"
Requires-Dist: build>=1.2.0; extra == "dev"
Requires-Dist: twine>=5.0.0; extra == "dev"
Dynamic: license-file

# Subtitle Generator

[![PyPI](https://badge.fury.io/py/subtitle-generator.svg)](https://pypi.org/project/subtitle-generator/)
[![Docs](https://img.shields.io/badge/docs-subtitle.vedgupta.in-F97316)](https://subtitle.vedgupta.in)
[![Version](https://img.shields.io/badge/version-v4.1.1-18181b)](https://github.com/innovatorved/subtitle/releases/tag/v4.1.1)
[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

**Full Documentation:** **[https://subtitle.vedgupta.in](https://subtitle.vedgupta.in)**

**Industry-standard, cross-platform AI subtitle generation, styling, QC, and embedding toolkit.**  
Runs locally on macOS (Apple Silicon Metal), Linux (CPU / CUDA / Vulkan), Windows, and Docker — with optional `faster-whisper` and OpenAI/Groq cloud backends.

## Install

```bash
pip install subtitle-generator
subtitle video.mp4              # zero-config: auto-installs prebuilt whisper-cli + model on first run!
```

Optional extras:

```bash
pip install 'subtitle-generator[yt]'              # YouTube / TikTok / Vimeo URLs via yt-dlp
pip install 'subtitle-generator[ffmpeg]'          # Bundled static ffmpeg fallback
pip install 'subtitle-generator[gdrive]'          # Google Drive URLs via gdown
pip install 'subtitle-generator[faster-whisper]'  # CTranslate2 NVIDIA GPU backend
pip install 'subtitle-generator[cloud]'           # OpenAI / Groq Whisper API + LLM translation
pip install 'subtitle-generator[translate]'       # Offline local subtitle translation (Argos)
pip install 'subtitle-generator[all]'             # Everything
```

## Highlights (v4.0)

- **Zero-Friction Cross-Platform Setup:** Prebuilt SHA-256 verified `whisper-cli` binaries with CMake + GPU source-build fallback and `subtitle doctor` diagnostics.
- **Silero VAD + Live Progress:** Voice Activity Detection enabled by default (2–3× faster, eliminates silence hallucinations) with real-time percentage progress streaming.
- **Broadcast & Creator Presets:** `--preset netflix|bbc|reels` CPL/CPS reflow, balanced line wrapping, hallucination scrubber, and `subtitle lint` QC validator.
- **Styled `.ass` & Word-Highlighted Karaoke Captions:** `--burn --style clean|box|karaoke|cinema` with hardware H.264 encoder auto-detection (`videotoolbox` / `nvenc`).
- **One-Pass Multi-Format Export:** `--format srt,vtt,ass,ttml,json` in a single transcription run.
- **Complete Toolkit:** `doctor`, `batch` (`--recursive`, `--resume`, `--merge`, `--burn`), `watch`, `convert`, `lint`, `shift`, `translate`, `config`, and `--json` output.

## Quick Examples

```bash
subtitle video.mp4 --format srt,vtt,ass --preset netflix
subtitle reel.mp4 --burn --style karaoke --preset reels
subtitle video.mp4 --merge --format srt
subtitle lint video.srt --standard netflix
subtitle shift video.srt --offset +500 -o synced.srt
subtitle translate video.srt --to es
subtitle batch -i ./videos -o ./subs --recursive --preset netflix
subtitle watch ./incoming -o ./subs --model turbo
```

## Links

- **Documentation:** [https://subtitle.vedgupta.in](https://subtitle.vedgupta.in)
- **Getting Started:** [https://subtitle.vedgupta.in/docs/getting-started](https://subtitle.vedgupta.in/docs/getting-started)
- **CLI Reference:** [https://subtitle.vedgupta.in/docs/cli-reference](https://subtitle.vedgupta.in/docs/cli-reference)
- **Formats, Karaoke & Netflix Lint:** [https://subtitle.vedgupta.in/docs/formats](https://subtitle.vedgupta.in/docs/formats)
- **Source Code:** [https://github.com/innovatorved/subtitle](https://github.com/innovatorved/subtitle)
- **Issues:** [https://github.com/innovatorved/subtitle/issues](https://github.com/innovatorved/subtitle/issues)
