The AI-Native Cinematic Studio. A professional Non-Linear Editor (NLE) for filmmakers.
Python
88
77 commits
updated Mar 16, 2026
Milimo Video is a state-of-the-art, open-source AI video production studio designed for filmmakers. It unifies the world's best foundation models into a cohesive, professional workflow — running entirely local-first on your own machine.
Unlike simple "prompt-to-video" interfaces, Milimo is a full Non-Linear Editor (NLE) that combines:
Achieve what standard models can't: persistent identities across shots.
@Hero). The system auto-detects triggers in prompts and injects the correct IP-Adapter images and enriched text.
Transform screenplays into video productions instantly.
ScriptParser.ElementManager scans for @Element references and injects visual/textual conditioning + narrative context (action, dialogue, character).A fully functional timeline built for the AI workflow.
StoryboardManager with last-frame extraction and overlap trimming.trimIn/trimOut), and snapEngine snapping.translateX), granular Zustand selectors, and useShallow for 60fps UI responsiveness.
Professional-grade retouching powered by the SAM 3 → Flux 2 pipeline.
/status/{job_id}.TrackingPanel with session lifecycle management (start → prompt → propagate → navigate results).enable_ae flag.
ti2vid (text/image-to-video), ic_lora (IC-LoRA conditioning), keyframe (keyframe interpolation).num_frames==1, video gen silently delegates to Flux 2 for instant image generation.
Milimo Video is built on a modern, robust stack:
| Layer | Technology |
|---|---|
| Frontend | React 18, TypeScript, Vite, Zustand (7-slice store + persist + zundo undo/redo) |
| Backend | FastAPI (Python 3.10+), SQLModel/SQLAlchemy (SQLite), SSE via sse-starlette |
| Video AI | LTX-2 19B Dual-Stream Transformer — 3 pipelines + chained generation |
| Image AI | Flux 2 Klein 9B (FluxInpainter) — IP-Adapter, True CFG, RePaint inpainting |
| Segmentation | SAM 3 Microservice (port 8001) — Sam3Processor (text/box), inst_interactive_predictor (click), Sam3VideoPredictor (tracking, MPS/CUDA/CPU) |
| Prompt AI | Gemma 3 (via LTX-2 text encoder) — cinematic prompt enhancement |
| Processing | FFmpeg — thumbnails, frame extraction, overlap trimming, concat |
Designed for Apple Silicon with CUDA as primary target:
gc.collect() + torch.mps.empty_cache()torch.cuda.* callsPYTORCH_ENABLE_MPS_FALLBACK=1 for SAM 3 ops not yet on MPSSee the docs/ directory for comprehensive technical documentation:
Clone the repository:
git clone https://github.com/mainza-ai/milimovideo.git
cd milimovideo
Milimo uses a specialized environment for LTX-2 and Flux.
Create Environment:
python3 -m venv milimov
./milimov/bin/pip install -e ./LTX-2/packages/ltx-core
./milimov/bin/pip install -e ./LTX-2/packages/ltx-pipelines
./milimov/bin/pip install -e ./flux2
./milimov/bin/pip install -r backend/requirements.txt
Download LTX-2 Models:
Place the following into LTX-2/models/checkpoints/:
checkpoints/upscalers/text_encoders/gemma3/Download Flux 2 Models:
Place files in backend/models/flux2/:
backend/models/flux2/
├── flux-2-klein-9b.safetensors # Flow model (9B params)
├── ae.safetensors # Native AutoEncoder (preferred)
├── vae/ # Diffusers AE fallback (config.json + diffusion_pytorch_model.safetensors)
├── text_encoder/ # Qwen 3 (8B) text encoder
├── tokenizer/ # Qwen tokenizer files
└── ip-adapter.safetensors # IP-Adapter weights (CLIP ViT-L projection)
SAM 3 Setup (Segmentation & Tracking):
The SAM 3 service runs in a separate environment (sam3_env).
conda create -n sam3_env python=3.12
conda activate sam3_env
pip install -e sam3
pip install fastapi uvicorn python-multipart psutil pycocotools huggingface_hub
backend/models/sam3/sam3.pt1. Start the Backend API (port 8000):
./run_backend.sh
2. Start the SAM 3 Service (port 8001, optional — for segmentation, masking & tracking):
./run_sam.sh
3. Start the Web Interface (port 5173):
./run_frontend.sh
Visit http://localhost:5173 to enter the studio.
| Key | Action |
|---|---|
| Space | Play / Pause |
| Cmd + Z | Undo |
| Cmd + Shift + Z | Redo |
| S / Cmd + S | Save Project |
| Delete / Backspace | Remove selected shot |
| Drag & Drop | Import images/videos onto timeline |
| ✏️ Edit icon | Toggle masking/inpainting mode |
| ⌖ Crosshair icon | Toggle video object tracking mode |
Milimo Video is an open-source project, and we welcome contributions! Whether you're a developer, filmmaker, or AI enthusiast, there are many ways to get involved:
Let's build the future of AI cinema together.
This project is licensed under the Apache 2.0 License.
77 commits
Python
86.8%
TypeScript
11.6%
The AI-Native Cinematic Studio. A professional Non-Linear Editor (NLE) for filmmakers.
Python
88
77 commits
updated Mar 16, 2026
Milimo Video is a state-of-the-art, open-source AI video production studio designed for filmmakers. It unifies the world's best foundation models into a cohesive, professional workflow — running entirely local-first on your own machine.
Unlike simple "prompt-to-video" interfaces, Milimo is a full Non-Linear Editor (NLE) that combines:
Achieve what standard models can't: persistent identities across shots.
@Hero). The system auto-detects triggers in prompts and injects the correct IP-Adapter images and enriched text.
Transform screenplays into video productions instantly.
ScriptParser.ElementManager scans for @Element references and injects visual/textual conditioning + narrative context (action, dialogue, character).A fully functional timeline built for the AI workflow.
StoryboardManager with last-frame extraction and overlap trimming.trimIn/trimOut), and snapEngine snapping.translateX), granular Zustand selectors, and useShallow for 60fps UI responsiveness.
Professional-grade retouching powered by the SAM 3 → Flux 2 pipeline.
/status/{job_id}.TrackingPanel with session lifecycle management (start → prompt → propagate → navigate results).enable_ae flag.
ti2vid (text/image-to-video), ic_lora (IC-LoRA conditioning), keyframe (keyframe interpolation).num_frames==1, video gen silently delegates to Flux 2 for instant image generation.
Milimo Video is built on a modern, robust stack:
| Layer | Technology |
|---|---|
| Frontend | React 18, TypeScript, Vite, Zustand (7-slice store + persist + zundo undo/redo) |
| Backend | FastAPI (Python 3.10+), SQLModel/SQLAlchemy (SQLite), SSE via sse-starlette |
| Video AI | LTX-2 19B Dual-Stream Transformer — 3 pipelines + chained generation |
| Image AI | Flux 2 Klein 9B (FluxInpainter) — IP-Adapter, True CFG, RePaint inpainting |
| Segmentation | SAM 3 Microservice (port 8001) — Sam3Processor (text/box), inst_interactive_predictor (click), Sam3VideoPredictor (tracking, MPS/CUDA/CPU) |
| Prompt AI | Gemma 3 (via LTX-2 text encoder) — cinematic prompt enhancement |
| Processing | FFmpeg — thumbnails, frame extraction, overlap trimming, concat |
Designed for Apple Silicon with CUDA as primary target:
gc.collect() + torch.mps.empty_cache()torch.cuda.* callsPYTORCH_ENABLE_MPS_FALLBACK=1 for SAM 3 ops not yet on MPSSee the docs/ directory for comprehensive technical documentation:
Clone the repository:
git clone https://github.com/mainza-ai/milimovideo.git
cd milimovideo
Milimo uses a specialized environment for LTX-2 and Flux.
Create Environment:
python3 -m venv milimov
./milimov/bin/pip install -e ./LTX-2/packages/ltx-core
./milimov/bin/pip install -e ./LTX-2/packages/ltx-pipelines
./milimov/bin/pip install -e ./flux2
./milimov/bin/pip install -r backend/requirements.txt
Download LTX-2 Models:
Place the following into LTX-2/models/checkpoints/:
checkpoints/upscalers/text_encoders/gemma3/Download Flux 2 Models:
Place files in backend/models/flux2/:
backend/models/flux2/
├── flux-2-klein-9b.safetensors # Flow model (9B params)
├── ae.safetensors # Native AutoEncoder (preferred)
├── vae/ # Diffusers AE fallback (config.json + diffusion_pytorch_model.safetensors)
├── text_encoder/ # Qwen 3 (8B) text encoder
├── tokenizer/ # Qwen tokenizer files
└── ip-adapter.safetensors # IP-Adapter weights (CLIP ViT-L projection)
SAM 3 Setup (Segmentation & Tracking):
The SAM 3 service runs in a separate environment (sam3_env).
conda create -n sam3_env python=3.12
conda activate sam3_env
pip install -e sam3
pip install fastapi uvicorn python-multipart psutil pycocotools huggingface_hub
backend/models/sam3/sam3.pt1. Start the Backend API (port 8000):
./run_backend.sh
2. Start the SAM 3 Service (port 8001, optional — for segmentation, masking & tracking):
./run_sam.sh
3. Start the Web Interface (port 5173):
./run_frontend.sh
Visit http://localhost:5173 to enter the studio.
| Key | Action |
|---|---|
| Space | Play / Pause |
| Cmd + Z | Undo |
| Cmd + Shift + Z | Redo |
| S / Cmd + S | Save Project |
| Delete / Backspace | Remove selected shot |
| Drag & Drop | Import images/videos onto timeline |
| ✏️ Edit icon | Toggle masking/inpainting mode |
| ⌖ Crosshair icon | Toggle video object tracking mode |
Milimo Video is an open-source project, and we welcome contributions! Whether you're a developer, filmmaker, or AI enthusiast, there are many ways to get involved:
Let's build the future of AI cinema together.
This project is licensed under the Apache 2.0 License.
77 commits
Python
86.8%
TypeScript
11.6%