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 video.mp4              # zero-config: auto-installs prebuilt whisper-cli + model on first run!

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.1.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.1.1
File Size Uploaded Provenance Actions
subtitle_generator-4.1.1.tar.gz 82.9 kB Without provenance Details for subtitle_generator-4.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 157.9 kB

Release files / subtitle_generator-4.1.1.tar.gz

Download URL subtitle_generator-4.1.1.tar.gz
Size 82.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b60db55df570c4d3ab8889d79dc2dcf55b43814753c8630b6c5143f998ce95bb
BLAKE2b-256 checksum
How to use checksums
eb31d3ae74ad4d3cb0b4d1b0f53926dec3dcf5b091a684870adc5eafaf6c97c5
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.1.1-py3-none-any.whl

Download URL subtitle_generator-4.1.1-py3-none-any.whl
Size 75.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f89f234aca05d5803b08f9b229018117046d5b3e10c7abd86d0f5cf32856407
BLAKE2b-256 checksum
How to use checksums
bd514f7653588351df059d860bc3bade1b8f20ecdcd9b6c46f67d68596bd104c
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.1.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