A video pipeline that survives three unreliable APIs
28 nodes take a reel apart, find every cut and rebuild it around a different product, with the same shot count and pacing.
n8n · Apify · Gemini · fal.ai · public template 19399
The problem
Short-form video ads follow a rhythm: six or seven cuts, each held for a beat. If you know a reel performs, the useful move is to keep its structure and swap what is in it.
What I built
The workflow downloads the reel, detects every cut, pulls one frame per scene, has a model describe each shot, generates a new image for each scene around a different product, animates each one, and reassembles them in the original order at the original durations. It is public as n8n template 19399, so every node is readable.
The hard part
I ran it end to end against live APIs and three of them did not match their own descriptions. The scraper named for reels accepts usernames, not reel URLs, so the general scraper with a direct-URL parameter is the one that works. The "latest" model alias hit hard rate limits, and pinning an older version fixed it. The video model accepts clips of five or ten seconds, so every clip is generated long and trimmed back to its true length at assembly.
The result
Source: The node count is from n8n.io template 19399. The 10,324 ms is from my own run.
Limits. It is a template, not client work. Costs grow with the number of cuts in the source video.
case file

Explore the workflow

The live view is n8n's own preview. It loads only when you press the button, and your browser then sends this workflow to n8n's servers.
How it works.
- A reel is downloaded.
- Every cut is detected and one frame is pulled per scene.
- A model describes each shot.
- A new image is generated per scene around a different product.
- Each image is animated, with retries.
- The clips are assembled in the original order at the original durations.
- Slow services are submitted and polled, with retries.
- Each node was checked against the live service, not the documentation.
Want to talk?
Email hello@arsalmurad.com or book 20 minutes, and tell me what you're working on.