How huang-jianhua/videogenius works
VideoGenius is an AI-assisted short-video creation platform, exposed through a Streamlit creator interface and a FastAPI service. The main workflow accepts a topic and production settings, generates a script and matching materials, creates narration and subtitles, then composes an effected video while tracking task state. The graph also preserves documented model routing, configuration, and enterprise-facing capabilities. Source-index references and excerpts support the principal code connections; README-only capabilities are identified as documented, not verified against unsampled implementations.
Main entry points: Main.py Creator workspace · task.py Video task orchestration · llm.py Script and term generation · router.py API routes
Components 33
Creator experience
- Creator workspace
webui/Main.py - Creative assistant
webui/pages/ai_creative_assistant.py - Material generator UI
webui/pages/ai_material_generator.py - Model management UI
webui/pages/model_management.py - Subtitle system UI
webui/pages/smart_subtitle_system.py - Voice system UI
webui/pages/smart_voice_system.py - Template library
webui/pages/template_library.py - Batch processing
webui/pages/batch_processor.py - Export optimizer
webui/pages/export_optimizer.py - Vision analysis
webui/pages/ai_vision_analysis.py
Video production
- Video task orchestration
app/services/task.py - Voice and narration
app/services/voice.py - Subtitle generation
app/services/subtitle.py - Video composition
app/services/video.py - Video effects
app/services/utils/video_effects.py
AI services
- Script and term generation
app/services/llm.py - AI material generation
app/services/ai_material_generator.py - Model routing and balancing
app/services/model_router.py - Load balancing
app/services/load_balancer.py - Provider failover
app/services/failover_manager.py - Model registry and health
app/services/model_manager.py - LLM provider interface
app/services/llm_interface.py
API and tasks
- Task state
app/services/state.py - FastAPI application
app/asgi.py - API routes
app/router.py - Video task endpoint
app/controllers/v1/video.py - Script endpoint
app/controllers/v1/llm.py
Configuration and enterprise
- Application configuration
app/config/config.py - Configuration manager
webui/pages/config_manager.py - Enterprise management
webui/pages/enterprise_management.py - Enterprise security
webui/pages/enterprise_security.py
Other components
- Creator
- AI model providers
Connections 33
- Creator → Creator workspace: uses
- Creator workspace → Video task orchestration: starts tasks
webui/Main.py - Creator workspace → Application configuration: reads settings
webui/Main.py - Creator workspace → Model management UI: offers
webui/Main.py - Creator workspace → Creative assistant: offers
webui/Main.py - Creator workspace → Subtitle system UI: offers
webui/Main.py - Creator workspace → Voice system UI: offers
webui/Main.py - Material generator UI → AI material generation: calls
webui/pages/ai_material_generator.py - Video task orchestration → Script and term generation: generates script
app/services/task.py - Video task orchestration → AI material generation: generates materials
app/services/task.py - Video task orchestration → Voice and narration: creates audio
app/services/task.py - Video task orchestration → Subtitle generation: creates subtitles
app/services/task.py - Video task orchestration → Video composition: composes video
app/services/task.py - Video task orchestration → Task state: updates state
app/services/task.py - Video composition → Video effects: applies effects
- Model routing and balancing → Script and term generation: routes models
app/services/model_router.py - Load balancing → Model routing and balancing: selects models
app/services/load_balancer.py - Provider failover → Load balancing: uses balancing
app/services/failover_manager.py - Provider failover → Model registry and health: checks providers
app/services/failover_manager.py - Model registry and health → LLM provider interface: registers providers
app/services/model_manager.py - Script and term generation → AI model providers: calls providers
- FastAPI application → API routes: mounts routes
app/asgi.py - API routes → Video task endpoint: registers
app/router.py - API routes → Script endpoint: registers
app/router.py - Video task endpoint → Video task orchestration: starts task
app/controllers/v1/video.py - Script endpoint → Script and term generation: generates script
app/controllers/v1/llm.py - Configuration manager → Application configuration: updates settings
webui/pages/config_manager.py - Model management UI → Model registry and health: manages models
- Enterprise management → Enterprise security: supports controls
- Creator workspace → Template library: offers
webui/Main.py - Creator workspace → Batch processing: offers
webui/Main.py - Creator workspace → Export optimizer: offers
webui/Main.py - Creator workspace → Vision analysis: offers
webui/Main.py