Turn long videos into social shorts with RenderIO and OpenAI
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
Watch Drive Folder polls your source folder every minute and triggers when a new video file is detected. Set Config holds all tunable settings in one place: clip count, folder IDs, sheet IDs, and LLM model. The video is downloaded from Google Drive and uploaded to RenderIO for processing. Extract Audio runs an FFmpeg command to pull the audio track from the video. The audio is sent to Whisper for transcription. Both TXT and SRT transcript files are saved to Google Drive. Pick Clips sends the transcript to OpenAI, which returns timestamped highlight suggestions. Validate Clips checks that all timestamps and durations are valid before rendering. Each clip is rendered in three formats through RenderIO with separate FFmpeg commands for each aspect ratio. All rendered clips are downloaded and uploaded to a dedicated output folder in Google Drive. Append Clip Row logs each clip to a Google Sheet and Append Run Summary records the overall processing stats.
Requirements
A self hosted or cloud n8n instance (uses a community node) The n8n-nodes-renderio community node installed via Settings > Community Nodes A free RenderIO account and API key from renderio.dev Google Drive and Google Sheets OAuth credentials An OpenAI API key
How to set up
Install the n8n-nodes-renderio community node from Settings > Community Nodes. Create credentials for Google Drive (OAuth2), Google Sheets (OAuth2), OpenAI, and RenderIO API. Import the workflow and open the Set Config node. Update the outputParentFolderId with the Google Drive folder ID where output folders should be created. Update the sheetId with your Google Sheet document ID. Set sheetTab and sheetRunsTab to the correct sheet tab IDs for clip logging and run summaries. Configure the Watch Drive Folder trigger node to point at your source video folder. Activate the workflow and drop a test video into the folder.
How to customize
Change clipCount in Set Config to generate more or fewer clips per video. Swap llmModel from gpt-4o-mini to gpt-4o or another model for different clip selection quality. Modify the FFmpeg commands in Build Commands for Clip to adjust resolution, bitrate, add watermarks, or change output formats. Replace Google Drive with S3 or another storage provider if that fits your stack. Add a Slack or Telegram notification node after the summary step to get alerted when processing finishes.
Related Templates
Automated Work Attendance with Location Triggers
his workflow automates time tracking using location-based triggers. How it works Trigger: It starts when you enter or e...
Track Expenses by Parsing Telegram Transaction Messages to Google Sheets
Overview This n8n workflow template automatically parses incoming Telegram transaction messages and logs structured dat...
Send Daily Weather Forecasts from OpenWeatherMap to Telegram with Smart Formatting
🌤️ Daily Weather Forecast Bot A comprehensive n8n workflow that fetches detailed weather forecasts from OpenWeatherMap...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments