Metadata-Version: 2.4
Name: subtitld
Version: 26.11.18.34
Summary: Subtitld
Author-email: Jonatã Bolzan Loss <subtitld@subtitld.org>
License: GPL3
Project-URL: Homepage, https://subtitld.org
Project-URL: Issues, https://gitlab.com/jonata/subtitld/issues
Keywords: subtitld
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: X11 Applications :: Qt
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX
Classifier: Topic :: Multimedia
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PySide6<6.12,>=6.11.2
Requires-Dist: PySideSix-Frameless-Window
Requires-Dist: mediapipe<0.11,>=0.10.33
Requires-Dist: opencv-python
Requires-Dist: python-i18n
Requires-Dist: python-docx
Requires-Dist: beautifulsoup4
Requires-Dist: lxml
Requires-Dist: chardet==6.0.0
Requires-Dist: pysubs2
Requires-Dist: platformdirs
Requires-Dist: certifi
Requires-Dist: numpy
Requires-Dist: sounddevice
Requires-Dist: soundfile
Requires-Dist: edge-tts>=7.3.1
Requires-Dist: gTTS
Requires-Dist: scipy
Provides-Extra: vision
Requires-Dist: mediapipe<0.11,>=0.10.33; extra == "vision"
Requires-Dist: opencv-python; extra == "vision"
Provides-Extra: dub
Requires-Dist: edge-tts>=7.3.1; extra == "dub"
Requires-Dist: gTTS; extra == "dub"
Provides-Extra: all
Requires-Dist: mediapipe<0.11,>=0.10.33; extra == "all"
Requires-Dist: opencv-python; extra == "all"
Requires-Dist: edge-tts>=7.3.1; extra == "all"
Requires-Dist: gTTS; extra == "all"
Dynamic: license-file

<p align="center">
  <img src=".github/readme/banner.png" alt="Subtitld" width="880">
</p>

<p align="center">
  <b>A free and open source subtitle editor for Linux, Windows, macOS and Haiku.</b><br>
  Time subtitles on the waveform, transcribe and translate them with engines that can run on
  your own machine, and dub them with synthetic voices.
</p>

<p align="center">
  <a href="https://github.com/Subtitld/subtitld/actions/workflows/ci.yml"><img alt="Tests" src="https://github.com/Subtitld/subtitld/actions/workflows/ci.yml/badge.svg"></a>
  <a href="https://snapcraft.io/subtitld"><img alt="Snap" src="https://img.shields.io/snapcraft/v/subtitld/latest/stable?logo=snapcraft&label=snap"></a>
  <a href="https://flathub.org/apps/org.subtitld.Subtitld"><img alt="Flathub" src="https://img.shields.io/flathub/v/org.subtitld.Subtitld?logo=flathub&label=flathub"></a>
  <a href="https://aur.archlinux.org/packages/subtitld"><img alt="AUR" src="https://img.shields.io/aur/version/subtitld?logo=archlinux&label=AUR"></a>
  <a href="https://pypi.org/project/subtitld/"><img alt="PyPI" src="https://img.shields.io/pypi/v/subtitld?logo=pypi&logoColor=white&label=PyPI"></a>
  <a href="LICENSE"><img alt="License: GPL-3.0" src="https://img.shields.io/badge/license-GPL--3.0-blue"></a>
  <a href="https://discord.gg/s2PPp3qEJ"><img alt="Discord" src="https://img.shields.io/badge/Discord-join%20us-5865F2?logo=discord&logoColor=white"></a>
  <a href="https://www.reddit.com/r/Subtitld/"><img alt="Reddit" src="https://img.shields.io/badge/Reddit-r%2FSubtitld-FF4500?logo=reddit&logoColor=white"></a>
</p>

<p align="center">
  <a href="#install">Install</a> ·
  <a href="#features">Features</a> ·
  <a href="#add-ons">Add-ons</a> ·
  <a href="#formats">Formats</a> ·
  <a href="#run-from-source">Run from source</a> ·
  <a href="https://subtitld.org">Website</a> ·
  <a href="https://discord.gg/s2PPp3qEJ">Discord</a> ·
  <a href="https://www.reddit.com/r/Subtitld/">Reddit</a>
</p>

![Subtitld editing the subtitles of Tears of Steel: the list of subtitles, the video with the current one over it, and the timeline with the waveform](flatpak/screenshots/editor.png)

## Features

### ⏱️ Timing on the waveform
- A timeline with the audio's waveform: drag a subtitle to move it, drag its edges to retime it.
- Snapping to the neighbouring subtitles and to a grid of frames or seconds, with zoom for fine work.
- A vertical timeline beside the list, for working down the subtitles.
- Set a subtitle's start or end to the playhead, slice it in two, merge it with its neighbour, nudge it by a step.
- A quality check against reading speed (characters per second, words per minute), duration, line count and line length, with the usual limits as defaults.

