AI-powered video upscaling engine that runs on Google Colab. Used by the XScale mobile app to enhance videos using Real-ESRGAN and Real-CUGAN.
-
Add your Firebase credentials to Colab Secrets (🔑 icon in sidebar):
- Secret name:
FIREBASE_SERVICE_ACCOUNT - Value: paste the entire JSON content of your Firebase service account key
- Secret name:
-
Click "Runtime → Run all" — the engine starts automatically!
Mobile App → Upload to Drive → POST /upscale → Colab Engine
↓
Download from Drive
AI Upscaling (ESRGAN/CUGAN)
Upload result to Drive
↓
Firebase progress updates → App
| File | Description |
|---|---|
bridge.py |
FastAPI server + Cloudflare tunnel + Firebase integration |
processor.py |
AI upscaling pipeline (FFmpeg + ESRGAN/CUGAN) |
cleanup.py |
Auto-purge Drive storage when over 5GB |
XScale_Engine.ipynb |
Ready-to-run Colab notebook |
requirements.txt |
Python dependencies |
| Method | Path | Description |
|---|---|---|
POST |
/upscale |
Start video processing |
GET |
/status |
Get engine status + progress |
POST |
/heartbeat |
Keep engine alive |
POST |
/stop |
Graceful shutdown |
MIT