How akkshattshah/mokshavideoediting works
VRE’s implemented core analyzes a reference video into a structured Blueprint, then recommends a costed editing route. The principal workflow runs from CLI input through probing and shot, motion, frame, and audio analysis to the Blueprint and router. The repository also has a browser workflow for uploading references and planning edits, plus experimental generation integrations; README explicitly says the full recompile pipeline is not yet built. The UI excerpt is partial, so uncertain planning and generation internals are not expanded.
Main entry points: pipeline.py Decompile orchestration · server.py Browser UI · cli.py CLI commands · router.py Route selection
Components 19
User entry
- CLI commands
src/vre/cli.py - Browser UI
ui/server.py
Reference analysis
- Decompile orchestration
src/vre/decompile/pipeline.py - Video probing
src/vre/probe.py - Backend registry
src/vre/backends.py - Shot detection
src/vre/decompile/shots.py - Motion analysis
src/vre/decompile/motion.py - Keyframe extraction
src/vre/decompile/frames.py - Audio analysis
src/vre/decompile/audio.py
Blueprint and routing
- Blueprint schema
src/vre/schema.py - Route selection
src/vre/router.py - Model pricing
src/vre/pricing.py - Cost profiles
src/vre/costing.py - blueprint.json
src/vre/decompile/pipeline.py
Edit planning and integrations
- Edit planning
src/vre/planner.py - Model API client
src/vre/providers.py - Public file tunnel
src/vre/tunnel.py
Other components
- Video editor
- OpenRouter
Connections 19
- Video editor → CLI commands: runs analysis
- CLI commands → Decompile orchestration: decompiles video
- Decompile orchestration → Video probing: probes source
- Decompile orchestration → Backend registry: records availability
- Decompile orchestration → Shot detection: detects shots
- Decompile orchestration → Motion analysis: classifies motion
- Decompile orchestration → Keyframe extraction: extracts frames
- Decompile orchestration → Audio analysis: analyzes audio
- Decompile orchestration → Blueprint schema: assembles analysis
- Decompile orchestration → blueprint.json: saves blueprint
- CLI commands → Route selection: routes blueprint
- Route selection → Model pricing: estimates models
- CLI commands → Cost profiles: reports costs
- Video editor → Browser UI: uploads reference
- Browser UI → Decompile orchestration: analyzes reference
- Browser UI → Edit planning: builds or revises plan
- Browser UI → Model API client: submits generation jobs
- Browser UI → Public file tunnel: stages public inputs
- Model API client → OpenRouter: calls model API