workflows.fit
Back to n8n workflows
n8n templateFreeBy RenderIO

Extract TikTok reaction hooks with RenderIO scene detection

Works on both n8n Cloud and self-hosted instances. This template uses the n8n-nodes-renderio community node, which is installable on n8n Cloud and self-hosted setups. Who's it for UGC creators, performance marketers, ...

DevelopmentCore NodesSticky NoteForm TriggerN8n-nodes-renderio.renderioWait
Loading interactive preview...

Template notes

Works on both n8n Cloud and self-hosted instances. This template uses the n8n-nodes-renderio community node, which is installable on n8n Cloud and self-hosted setups.

Who's it for

UGC creators, performance marketers, and AI avatar producers who want to harvest the reaction shot from a TikTok and reuse it as the opening hook of new content. The extracted clip is designed to feed straight into Kling motion control or any AI avatar pipeline to mass-produce on-brand UGC reactions, without manually scrubbing through videos to find the cut point.

What it does

You paste a TikTok URL into a form. The workflow downloads the video, runs FFmpeg scene detection through [RenderIO](https://renderio.dev/) to find where the opening reaction shot ends and the product or app demo begins, then trims the source at that exact cut point. You get back a clean MP4 of just the reaction hook (typically the first 1 to 6 seconds), ready to drop into your avatar workflow. All video processing runs on cloud-based FFmpeg via RenderIO, so no local rendering is needed.

How it works

1. On TikTok URL Submission is a form trigger that accepts a TikTok URL from the user. 2. Download & Detect Scenes uses RenderIO to download the video and run an FFmpeg scene detection pass (select='gt(scene,0.3)') that writes timestamps of every detected cut to a scenes.txt file. 3. Wait 5 Seconds for Detection pauses to let the RenderIO job complete, then Verify Scene Detection Status checks the job state. If Scenes Detected branches based on whether the result is ready, with Wait 10 Seconds for Detect Retry handling retries. 4. Extract Initial Scene Cut fetches the scenes.txt file, parses all ptstime timestamps with a regex, and picks the first cut that falls in the 1 to 6 second window. If the first cut is too early it uses the next valid one; if no cut is found it falls back to 6 seconds. 5. Execute Visual Hook Split sends a POST to the RenderIO API with an FFmpeg command that trims the source from 0 to the detected hook end time, re-encoding with libx264 veryfast and AAC audio. 6. Wait 5 Seconds for Split and Verify Split Execution Status poll until the trim job finishes, with Wait 10 Seconds for Split Retry handling retries. 7. Show Hook Download Link displays a completion form with the hook end time, the detection reason, all detected cut timestamps, and a direct download link to the trimmed MP4.

Requirements