How baddieangelasolos-bot/long-video-genarator works
Long Video Generator automatically turns Drive football clips and a music track into a planned, rendered highlight video, then uploads it and emails run reports. Its workflow fetches media, inventories and scans footage, labels shots and groups moments, builds and validates a template-constrained timeline, renders and verifies the result, and exports it. The graph preserves the documented v2 labeling and planning stages. Some connections are documented only in the README; unsampled implementation details are not inferred.
Main entry points: run_pipeline.py Pipeline supervisor · script_planner.py Timeline planner · classify_shots.py Shot labeling · gemini_router.py Gemini model router
Components 23
Run orchestration
- Pipeline supervisor
autonomy/run_pipeline.py - Recovery mechanic
autonomy/mechanic.py - Drive fetch
autonomy/fetch_drive.py
Footage analysis
- Media inventory
pipeline/inventory.py - Footage scan
pipeline/fullscan.py - Duplicate detection
scripts/dup_scan.py - Shot windows
pipeline/shots.py
Labeling and planning
- Shot labeling
scripts/classify_shots.py - Gemini model router
autonomy/gemini_router.py - Moment grouping
scripts/shot_events.py - Catalog tools
scripts/catalog_tools.py - Timeline planner
scripts/script_planner.py - Offline planner
scripts/offline_planner.py - Plan validation and repair
scripts/timeline_core.py - Composition rules
scripts/comp_rules.py
Render and delivery
- Master renderer
scripts/render_video.py - Output quality checks
pipeline/qa.py - Drive export
autonomy/drive_export.py - Run and log mail
autonomy/email_logs.py
Other components
- Repository owner
- Google Drive
- Gemini API
- FFmpeg
Connections 24
- Repository owner → Pipeline supervisor: starts run
README.md - Pipeline supervisor → Recovery mechanic: supervises stages
autonomy/run_pipeline.py - Pipeline supervisor → Drive fetch: runs fetch
autonomy/run_pipeline.py - Drive fetch → Google Drive: downloads media
README.md - Pipeline supervisor → Media inventory: runs inventory
README.md - Pipeline supervisor → Footage scan: runs scan
README.md - Footage scan → Duplicate detection: finds repeats
README.md - Pipeline supervisor → Shot windows: plans windows
README.md - Shot windows → Shot labeling: labels windows
README.md - Shot labeling → Gemini model router: requests labels
scripts/classify_shots.py - Gemini model router → Gemini API: calls models
autonomy/gemini_router.py - Shot labeling → Moment grouping: groups labels
scripts/classify_shots.py - Moment grouping → Catalog tools: forms catalog
- Pipeline supervisor → Timeline planner: runs planning
README.md - Timeline planner → Gemini model router: requests plan
- Timeline planner → Offline planner: falls back
scripts/script_planner.py - Timeline planner → Plan validation and repair: validates plan
scripts/script_planner.py - Plan validation and repair → Composition rules: checks composition
scripts/timeline_core.py - Pipeline supervisor → Master renderer: runs render
README.md - Master renderer → FFmpeg: renders video
README.md - Pipeline supervisor → Output quality checks: runs QA
README.md - Pipeline supervisor → Drive export: runs export
README.md - Drive export → Google Drive: uploads video
README.md - Pipeline supervisor → Run and log mail: mails logs
README.md