How abdullahnaveed/ai-shorts-generator works
AI Shorts Generator turns a topic into a captioned vertical video and platform-ready copy, through either the CLI or local review dashboard. The production orchestrator creates a structured script, matches or generates scene visuals, synthesizes narration, and assembles the final video with captions, music, and optional branding. Separate branches support stock and AI library population, reusable semantic matching, batch topics, and review. Edges reflect the README and sampled source/index references; unsampled implementation details are not inferred.
Main entry points: produce.py Production orchestrator · app.py Review dashboard · run.py CLI commands · assemble.py Video assembly
Components 25
Creation and review
- CLI commands
run.py - Review dashboard
dashboard/app.py - Script drafts
pipeline/drafts.py - Topic backlog
data/topics.txt
Video production
- Production orchestrator
pipeline/produce.py - Script generation
pipeline/scriptgen.py - Script and scene schema
pipeline/models.py - Scene image generation
pipeline/images.py - Scene animation
pipeline/animate.py - Voice synthesis
pipeline/voice.py - Karaoke captions
pipeline/captions.py - Video assembly
pipeline/assemble.py - Watermark and cards
pipeline/cards.py - Branded outro
pipeline/outro.py
Reusable footage
- Scene matching
pipeline/match.py - Semantic clip catalog
pipeline/library.py - Stock footage fetch
pipeline/stock.py - AI library generation
pipeline/generate_library.py
Project state
- Video state and artifacts
pipeline/state.py
Other components
- Creator
- fal.ai
- OpenAI
- Pexels / Pixabay
- faster-whisper
- MP4 and platform copy
Connections 36
- Creator → CLI commands: runs commands
README.md - Creator → Review dashboard: reviews videos
README.md - CLI commands → Production orchestrator: starts production
run.py - CLI commands → Topic backlog: loads backlog
README.md - CLI commands → Stock footage fetch: fetches footage
run.py - CLI commands → AI library generation: generates clips
run.py - CLI commands → Review dashboard: starts server
run.py - Review dashboard → Script generation: requests scripts
dashboard/app.py - Review dashboard → Script drafts: manages drafts
dashboard/app.py - Review dashboard → Scene matching: previews matches
dashboard/app.py - Review dashboard → Stock footage fetch: fetches stock
dashboard/app.py - Review dashboard → Production orchestrator: starts production
dashboard/app.py - Production orchestrator → Script generation: generates script
pipeline/produce.py - Script generation → Script and scene schema: returns structure
pipeline/scriptgen.py - Production orchestrator → Scene image generation: generates scenes
pipeline/produce.py - Production orchestrator → Scene matching: matches scenes
pipeline/produce.py - Production orchestrator → Semantic clip catalog: stores generated clips
pipeline/produce.py - Production orchestrator → Voice synthesis: synthesizes narration
pipeline/produce.py - Production orchestrator → Video assembly: assembles video
pipeline/produce.py - Production orchestrator → Video state and artifacts: records progress
pipeline/produce.py - Scene image generation → fal.ai: generates images
README.md - Scene animation → fal.ai: generates motion
README.md - Script generation → OpenAI: writes scripts
README.md - Voice synthesis → OpenAI: synthesizes speech
README.md - Scene matching → Semantic clip catalog: searches clips
pipeline/match.py - Stock footage fetch → Pexels / Pixabay: downloads footage
README.md - Stock footage fetch → Semantic clip catalog: catalogs footage
pipeline/stock.py - AI library generation → Scene image generation: generates images
pipeline/generate_library.py - AI library generation → Scene animation: animates clips
pipeline/generate_library.py - AI library generation → Semantic clip catalog: catalogs clips
pipeline/generate_library.py - Video assembly → Karaoke captions: burns captions
pipeline/assemble.py - Video assembly → Watermark and cards: overlays watermark
pipeline/assemble.py - Video assembly → Branded outro: stitches outro
pipeline/assemble.py - Karaoke captions → faster-whisper: aligns speech
README.md - Video assembly → MP4 and platform copy: exports MP4
README.md - Production orchestrator → MP4 and platform copy: writes platform copy
README.md