Arsal MuradAI and automation engineer

← All case files

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

Case file

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

10,324 msthe length of the rebuilt reel in a live run, matched to the original's timing. The workflow has 28 working nodes, 39 counting 11 sticky notes.

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.

n8n template page: rebuild product-focused reels shot by shot with Apify, Gemini and fal.ai
The public template page, 19399.

Explore the workflow

The n8n template page for rebuilding product-focused reels shot by shot with Apify, Gemini and fal.ai, created by Muhammad Arsal Murad, verified
Download workflow JSONOpen on n8n.io

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.

REELa source URLDOWNLOADApifyDETECT CUTSone frame per sceneDESCRIBEGeminiNEW IMAGESone per sceneANIMATEfal.ai, retriedASSEMBLEoriginal orderREELa source URLDOWNLOADApifyDETECT CUTSone frame per sceneDESCRIBEGeminiNEW IMAGESone per sceneANIMATEfal.ai, retriedASSEMBLEoriginal order
  1. A reel is downloaded.
  2. Every cut is detected and one frame is pulled per scene.
  3. A model describes each shot.
  4. A new image is generated per scene around a different product.
  5. Each image is animated, with retries.
  6. The clips are assembled in the original order at the original durations.
NOTES
  1. Slow services are submitted and polled, with retries.
  2. Each node was checked against the live service, not the documentation.
TITLEReel rebuild
DRAWNM. A. Murad
BASEDIslamabad, Pakistan
CHECKEDAgainst the source notes
REV2026-11
NEXT STEPGot a job like this? 20 minutes, no deck.Book it
Book 20 minutes