Skip to content

Releases

SubGen 0.9.3

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 01 Dec 18:50

Translation library updates

This release updates the libraries SubGen uses to download and run local models:

  • Transformers 5.23.0 → 5.24.1 (local translation models)
  • Hugging Face Hub 2.4.0 → 2.5.0 (model downloads)

Nothing changes in how SubGen works, and nothing is needed before you update:

docker compose pull && docker compose up -d

v0.9.2

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 29 Nov 17:56

FastAPI update

This release updates FastAPI, the web framework behind SubGen's interface and API, from 0.163.2 to 0.165.0. Nothing changes in how SubGen works, and nothing is needed before you update:

docker compose pull && docker compose up -d

v0.9.1

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 20 Nov 21:52

Security updates

This release updates SubGen's libraries and fixes 15 security advisories. Nothing changes in how SubGen works, and nothing is needed before you update:

docker compose pull && docker compose up -d
  • python-multipart 0.0.34 (uploads): fixes several denial-of-service and parsing issues.
  • transformers 5.23 and huggingface-hub 2.4 (local translation and model downloads): fix code-execution and file-write issues when loading models.
  • torch 2.10: fixes code execution through untrusted checkpoint files. It stays on a CUDA 12 build, so the same NVIDIA drivers keep working.
  • FastAPI, Uvicorn, SQLAlchemy and other libraries updated to their latest versions.

Tested with NLLB-200, M2M100 and OPUS-MT translation models and Whisper transcription.

v0.9.0

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 16 Nov 07:28

Quiet dialogue is no longer skipped, and subtitles are in sync

Whispered and quiet lines. Voice detection decides which parts of the audio Whisper hears. Whispers and quiet lines under music were treated as silence, so they were never transcribed or translated. SubGen now:

  • listens mainly to the centre (dialogue) channel of surround audio, instead of an even mix where music and effects drowned the dialogue,
  • boosts quiet speech before transcription,
  • uses a more sensitive speech detection threshold (0.35 instead of 0.5).

Timing.

  • When a file's audio track starts after the video (common in remuxed MKV/MP4), every subtitle used to be early by that delay. The delay is now kept.
  • Words could jump to a different line, up to several seconds away, where faster-whisper joined separate bits of speech. SubGen now cuts the audio into its own speech clips, so words stay where they were spoken.
  • Lines start where the voice starts: Whisper tends to begin a line a few hundred milliseconds early, and SubGen now moves it to the detected start of speech (by at most 0.8 s).

GPU transcription. On a GPU, Whisper returns up to 30 seconds of dialogue as one piece. If one sentence in it looked like a hallucination, the whole piece was removed. Now only that sentence is removed.

In a test scene with 5.1 audio, two whispered lines under music and a 1-second audio delay, 0.8.0 missed both whispers and showed every line about a second early. 0.9.0 shows all four lines, starting within 0.35 seconds of the voice.

New settings (Settings → Transcription)

Setting Default
Speech detection threshold 0.35 (lower keeps quieter speech; raise it if music turns into text)
Boost quiet speech On
Focus on the dialogue channel On

Updating

Run docker compose pull and docker compose up -d. No changes to docker-compose.yaml or .env.

Subtitles that already exist are not redone automatically. To get the improvements for a movie, regenerate its subtitles. Cached transcripts from older versions are not reused, so Whisper runs again.

SubGen 0.8.0

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 14 Nov 09:56

A simpler setup

Setting up SubGen now means editing two short files. Only the admin password is required; everything else has a sensible default or lives in Settings.

docker-compose.yaml

services:
  subgen:
    image: ghcr.io/fahed-alhammadi/subgen:latest
    container_name: subgen
    restart: unless-stopped
    gpus: all                       # remove this line if the host has no NVIDIA GPU
    ports:
      - "8080:8080"                 # behind a reverse proxy on this host: "127.0.0.1:8080:8080"
    env_file: .env
    volumes:
      - ./config:/config            # database, settings and Studio uploads
      - ./models:/models            # Whisper and translation models
      # Your media folders. Each one becomes a library you add in the web interface.
      - /path/to/movies:/media/movies
      - /path/to/tv:/media/tv

    # Recommended hardening. Safe to keep as is.
    security_opt: [no-new-privileges:true]
    cap_drop: [ALL]
    cap_add: [CHOWN, SETUID, SETGID]  # used only at startup to switch to PUID/PGID

.env

