Skip to main content

Subtitle Generator

PyPI Docs Version Python 3.9+ License: MIT

Full Documentation: 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

pip install subtitle-generator
subtitle setup-whisper          # downloads prebuilt whisper-cli (or builds from source)
subtitle doctor                 # verify whisper-cli, ffmpeg, GPU & models

Optional extras:

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

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

Metadata

Release files for subtitle-generator 4.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for subtitle-generator 4.0.1
File Size Uploaded Provenance Actions
subtitle_generator-4.0.1.tar.gz 82.9 kB Without provenance Details for subtitle_generator-4.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for subtitle-generator 4.0.1
File Interpreter ABI Platform Actions
subtitle_generator-4.0.1-py3-none-any.whl Python 3 none any Details for subtitle_generator-4.0.1-py3-none-any.whl

Total release size: 157.5 kB

Release files / subtitle_generator-4.0.1.tar.gz

Download URL subtitle_generator-4.0.1.tar.gz
Size 82.9 kB
Tags Source
SHA-256 checksum
How to use checksums
db22a9708ecc31a9a9c502a35a7611139c2352d3c55918522e01668a1ada0585
BLAKE2b-256 checksum
How to use checksums
c118cbd473a4aa1d04031a480e52922222e4938ea0e88987164f42a128a7f41b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / subtitle_generator-4.0.1-py3-none-any.whl

Download URL subtitle_generator-4.0.1-py3-none-any.whl
Size 74.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23565721c8b34ebfaa9d94154bb6805e1dd3791d3fd254208ff202eb55ba1880
BLAKE2b-256 checksum
How to use checksums
6db1e8f4b7daa6021c27707bc86ee6b3b98a9654a838643f992048c1f0847bf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for subtitle-generator 4.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page