Combine mismatched video clips into a single MP4 with FFmpeg
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when someone submits an n8n form (“Combine video clips with FFmpeg”). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“Combine video clips with FFmpeg”).
- Prepare Run (Code): runs custom JavaScript code
- Create the temp folder (Execute Command): runs a shell command on the n8n host
- Restore the uploaded clips (Code): runs custom JavaScript code
- Split into one item per clip (Code): runs custom JavaScript code
- Save each clip to disk (Read/Write Files from Disk): writes a file to disk
- Build the FFmpeg command (Code): runs custom JavaScript code
- Combine all clips (FFmpeg) (Execute Command): runs a shell command on the n8n host
- Verify the combine succeeded (Code): runs custom JavaScript code
- Read the combined video back (Read/Write Files from Disk): reads a file from disk
- Attach the combine report to the file (Code): runs custom JavaScript code
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (4)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Execute Command
n8n-nodes-base.executeCommand - Read/Write Files from Disk
n8n-nodes-base.readWriteFile
From the author
Quick overview This self-hosted workflow collects multiple uploaded video clips via an n8n form, normalizes them to a chosen output resolution, and combines them into a single MP4 using FFmpeg’s concat filter, then returns the merged file along with a brief…