How gulshan-singh-gs/video-generator-by-code works
This repository contains two related but distinct video-production systems: the Obsidian Procedural Video Engine (OPVE), which turns scripts into narrated, timed, illustrated and reviewed video projects, and a motion-graphics subsystem that plans, validates, renders and composites overlays. The OPVE CLI is the visible orchestration point; its modules cover script planning, voice, alignment, characters, music, compositing, frame rendering and critique. Motion graphics has a separate director/provider and rendering path. Several stage links are supported by the CLI’s references, but unsampled implementation details and stage ordering are not inferred.
Main entry points: cli.py Project CLI · renderer.py Overlay renderer · schemas.py Storyboard schemas · director.py Story director
Components 26
OPVE production
- Project CLI
IDEs/Qwen/johananimation/src/cli.py - Project models
IDEs/Qwen/johananimation/src/models.py - Script planner
IDEs/Qwen/johananimation/src/m01_script_planner.py - Voice synthesis
IDEs/Qwen/johananimation/src/m02_voiceover_aistudio.py - Caption alignment
IDEs/Qwen/johananimation/src/m03_align_captions.py - Character generation
IDEs/Qwen/johananimation/src/m04_character_gen.py - Music indexing
IDEs/Qwen/johananimation/src/m05_music_indexer.py - Music scoring
IDEs/Qwen/johananimation/src/m05_music_scorer.py - Compositor shell
IDEs/Qwen/johananimation/src/m06_compositor_shell.py - Frame renderer
IDEs/Qwen/johananimation/src/m07_frame_renderer.py - Artistic critic
IDEs/Qwen/johananimation/src/m08_artistic_critic.py
Motion graphics
- Motion CLI
IDEs/Qwen/johananimation/motion_graphics/cli.py - Overlay planner
IDEs/Qwen/johananimation/motion_graphics/planner.py - Story director
IDEs/Qwen/johananimation/motion_graphics/director.py - Storyboard schemas
IDEs/Qwen/johananimation/motion_graphics/schemas.py - Plan validator
IDEs/Qwen/johananimation/motion_graphics/validator.py
AI providers
- Provider factory
IDEs/Qwen/johananimation/motion_graphics/providers/__init__.py - Provider protocol
IDEs/Qwen/johananimation/motion_graphics/adapters/base.py - Gemini adapter
IDEs/Qwen/johananimation/motion_graphics/adapters/gemini_adapter.py
Overlay rendering
- Template registry
IDEs/Qwen/johananimation/motion_graphics/registry.py - Overlay renderer
IDEs/Qwen/johananimation/motion_graphics/renderer.py - Template drawing
IDEs/Qwen/johananimation/motion_graphics/templates/engine.py - Video compositor
IDEs/Qwen/johananimation/motion_graphics/compositor.py
Other components
- Producer
- Gemini API
- FFmpeg tools
Connections 27
- Producer → Project CLI: runs project commands
IDEs/Qwen/johananimation/src/cli.py - Project CLI → Script planner: invokes planning
IDEs/Qwen/johananimation/src/cli.py - Project CLI → Voice synthesis: invokes voice
IDEs/Qwen/johananimation/src/cli.py - Project CLI → Caption alignment: invokes alignment
IDEs/Qwen/johananimation/src/cli.py - Project CLI → Character generation: invokes generation
IDEs/Qwen/johananimation/src/cli.py - Project CLI → Music indexing: invokes indexing
IDEs/Qwen/johananimation/src/cli.py - Project CLI → Music scoring: invokes scoring
IDEs/Qwen/johananimation/src/cli.py - Project CLI → Compositor shell: invokes compositing
IDEs/Qwen/johananimation/src/cli.py - Project CLI → Frame renderer: invokes rendering
IDEs/Qwen/johananimation/src/cli.py - Project CLI → Artistic critic: invokes review
IDEs/Qwen/johananimation/src/cli.py - Script planner → Project models: uses data models
IDEs/Qwen/johananimation/src/m01_script_planner.py - Caption alignment → Project models: produces timestamps
IDEs/Qwen/johananimation/src/m03_align_captions.py - Producer → Motion CLI: runs overlay commands
- Story director → Provider factory: creates provider
IDEs/Qwen/johananimation/motion_graphics/director.py - Story director → Storyboard schemas: builds storyboard
IDEs/Qwen/johananimation/motion_graphics/director.py - Story director → Plan validator: validates output
IDEs/Qwen/johananimation/motion_graphics/director.py - Plan validator → Template registry: checks templates
IDEs/Qwen/johananimation/motion_graphics/validator.py - Plan validator → Storyboard schemas: validates structures
IDEs/Qwen/johananimation/motion_graphics/validator.py - Overlay renderer → Template registry: uses render settings
IDEs/Qwen/johananimation/motion_graphics/renderer.py - Overlay renderer → Storyboard schemas: renders overlays
IDEs/Qwen/johananimation/motion_graphics/renderer.py - Overlay renderer → Template drawing: draws templates
IDEs/Qwen/johananimation/motion_graphics/renderer.py - Video compositor → Overlay renderer: renders overlay assets
IDEs/Qwen/johananimation/motion_graphics/compositor.py - Video compositor → Storyboard schemas: reads overlay data
IDEs/Qwen/johananimation/motion_graphics/compositor.py - Provider factory → Provider protocol: returns adapter
IDEs/Qwen/johananimation/motion_graphics/providers/__init__.py - Provider factory → Gemini adapter: selects adapter
IDEs/Qwen/johananimation/motion_graphics/providers/__init__.py - Gemini adapter → Gemini API: requests completion
IDEs/Qwen/johananimation/motion_graphics/adapters/gemini_adapter.py - Video compositor → FFmpeg tools: composes video
IDEs/Qwen/johananimation/motion_graphics/compositor.py