Architecture of a 50-Video/Day AI Pipeline
How we built a 10-phase autonomous system that goes from raw news to published video in ~40 minutes. Checkpoint/resume, fault isolation, zero human intervention.
Why 10 Phases?
Most "AI content" systems are a single LLM call wrapped in a script. That works until it doesn't. One failure and you lose the whole run. We split the pipeline into 10 independently fault-tolerant phases.
Checkpoint/Resume Architecture
Every phase writes a JSON checkpoint file to disk using atomic writes (write to .tmp, then rename). If the process crashes at phase 7, the next run detects phases 1-6 are complete and resumes from phase 7. No lost work.
.vdna2/checkpoints/{run_id}/
phase_01_discovery.json
phase_02_weighting.json
phase_03_quality_gate.json
...
phase_10_post_pipeline.json <-- all complete = run done
The Weighting Algorithm
Phase 2 doesn't just pick the top story. It scores each candidate on 4 axes: relevance (topic-cluster match), timeliness (freshness decay curve), audience demand (search trend alignment), and diversity (avoids repeating yesterday's content). The weighted score determines production priority.
Why Gemini Flash?
Cost. At our volume (50+ scripts/day), even $0.001/script compounds fast. Gemini Flash-latest handles journalistic script generation at a fraction of GPT-4's cost. We use it for scripting, metadata generation, and the follow-up SEO article. Quality is sufficient for news; cost savings are 10-50x.
Fault Isolation
Each phase has a primary function and an optional fallback. Voice synthesis: Fish Speech primary, gTTS fallback. Scripting: Gemini primary, cached topic data fallback. If a phase fails and has no fallback, the pipeline degrades gracefully — it skips that story and moves to the next, logging the failure for review.
The Stack
More Technical Reading
Why We Built Custom Voice AI Instead of Using Generic TTS
Generic TTS sounds like a robot. We trained a custom voice model using RVC (Retrained Voice Cloning) on our own voice data. Here is why it matters and how it works.
From Raw News to Published Video in 40 Minutes
A complete walkthrough of one production cycle: discovery, weighting, scripting, voice synthesis, thumbnail generation, assembly, audit, upload, and SEO.
10-Phase Pipeline
Each phase is independently fault-tolerant with checkpoint/resume. Crash at phase 7? It resumes from phase 8. No lost work.
Discovery
5 minWeighting
2 minQuality Gate
3 minScripting
5 minVoice
10 minThumbnail
2 minAssembly
10 minForensic Audit
1 minUpload
5 minPost-Pipeline
5 minThis automation
for your business?
The ViralDNA proves the stack works at scale. Same architecture, same reliability — customized for your content, your workflow, your goals.