n8n: Viral clips from YouTube with Gemini + FFmpeg
Downloads a YouTube video with yt-dlp, has Gemini score transcript moments for virality, then FFmpeg cuts the top 10 into 9:16 clips with burned-in subtitles.
How to set it up
- Self-host n8n; install ffmpeg and yt-dlp on the host.
- Create /data/clips with write permission.
- Import the workflow JSON and create the editing subworkflow.
- Add Gemini and Gmail credentials, then test on a 5-10 minute video.
This is a plain-English summary of the project's own instructions. Commands and versions change, so always follow the current README at the source link.
Safety notes
- Needs shell access on the n8n host (FFmpeg, yt-dlp).
- Google Gemini API key and Gmail OAuth credentials.
General rule: open a duplicate of your project before letting any agent make changes, and read what a script does before approving it.
Alternatives and related tools
VideoBGRemover n8n templates (official)
Six importable n8n workflows for video background removal, compositing, AI UGC ads, AI background change and a Veo 3 + Lottie animation pipeline.
Zvid n8n video workflows
Ready-made n8n automations that render videos with Zvid: bulk personalized videos from Sheets/CSV, Shopify product videos, and an AI agent that drafts and renders videos.
HyperFrames (HeyGen)
Open-source framework that turns HTML, CSS, media and seekable animations into deterministic MP4s; usable from AI coding agents through skills.
ffmpeg-skill
42 local FFmpeg tools (captions with karaoke animation, 9:16 fit, silence removal, straighten, etc.) with a machine-readable contract; the agent checks its own output.
Claude Video Vision
Lets Claude 'watch' a video: extracts frames via ffmpeg and transcribes audio (Gemini, local Whisper or OpenAI) with timestamps.
FableCut
Zero-dependency browser video editor with a JSON timeline that AI agents drive via MCP or REST, with a live-reloading UI.
Compare all 3 n8n workflows tools →
The AgentCut weekly
New AI connectors for After Effects, Premiere, Resolve and CapCut, tested setup notes, and what broke after app updates. One email a week.