🎬 Turn long videos into social shorts with RenderIO and OpenAI

⚑ 214 views · 🎬 Content Creation & Video

πŸ’‘ Pro Tip β€” Since TikTok doesn’t have a public API, getting data usually means fragile HTTP scraping. ScraperNode is a community node that gives you clean JSON for TikTok profiles, videos, and comments β€” drop it into your workflow and skip the parsing.

View All Scrapers

Description

Who is this for

Content creators, YouTubers, and social media managers who want to repurpose long form videos into short clips without doing it manually. Works on self hosted n8n instances.

What it does

Monitors a Google Drive folder for new videos. When a video appears, the workflow downloads it, extracts the audio, transcribes it using Whisper, and sends the transcript to OpenAI to identify the best highlight moments. Each selected clip is then rendered in three aspect ratios (9:16 for TikTok, 9:16 for Reels, 1:1 for Square) using cloud based FFmpeg through RenderIO. The finished clips are uploaded back to Google Drive and every run is logged to a Google Sheet.

How it works

  1. Watch Drive Folder polls your source folder every minute and triggers when a new video file is detected.
  2. Set Config holds all tunable settings in one place: clip count, folder IDs, sheet IDs, and LLM model.
  3. The video is downloaded from Google Drive and uploaded to RenderIO for processing.
  4. Extract Audio runs an FFmpeg command to pull the audio track from the video.
  5. The audio is sent to Whisper for transcription. Both TXT and SRT transcript files are saved to Google Drive.
  6. Pick Clips sends the transcript to OpenAI, which returns timestamped highlight suggestions.
  7. Validate Clips checks that all timestamps and durations are valid before rendering.
  8. Each clip is rendered in three formats through RenderIO with separate FFmpeg commands for each aspect ratio.
  9. All rendered clips are downloaded and uploaded to a dedicated output folder in Google Drive.
  10. Append Clip Row logs each clip to a Google Sheet and Append Run Summary records the overall processing stats.

Requirements

How to set up

  1. Install the n8n-nodes-renderio community node from Settings > Community Nodes.
  2. Create credentials for Google Drive (OAuth2), Google Sheets (OAuth2), OpenAI, and RenderIO API.
  3. Import the workflow and open the Set Config node.
  4. Update the outputParentFolderId with the Google Drive folder ID where output folders should be created.
  5. Update the sheetId with your Google Sheet document ID.
  6. Set sheetTab and sheetRunsTab to the correct sheet tab IDs for clip logging and run summaries.
  7. Configure the Watch Drive Folder trigger node to point at your source video folder.
  8. Activate the workflow and drop a test video into the folder.

How to customize

πŸ”— Nodes Used

Google Sheets, HTTP Request, Google Drive, Google Drive Trigger, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup