Skip to main content

Add missing subtitles. Recursive video-to-SRT transcription using whisper.cpp

Project description

NOTE: This is a vibe coded app. Proceed with caution.

add_subs_to_videos

You have video files but no subtitles. This tool fixes that.

It crawls a directory recursively, transcribes every video it finds using whisper.cpp, and writes a .srt sidecar file next to each one. Already-transcribed files are skipped, so re-running is fast and safe.

Install

Ubuntu (snap — recommended, no prerequisites):

sudo snap install add-subs-to-videos

Any platform with Python 3.12+:

pip install add-subs-to-videos
# or
pipx install add-subs-to-videos

pywhispercpp compiles a C++ extension at install time (requires CMake). On macOS, Metal is auto-detected. On Linux with CUDA:

WHISPER_CUDA=1 pip install add-subs-to-videos

Usage

add_subs_to_videos /path/to/videos
add_subs_to_videos /path/to/videos --model large-v3 --language en
add_subs_to_videos /path/to/videos --force   # re-transcribe even if .srt exists

movie.mp4movie.srt, placed in the same directory. Supports .mp4, .mkv, .avi, .mov, .m4v, .webm, and more.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

add_subs_to_videos-0.1.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

add_subs_to_videos-0.1.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file add_subs_to_videos-0.1.1.tar.gz.

File metadata

  • Download URL: add_subs_to_videos-0.1.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for add_subs_to_videos-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e464ccd82ff2dd27eef6dbc13e11fd1a83bc0db9138863c7a1d34dec56e9bcbc
MD5 7a97e5ce6753b67a820f018d7d0ac739
BLAKE2b-256 88a1b3271f31aaf28384ca54ba28adfcfc897c05355bf3249de2c7b187603d95

See more details on using hashes here.

File details

Details for the file add_subs_to_videos-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: add_subs_to_videos-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for add_subs_to_videos-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cbb140ad018612cebb507f3c7b4d71cf68b397d62f8195393812725752b9d14
MD5 bc2f745ba28c3fdbd84957e3f3fbae33
BLAKE2b-256 836794b20952040892ebe943561dfafe75b763fe7baf7114c33c3ba1ce6ecbf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page