<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Summit Singh Thakur</title>
    <description>The latest articles on DEV Community by Summit Singh Thakur (@summitsingh).</description>
    <link>https://dev.to/summitsingh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1683242%2Fd894ae76-321b-42db-8339-215ca2157e36.jpg</url>
      <title>DEV Community: Summit Singh Thakur</title>
      <link>https://dev.to/summitsingh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/summitsingh"/>
    <language>en</language>
    <item>
      <title>I built a pipeline that turns a topic into a 20-30 minute documentary</title>
      <dc:creator>Summit Singh Thakur</dc:creator>
      <pubDate>Sun, 20 Sep 2026 19:59:40 +0000</pubDate>
      <link>https://dev.to/summitsingh/i-built-a-pipeline-that-turns-a-topic-into-a-20-30-minute-documentary-bfp</link>
      <guid>https://dev.to/summitsingh/i-built-a-pipeline-that-turns-a-topic-into-a-20-30-minute-documentary-bfp</guid>
      <description>&lt;p&gt;I've been working on AI Video Factory, an MIT-licensed Python pipeline that turns a topic into a complete 20-30 minute documentary: researched script, per-scene visuals, local TTS narration, music bed, karaoke captions, FFmpeg assembly, QC, thumbnail, and YouTube metadata.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Two videos so far:&lt;/p&gt;

&lt;p&gt;Demo #1: an AI-generated teaser clip showing the idea: &lt;a href="https://youtu.be/CASvWRXd3jg" rel="noopener noreferrer"&gt;https://youtu.be/CASvWRXd3jg&lt;/a&gt;&lt;br&gt;
Demo #2: 47 seconds of real output from the pipeline, topic "Europa's Hidden Ocean" (stock footage, local TTS narration, karaoke captions): &lt;a href="https://youtu.be/XrlqRv2bInQ" rel="noopener noreferrer"&gt;https://youtu.be/XrlqRv2bInQ&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Both are rough. If you watch, I'd rather hear what's off than what's good.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;You give it a topic. It researches the topic, writes a script with citations, pulls per-scene visuals from Pexels/Pixabay/NASA, narrates it with local TTS, lays down a music bed, burns in karaoke captions, assembles everything in FFmpeg, runs a QC gate, and outputs a thumbnail plus YouTube metadata. Seven presets: business autopsy, history reconstruction, science doc, horror anthology, and more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three things I learned the hard way
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. LLM-written scripts invent citations that look completely legit.&lt;/strong&gt; The first scripts came back with references that sounded real but pointed nowhere. Now every cited URL gets a real HTTP check against a 200 response. Anything that fails the check gets cut or rewritten.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. A "25 minute" video kept coming out at 14 minutes.&lt;/strong&gt; Runtime drift is a real problem with generated scripts. Scripts are now written in timed beats, and underweight beats get extended at roughly 150 wpm until the target runtime holds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Real stock footage beats AI visuals for most scenes.&lt;/strong&gt; This one honestly surprised me. AI-generated visuals look impressive frame by frame but feel off across a 20-minute runtime. The pipeline prefers real footage, with local still generation and procedural fallbacks when nothing fits.&lt;/p&gt;

&lt;h2&gt;
  
  
  The unglamorous wins
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Content-addressed caching of pipeline stages, so iterating on one scene does not mean a full re-render.&lt;/li&gt;
&lt;li&gt;A QC gate that fails the run on dark frames, digital silence, or wrong resolution before encoding.&lt;/li&gt;
&lt;li&gt;Single loudnorm pass to -16 LUFS, per-scene xfade transitions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Local-first
&lt;/h2&gt;

&lt;p&gt;Scripting runs against any OpenAI-compatible endpoint (LM Studio, llama-server), TTS is local, and nothing cloud is required. Roadmap includes Whisper-based caption alignment, more music profiles, optional Veo/Sora providers, and multilingual narration.&lt;/p&gt;

&lt;p&gt;The repo is here: &lt;a href="https://github.com/summitsingh/ai-video-factory" rel="noopener noreferrer"&gt;https://github.com/summitsingh/ai-video-factory&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I genuinely don't know if anyone besides me wants this. Tell me what you'd throw at it first.&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>ai</category>
      <category>ffmpeg</category>
    </item>
  </channel>
</rss>
