Autonomous YouTube Short Factory
A fully autonomous, zero-touch pipeline that generates dynamic video scripts, fetches high-res B-roll, synthesizes voiceovers, renders the final MP4, and uploads directly to YouTube Drafts.

Problem
Manual video editing and distribution across multiple platforms is a massive bottleneck. The goal was to build a system that requires absolutely zero human intervention—from script generation to final YouTube upload.
Architecture & Solution
N8n cron triggers a script generator → Node.js scripts query Pexels API for B-roll and Voicebox API for LuxTTS voiceovers → Remotion dynamically scales scenes to match audio duration → FFmpeg injects synthesized ambient background music at 20% volume → N8n uploads the finalized MP4s to YouTube Drafts with 194-country metadata tags injected into the caption.
Implementation Decisions
- Headless Remotion Engine: Allowed for dynamic React-based video generation instead of rigid video templates
- FFmpeg Muxing: Synthesized the bouncy Kalimba track into a slow, broadcast drone and overlaid it locally to prevent massive render times
- N8n Modular Workflows: Separated into Script Factory, Production Pipeline, and YouTube Uploader for isolated retry logic
- Global Tag Injection: Dynamically appended 194 country hashtags specifically to YouTube/Facebook captions to avoid Instagram's 30-tag limit