How saard00/ai-youtube-shorts-generator works
AutoShorts AI turns a topic into a narrated, edited vertical short. The main workflow is orchestrated by main.py: generate a topic and scene script, add timed voice clips, fetch paired stock footage, render scenes (optionally injecting the avatar), and stitch the final video. The README also describes silence removal and transition-based editing; the sampled composer implements scene transitions and avatar injection, but the active audio module does not show silence trimming. Graph links are limited to calls shown in excerpts or capabilities documented in the README.
Main entry points: main.py Pipeline runner · composer.py Scene rendering · audio.py Voice generation · asset_manager.py Stock video sourcing
Components 17
Content generation
- Pipeline runner
main.py - Topic selection
modules/brain.py - Scene scripting
modules/brain.py - Voice generation
modules/audio.py - Legacy Bark audio
modules/notneededaudio.py
Media sourcing
- Stock video sourcing
modules/asset_manager.py - Avatar footage
assets/avatar/avatars.mp4
Video production
- Scene rendering
modules/composer.py - Transition stitching
modules/composer.py
Assets and output
- Audio clips
- Video clips
- Rendered scenes
- Final short
Other components
- Topic user
- Google Gemini
- edge-tts
- Pexels API
Connections 20
- Topic user → Pipeline runner: provides topic
README.md - Pipeline runner → Topic selection: requests topic
main.py - Pipeline runner → Scene scripting: requests script
main.py - Topic selection → Google Gemini: generates with
README.md - Scene scripting → Google Gemini: generates with
README.md - Pipeline runner → Voice generation: processes script
main.py - Voice generation → edge-tts: generates speech
README.md - Voice generation → Audio clips: writes clips
modules/audio.py - Pipeline runner → Stock video sourcing: gets footage
main.py - Stock video sourcing → Pexels API: searches and downloads
README.md - Stock video sourcing → Video clips: writes clips
modules/asset_manager.py - Pipeline runner → Scene rendering: renders scenes
main.py - Scene rendering → Audio clips: reads narration
README.md - Scene rendering → Video clips: reads footage
README.md - Scene rendering → Avatar footage: injects optionally
README.md - Scene rendering → Rendered scenes: writes scenes
modules/composer.py - Pipeline runner → Transition stitching: stitches scenes
main.py - Transition stitching → Rendered scenes: reads scenes
README.md - Transition stitching → Final short: writes final video
modules/composer.py - Legacy Bark audio → Audio clips: writes clips
modules/notneededaudio.py