n8n: Viral clips from YouTube with Gemini + FFmpeg

Last checked

Solves Pulling the best moments out of a YouTube video and cutting them into clips automatically

Works with
n8n workflows FFmpeg
Setup
Hard setup
Price
Free
Type
n8n workflow

Visit official page → How to set it up

Made this tool? Send a correction or get it featured

Helps with turn long videos into shorts, earn more as an editor

Screenshots

The workflow on n8n.io: download a YouTube video, let Gemini pick the moments, then cut them with FFmpeg (open full size)
The workflow on n8n.io: download a YouTube video, let Gemini pick the moments, then cut them with FFmpeg Source: Screenshot of n8n.io taken by AgentCut on 2026-10-17

Ideas to try

Ideas to try

These are our ideas, not reports from real users. We haven't found a public example of someone using this tool yet. Know one?

  • Give the agent shot rules: full screen face for punchlines, split screen for explanations, screen capture when the screen matters
  • Pick the moments yourself and let the agent do the cropping, captions and export
  • Offer podcasters a monthly package of captioned Shorts cut from each episode

What it does

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

  1. Self-host n8n; install ffmpeg and yt-dlp on the host.
  2. Create /data/clips with write permission.
  3. Import the workflow JSON and create the editing subworkflow.
  4. 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

Other tools for turn long videos into shorts

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