### 🎬 Video and audio
- The video with the current subtitle drawn over it, as it will be seen, with safe-area guides.
- Playback speed, looping and frame stepping.
- A mixer for the video's sound and the dubs, with EQ, compressor and gate per track.
- 4K and 8K videos get a lighter proxy to edit with, made on the GPU where there is one.

### 🗣️ Speakers
- Name the speakers and give them a face from the video; each one gets a colour, and a lane of their own on the timeline if you like.
- See how long each one speaks.

### 🤖 Transcription, translation and dubbing
- **Transcribe** the video's speech into timed subtitles: all of it, a range, or the selection. Or speak into the microphone and watch it become subtitles.
- **Translate** the subtitles, keeping each language's translation alongside the original.
- **Dub**: speak every subtitle with a synthetic voice, one voice per speaker. Dubs can be fitted to each subtitle's duration, and voices that clone take their sample from the video. Or record your own voice instead.
- Export the dub as WAV, FLAC or MP3: the whole mix, a track per speaker, the clips, or the background or the voices alone.
- Transcription and translation engines, and more voices, are [add-ons](#add-ons), many of them fully offline. Two online voices (Edge and Google) come built in.

### ✍️ Editing
- Undo, find and replace (with regular expressions), autosave and backups.
- A plain-text view to edit all the subtitles as one document, as SRT, Markdown or JSON.
- Keyboard shortcuts, which you can change.
- Recent files reopen where you left off.
- Import a transcript from a text or Word file, sliced into subtitles.

### 🌐 subtitld.cc
[subtitld.cc](https://subtitld.cc) is Subtitld's community hub. When a video opens, Subtitld can
look up subtitles made for that exact file (it sends a fingerprint, never the video or its name).
You can also search, rate and open subtitles there, and publish your own, all from inside the app.

<table>
  <tr>
    <td width="50%"><img src="flatpak/screenshots/speakers.png" alt="Speakers, each on their own timeline track"></td>
    <td width="50%"><img src="flatpak/screenshots/vertical-timeline.png" alt="The vertical timeline beside the video"></td>
  </tr>
  <tr>
    <td align="center"><sub>Speakers, each on a track of their own</sub></td>
    <td align="center"><sub>The vertical timeline</sub></td>
  </tr>
</table>

<sub>Screenshots: <a href="https://mango.blender.org">Tears of Steel</a>, © Blender Foundation, CC BY 3.0.</sub>

## Install

| | |
|---|---|
| **Linux** | <a href="https://snapcraft.io/subtitld"><img alt="Get it from the Snap Store" src="https://snapcraft.io/static/images/badges/en/snap-store-black.svg" height="48"></a> <a href="https://flathub.org/apps/org.subtitld.Subtitld"><img alt="Get it on Flathub" src="https://flathub.org/api/badge?locale=en" height="48"></a><br>Arch Linux: [`subtitld`](https://aur.archlinux.org/packages/subtitld) on the AUR · Any distribution: the AppImage from the [latest release](https://github.com/Subtitld/subtitld/releases/latest) |
| **Windows** | <a href="https://apps.microsoft.com/detail/9MXLZSL8JPQH"><img alt="Get it from Microsoft" src="https://get.microsoft.com/images/en-us%20dark.svg" height="48"></a><br>Or the installer, or the portable version, from the [latest release](https://github.com/Subtitld/subtitld/releases/latest) |
| **macOS** | With Python, [from PyPI](#from-pypi) |
| **Haiku** | Coming to HaikuPorts; the recipes are in [`packaging/haiku`](packaging/haiku) |

### From PyPI

On any system with Python 3.10 to 3.14 and [FFmpeg](https://ffmpeg.org) on the `PATH`:

```bash
pip install subtitld
subtitld
```

On Linux, the audio also needs PortAudio (`libportaudio2` on Debian and Ubuntu).

## Add-ons

Speech recognition, translation, more voices and audio separation come as add-ons, installed
from inside Subtitld (**Add-ons** in the global settings). Each one brings its own models, so the
app stays small and you only download what you use.

| | Add-ons |
|---|---|
| **Speech to text** | [whisper.cpp](https://github.com/Subtitld/addon-whispercpp) (offline) · [Vosk](https://github.com/Subtitld/addon-vosk) (offline) · [RealtimeSTT](https://github.com/Subtitld/addon-realtimestt) (offline, as you speak) · [AssemblyAI](https://github.com/Subtitld/addon-assemblyai) (cloud) |
| **Translation** | [Offline translation](https://github.com/Subtitld/addon-translate-offline) (OPUS-MT models, no API key) |
| **Voices** | [Piper](https://github.com/Subtitld/addon-piper-tts) · [Kokoro](https://github.com/Subtitld/addon-kokoro) · [Supertonic](https://github.com/Subtitld/addon-supertonic) · [sanoTTS](https://github.com/Subtitld/addon-sanotts) · [Parler-TTS](https://github.com/Subtitld/addon-parler-tts) · with voice cloning: [Qwen3-TTS](https://github.com/Subtitld/addon-qwen3-tts), [Coqui XTTS](https://github.com/Subtitld/addon-coqui-xtts) and [F5-TTS](https://github.com/Subtitld/addon-f5-tts) |
| **Audio** | [Audio separator](https://github.com/Subtitld/addon-audio-separator): split the voices from the music and effects |

The list Subtitld shows comes from [Subtitld/addons-catalog](https://github.com/Subtitld/addons-catalog).
Some models are for non-commercial use only; each add-on's page says which.

## Formats

| | |
|---|---|
| **Open and save** | SubRip (`.srt`) · WebVTT (`.vtt`) · SubStation Alpha (`.ass`, `.ssa`) · TTML (`.ttml`) · DFXP (`.dfxp`) · iTunes Timed Text (`.itt`) · SAMI (`.smi`, `.sami`) · EBU STL (`.stl`) · Screen PAC (`.pac`) · UniPac (`.fpc`) · Scenarist (`.scc`) · MacCaption (`.mcc`) · MicroDVD (`.sub`) · SBV (`.sbv`) · YouTube timed text (`.srv3`, `.ytt`) · Bilibili (`.bcc`) · JSON · Universal Subtitle Format (`.usf`) |
| **Closed captions** | CEA-608 and CEA-708 read out of a video's own frames, a caption track of its own, or an MXF's ancillary data; written as pop-on, roll-up or paint-on captions in any channel, where each subtitle is placed, on the background it asks for and with the size, raised or lowered text, edge and flash the two standards can ask for, and what sort of text each run is — a speaker's name, lyrics, a sound effect, an expletive; what a CEA-708 window says about itself is kept with the subtitle, whether or not Subtitld draws it, and as a CEA-708 service for a second language |
| **Projects** | `.usfx`: the subtitles bundled with the speakers' faces and dubs, and, if you choose, the waveform and the video |
| **Transcripts** | Import from `.txt`, `.docx` and `.srt` |
| **Video** | MP4, MKV, MOV, WebM, MPEG, Ogg and M4V, through FFmpeg; written out with its captions inside it as QuickTime (a caption track) or MXF (ancillary data, as Premiere and Avid write it) |
| **Dub** | WAV, FLAC, MP3 |

## Run from source

You need Python 3.10 to 3.14, FFmpeg, and on Linux PortAudio.

```bash
git clone https://github.com/Subtitld/subtitld.git
cd subtitld
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/subtitld
```

### Tests

Each test is a script that runs Qt off-screen, with its own scratch settings:

```bash
for t in tests/test_*.py; do .venv/bin/python "$t" || echo "FAILED: $t"; done
```

### Packaging

Every package is built by CI from this repository:
[`build.yml`](.github/workflows/build.yml) builds them all without publishing, and
[`release.yml`](.github/workflows/release.yml) publishes them on a version tag.

| Package | Where it's defined |
|---|---|
| Wheel (PyPI) | [`pyproject.toml`](pyproject.toml) |
| AppImage | [`AppImageBuilder.yml`](AppImageBuilder.yml) |
| Snap | [`snap/snapcraft.yaml`](snap/snapcraft.yaml) |
| Flatpak | [`flatpak/`](flatpak) |
| AUR | [`packaging/aur/`](packaging/aur) |
| Windows: installer, portable, Microsoft Store | [`nsis-installer.nsi`](nsis-installer.nsi) · [`packaging/msix/`](packaging/msix) · [`subtitld-windows.spec`](subtitld-windows.spec) |
| macOS app | [`subtitld-macos.spec`](subtitld-macos.spec) |
| Haiku | [`packaging/haiku/`](packaging/haiku) |

The icons, installer pictures and this page's banner are drawn from two SVGs by
[`packaging/branding/render-icons.py`](packaging/branding/render-icons.py).

## Contributing

Bugs and ideas go in the [issues](https://github.com/Subtitld/subtitld/issues); pull requests are
welcome. For questions, help, or just to talk subtitles, join us on
[Discord](https://discord.gg/s2PPp3qEJ) or [r/Subtitld](https://www.reddit.com/r/Subtitld/). If Subtitld is useful to you, you can also [support its development](https://subtitld.org).

## License

Subtitld is free software, released under the [GNU General Public License v3.0](LICENSE).
