Self-hosted Opus Clip alternative — reels.biba.live
User feedback: Scribe consistently produces bad transcripts for Slovenian
narodno-zabavna (NZ) folk-pop music:
- 'Saša Avsenik - Žena ME TEPE': hallucinated 'sam sam sam' x14
- 'FEHTARJI - Gorenjska Ljubljena': total hallucination ('finančni moduli')
- 'Ansambel UNIKAT - PA PA': mistranscribed 'mu' as 'vsem'
- 'Ansambel Saša Avsenika - CVETELE SO MALINE': wrong lyrics entirely
Common pattern: all are Slovenian folk-pop with diatonic accordion. Scribe
training data has very little of this genre, so it consistently fails.
Solution: auto-detect NZ songs by filename keywords and route directly
to Gemini 3 Pro (which handles them correctly), skipping Scribe entirely.
is_likely_folk_pop() detects:
- Slovenian: ansambel, avsenik, slak, fehtar, modrijan, atomik, gadi,
vikend, stil, unikat, korenjaki, gorenjski, štajerski, polka, valček
- Croatian: klapa, thompson, mate bulić
- Serbian/Bosnian: lepa brena, ceca, halid bešlić
When detected:
1. Skip Scribe entirely (it would fail anyway)
2. Go directly to Gemini 3 Pro (~100s, /bin/sh.20)
3. If Gemini fails, fall back to Scribe (rare)
Cost analysis (10 reels/day, 30% NZ):
- Before: 10x Scribe = $0.13/day, ~30% need re-process
- Hybrid (fallback): 10x Scribe + 3x Gemini retry = $0.79/day
- NZ-routing (now): 7x Scribe + 3x Gemini = $0.69/day, FIRST-TRY success
Saves time AND money for NZ-heavy workloads.
|
||
|---|---|---|
| app | ||
| scripts | ||
| templates | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| README.md | ||
| requirements.txt | ||
Reels Clipper · biba.live
Self-hosted Opus Clip alternativa za FOLX TV / PTC. Pretvori 16:9 video v 9:16 reels/shorts/tiktok format z auto face tracking, podnapisi (sl/de/en) in avto-detekcijo refrena v glasbenih pesmih.
Features
- 📤 Drag & drop upload (do 2 GB)
- 📺 YouTube URL paste (yt-dlp)
- 🎯 Smart reframe: track (face follow), center, blur (za glasbo)
- 🎵 Auto-chorus detection (Whisper + energy hibrid)
- 📝 Burned-in podnapisi (faster-whisper, multi-jezik)
- 🎨 3 stili podnapisov: reels, yellow (MrBeast), minimal
- 🔐 HTTP Basic Auth
- 📊 Real-time progress (Server-Sent Events)
- 📦 Docker / Coolify ready
Quick start (lokalno)
docker compose up --build
# odpri http://localhost:8000
Default login: sebastjan / nastavi AUTH_PASS v .env.
Coolify deploy
- V Coolify ustvari nov projekt → Docker Compose iz tega repoja
- Domena:
reels.biba.live - Env vars:
AUTH_USER=sebastjan AUTH_PASS=<močno geslo> MAX_UPLOAD_MB=2000 - Volume
reels_datase ustvari avtomatsko - Deploy → Coolify postavi Traefik reverse proxy + SSL via Let's Encrypt
Pipeline
Upload / YouTube
↓
[ yt_download.py ] ← samo če YouTube
↓
[ find_chorus.py ] ← samo če auto_chorus=true (Whisper + RMS analiza)
↓
[ reframe.py ] ← 16:9 → 9:16 (track / center / blur)
↓
[ subtitle.py ] ← Whisper transkripcija + burn-in
↓
reel.mp4
API
POST /api/upload— multipart file upload, vrnejob_idPOST /api/youtube— JSON{url, mode, lang, ...}POST /api/process— start processing za uploaded jobGET /api/jobs— list vsehGET /api/jobs/{id}— statusGET /api/stream/{id}— SSE stream progressGET /api/download/{id}— final reelDELETE /api/jobs/{id}— pobriši
Dependencies
- FFmpeg (system)
- faster-whisper (transkripcija)
- OpenCV (face detection)
- yt-dlp (YouTube)
- FastAPI + uvicorn (server)