PUID=1000
PGID=1000
SUBGEN_ADMIN_USERNAME=admin
SUBGEN_ADMIN_PASSWORD=change-me-to-a-long-password
  • PUID/PGID now work from .env. The container starts as root only to create config/ and models/ and give them to that user, then runs SubGen as that user with no Linux capabilities. Your media folders are never touched. There is no more mkdir/chown step, and a user: line still works.
  • No signing key to generate. If SUBGEN_SECRET_KEY isn't set, SubGen creates one on first start in config/secret_key.
  • Sign-in works over plain HTTP on your LAN. Cookies become HTTPS-only automatically when you reach SubGen over HTTPS, directly or through a reverse proxy. SUBGEN_SECURE_COOKIES is no longer needed.
  • Reverse proxies on a Docker network: SUBGEN_TRUSTED_PROXIES now accepts a range, for example 172.18.0.0/16.

More in Settings

These used to be environment variables. They now apply without a restart:

  • Transcription: processing device (Automatic, NVIDIA GPU or CPU) and compute type
  • Scanning: how long a new file must stay unchanged before it is processed
  • Workspace: largest Studio upload
  • System (new section): free disk space to keep, and log detail
  • Security: session length, failed sign-ins allowed and the block period, below two-factor sign-in

Settings with the processing device and compute type

Upgrading from 0.7

Your current docker-compose.yaml and .env keep working. Variables that moved to Settings become their starting values. To switch to the short files:

  1. Download the new docker-compose.yaml and put your folders in it. The old SUBGEN_CONFIG_PATH, SUBGEN_MODEL_PATH and SUBGEN_MEDIA_PATH values become the left side of the volume lines.
  2. Keep PUID, PGID, SUBGEN_ADMIN_USERNAME and SUBGEN_ADMIN_PASSWORD in .env. The rest can go, including SUBGEN_SECRET_KEY.
  3. If Compose says the name subgen is already in use, run docker rm -f subgen first. Your data lives in the mounted folders.

If SubGen ran as root before (no user: line), the first start gives config/ and models/ back to PUID/PGID. Subtitles written as root stay owned by root. The README's Upgrading section has a one-line command to fix them.

Container

docker pull ghcr.io/fahed-alhammadi/subgen:0.8.0

Back up config/ before upgrading, then run docker compose pull && docker compose up -d.

Full changes: v0.7.0...v0.8.0

SubGen 0.7.0

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 13 Nov 20:25

A redesigned interface

The web interface was reorganised around what you actually do, with a new type system and one live element. The grey and blue palette is unchanged.

Overview with the job being subtitled on a media timeline

  • Overview: the file being subtitled is shown on a media timeline (timecode scale, ruler and a playhead with its time) together with the pipeline steps and each step's own progress. Below it: what runs next and what finished recently. A short side summary replaces the old row of duplicated counters.
  • Queue: each job shows one clear action (Edit, Retry or Stop) plus More; the details hold everything else, including priority. Status and progress share one column.
  • Models: one table per model type, with the model in use first, then installed models, then ones you can install. This replaces the card grid and the separate Installed list.
  • Libraries is a comparison table. Studio has the upload on the left and your uploads on the right. Settings uses a section menu (arrow keys work). The editor's timing, find and check tools are tabs.
  • Type: Atkinson Hyperlegible, a typeface designed for legibility (the same job subtitles do), with its Mono sibling for timecodes and paths. The fonts are bundled, so the interface still works offline.
  • Light and dark themes, keyboard navigation, reduced motion and the phone layout were all re-checked; text colours meet WCAG AA.

