Repository navigation
SubGen 0.4.0
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