Ported from PR #50 (Themegaindex) onto current main, adapted to the billing-mode app.py and the Lumen dashboard: - subtitles.py: karaoke ASS generation (word-level highlight, glow/pop/box effects, dim/uppercase), whisper continuation-word merging, env-configurable whisper model, ASS/font input sanitization, faststart - editor.py + edit_builder.py: Auto-Edit v2 — Gemini returns a structured edit-decision list and the FFmpeg filter is built deterministically with hard caps (no raw filter strings from the LLM), 2s dry-run + one self-repair round, caption-safe mode blocks zooms on subtitled clips - app.py: /api/subtitle karaoke fields + re-subtitle prefix walk-back (fixes double subtitles), has_captions passed to Auto-Edit - hooks.py: emoji rendering (color-emoji font with strip fallback), char-level hard wrap, unique temp PNGs, ffmpeg timeouts; keeps the duration/enable overlay fromb1113d7- translate.py: exponential-backoff retries for transient ElevenLabs errors - dashboard: 11 caption presets in SubtitleModal; karaoke burns server-side - tests/: 50 pytest tests; .github/workflows/ci.yml runs them + fe build Encode settings kept at CRF 18 (medium for post-process steps) perf791a74. Co-authored-by: Themegaindex <themegaindex@users.noreply.github.com>
5 lines
180 B
Python
5 lines
180 B
Python
import os
|
|
import sys
|
|
|
|
# Make the repo root importable so tests can import the app modules directly.
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|