How m2menqawsh-maker/motion works
Clean Video Workspace is an agentic video-production system: users submit projects through an API, which coordinates authoring and production work toward rendered video outputs. The repository also contains AI planning, provider routing, media acquisition and analysis, reusable recipes, template governance, and a Remotion-based rendering surface. Edges are limited to relationships visible in the README or SOURCE INDEX; several product branches are present in the tree but their internal wiring was not sampled, so those links are left out.
Main entry points: creative_planner.py Creative planning · storage_service.py Object storage · main.py FastAPI application · pipeline.py Vision analysis
Components 23
Project entry
- FastAPI application
api/main.py - Project pipeline
api/services/pipeline_service.py - Authoring service
api/services/authoring_service.py
Creative planning
- Creative planning
ai/planning/creative_planner.py - Composition engine
ai/planning/compose_engine.py - Plan reuse
ai/planning/reuse_engine.py - Recipe selection
ai/recipes/selector.py
AI services
- Capability routing
ai/routing/router.py - Model providers
ai/providers/openrouter.py - AI artifact cache
ai/cache/service.py - MCP integrations
ai/mcp/compatibility/server.py
Media production
- Asset acquisition
ai/acquisition/service.py - Media intelligence
ai/media/service.py - Vision analysis
ai/vision/pipeline.py - Audio analysis
ai/audio/pipeline.py - Media processing
ai/media_processing/service.py - Object storage
scripts/core/storage/storage_service.py
Rendering
- Template registry
registry/template-registry.tsx - Render planner
planner/render-planner.ts - Video compositor
compositor/master-compositor.ts - Remotion renderer
remotion-app/src/CanonicalVideo.tsx
Other components
- Project creator
- Produced video
Connections 21
- Project creator → FastAPI application: submits project
README.md - FastAPI application → Project pipeline: routes production
api/main.py - FastAPI application → Authoring service: routes authoring
api/main.py - Project pipeline → Creative planning: coordinates planning
- Creative planning → Composition engine: composes plan
- Creative planning → Plan reuse: reuses plans
- Creative planning → Recipe selection: selects recipes
- Capability routing → Model providers: dispatches models
ai/routing/router.py - Asset acquisition → Object storage: stores assets
ai/acquisition/service.py - Media intelligence → Vision analysis: analyzes visuals
ai/media/service.py - Media intelligence → Audio analysis: analyzes audio
ai/media/service.py - Vision analysis → AI artifact cache: reads and publishes
ai/vision/pipeline.py - Vision analysis → Object storage: reads and writes
ai/vision/pipeline.py - Audio analysis → AI artifact cache: reads and publishes
ai/audio/pipeline.py - Audio analysis → Object storage: reads and writes
ai/audio/pipeline.py - Media processing → Object storage: uses storage
ai/media_processing/service.py - Render planner → Video compositor: plans rendering
- Template registry → Remotion renderer: provides templates
README.md - Video compositor → Remotion renderer: assembles render
- Remotion renderer → Produced video: renders video
README.md - MCP integrations → Capability routing: integrates tools
README.md