Fixes

  • Progress labels in the queue and Studio now match the timeline (the current step's progress instead of an overall figure).
  • Text in some table cells was right-aligned by mistake.

Notes

  • No API or configuration changes. The fonts are licensed under the SIL Open Font License 1.1 (subgen/static/fonts/).

Container

docker pull ghcr.io/fahed-alhammadi/subgen:0.7.0

Back up /config before upgrading, then run docker compose pull && docker compose up -d. Reload the browser tab afterwards so it picks up the new interface.

Full changes: v0.6.0...v0.7.0

SubGen 0.6.0

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 13 Nov 18:41

Highlights

  • MIT License. SubGen moves from the Elastic License 2.0 to the MIT License: use, modify, redistribute, sell or host it, as long as the copyright and license notice stays with it.
  • Models are unloaded when idle. A new setting, Settings → Transcription → Unload models when idle (default 15 minutes; 0 keeps them loaded), releases the Whisper and local translation models after that much time without a job, freeing GPU memory for other containers. The next job reloads them in a few seconds. Switching translation models now also returns PyTorch's cached GPU memory immediately.
  • Disk space guard. Uploads and model downloads always leave at least SUBGEN_MIN_FREE_MB free (default 1 GB). Studio checks before sending a file and shows a clear message instead of an interrupted upload; the server also re-checks during the upload. A model download that would not fit, including the automatic first-start install, fails before writing anything.

Jobs still run one at a time, in priority order.

Notes

  • On NVIDIA GPUs the models' memory is released when they unload; the CUDA runtime itself (about 300–500 MB) stays reserved until SubGen restarts.
  • New: GET /api/uploads/space?size=<bytes> and HTTP 507 when disk space runs low. See docs/API.md.

Container

docker pull ghcr.io/fahed-alhammadi/subgen:0.6.0

Back up /config before upgrading, then run docker compose pull && docker compose up -d.

Full changes: v0.5.0...v0.6.0

SubGen 0.5.0

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 13 Nov 18:05
a55cfb9

Highlights

  • Clean URLs. The web UI uses real paths (/queue, /editor/12, /settings?tab=security) instead of #/…. Reloads and bookmarks work, signed-out visitors return to the page they asked for after signing in, and old #/ bookmarks are upgraded automatically.
  • Two-factor sign-in from Settings. Turn it on in Settings → Security with a setup key and a confirmation code. Sign-in asks for the six-digit code on a second step, only when it is on. SUBGEN_TOTP_SECRET still works as an override.
  • Default models install themselves. Whisper Small and NLLB-200 600M are built in and install automatically when missing; the queue waits while they download. When you switch models, SubGen offers to delete the previous one or keep it. Any model not in use can be deleted.
  • Arabic and other right-to-left subtitles. Each line starts with a right-to-left marker (U+202B), so players that lay lines out left to right keep ., ! and dialogue dashes on the correct side.
  • Simpler login page. The decorative timecode block is gone.

Upgrade notes

  • The first start downloads about 3 GB of models if /models doesn't already have them. On servers without internet, set SUBGEN_AUTO_INSTALL_MODELS=false and copy models in manually.
  • SUBGEN_WHISPER_MODEL and SUBGEN_TRANSLATION_MODEL are no longer read. Choose models on the Models page.
  • Right-to-left subtitles written by earlier versions keep the old layout until you regenerate them or re-save them in the editor.
  • API: POST /api/login answers {ok: false, totp_required: true} when a code is needed; send it to POST /api/login/totp, or include totp_code in the first request. New endpoints: /api/totp, /api/totp/setup, /api/totp/enable, /api/totp/disable. GET /api/models adds selected; POST /api/models/select returns previous. See docs/API.md.

Container

docker pull ghcr.io/fahed-alhammadi/subgen:0.5.0

Back up /config before upgrading, then run docker compose pull && docker compose up -d.

Full changes: v0.4.0...v0.5.0

SubGen 0.4.0

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 13 Nov 18:05
c083dec

A full rebuild of the subtitle pipeline, API and web UI.

Subtitle pipeline

  • Transcribe once per file: transcripts are cached and reused for every target language, and all formats of one language are written together.
  • New subtitle-quality engine: word-timestamp re-segmentation (characters per line, line count, minimum and maximum duration, pauses, punctuation), balanced line wrapping, merging of cues too short to read, and hallucination filtering.
  • Translation in sentence-sized units spread back over the source timings, which fixes content OPUS-MT dropped on long segments. Source casing is kept; Arabic vowel marks and spaces before punctuation are cleaned up.
  • Audio track selection by language, batched GPU inference, M2M100 and Marian/OPUS-MT support, batched LibreTranslate, sturdier Ollama prompts.
  • The scanner skips existing and embedded subtitles, honours ignore patterns, ignores symlinks, never re-queues failed jobs and prunes safely.

API and security

  • API split by area: Studio uploads, media browser, bulk job actions, schema-driven settings, model catalog with download progress.
  • Unauthenticated requests and oversized bodies are rejected before they are read. Hardened login throttling, TOTP replay protection, strict Content-Security-Policy without unsafe-inline, crash-loop protection for files that stop the worker.

Web UI

  • Rebuilt with native ES modules (no build step): Overview, Studio, library browser, Queue, subtitle editor with video preview, Models, Settings and System. Light and dark themes and a mobile layout.

Also new: the project website, an API reference (docs/API.md) and current screenshots.

Container

docker pull ghcr.io/fahed-alhammadi/subgen:0.4.0

Full changes: v0.3.1...v0.4.0

SubGen 0.3.1

Choose a tag to compare

@Fahed-Alhammadi Fahed-Alhammadi released this 13 Nov 18:05
  • Fix the smoke test for the published container image.

Full changes: v0.3.0...v0.3.1