You know that moment in a video, the perfect quote, the highlight, the “wait, run that back” moment? That’s the part everyone wants to share.
But getting from full-length video to clean, clipped highlight is... not fast. Manually trimming videos takes time. Doing it over and over again? That’s time you're not spending building things that matter.
So we automated it.
With n8n and FastPix, you can go from long-form video to precisely clipped, ready-to-publish shortform content automatically. No video editor. No exporting. No timeline scrubbing. Just a simple workflow that clips the moment you want, when you want it, every single time.
Let’s set it up.
Because doing it manually doesn’t scale. Not when you’re working with live streams, user-generated uploads, or just more content than one person can reasonably drag across a timeline.
Traditional editing tools are fine, until you need to clip ten videos a day, across multiple platforms, with frame-level precision. That’s where automation pays off:
With n8n as your automation engine and FastPix handling the actual clipping via API, you get a clean, scalable pipeline, from ingestion to distribution with almost zero manual work.
Let’s build it.
This workflow won’t take much to set up, but here’s what you’ll want on hand:
n8n is an open-source automation platform that lets you connect APIs, services, and logic into structured workflows. It’s node-based, which means you can build out logic visually, schedule triggers, HTTP requests, loops, and conditions, without needing to spin up a backend.
For video tasks, this makes it ideal. You can fetch video sources, pass timestamps, make API calls to processing services, and route outputs wherever you want, all from one interface.
FastPix provides APIs for on-demand video processing, including clipping, encoding, and delivery. In this workflow, it’s used to extract exact segments from a video based on start and end times.
The clipping endpoint supports:
You send a video URL and timestamps, FastPix returns a processed clip, no manual trimming, no export steps, no video editor needed.
When you connect n8n’s automation flow with FastPix’s API, you get a reliable, repeatable way to generate and publish clips with minimal overhead.
Let’s walk through setting up your automated video clipping flow in n8n. The workflow will do the following:
You can start the workflow either manually (for testing) or on a schedule (for automation):
If your video is stored on Google Drive:
If your video is already hosted publicly (e.g., on S3 or CDN), you can skip this and use a static URL directly.
Add an HTTP Request node to call the FastPix API:
Method: POST
URL: https://api.fastpix.io/v1/on-demand
Headers:
Content-Type: application/json
Authorization: Basic <base64 encoded Token ID:Token Secret
Body (JSON):
1{
2 "inputs": [
3 {
4 "type": "video",
5 "url": "https://static.fastpix.io/sample.mp4",
6 "startTime": 2,
7 "endTime": 30
8 }
9 ]
10}
This sends a request to create a clip between 2s and 30s from the provided video URL. FastPix returns a clip ID you’ll use to track status.
Video processing isn’t always instant, so:
Correct the polling method, use GET, not POST:
Once the status is completed, FastPix will return a playable asset. You can build the download URL using the playback ID:
bash
https://stream.fastpix.io/{{ $json.data.playbackIds[0].id }}/capped-4k.mp4
If you want to push the final clip somewhere like YouTube:
The basic workflow works, but if you’re handling real-world volume or different input sources, a few upgrades can make it more dynamic and resilient.
Hardcoding timestamps is fine for testing. But in production, you’ll want to pull startTime and endTime from somewhere else, like a Google Sheet, a webhook payload, or a database.
Add a Google Sheets node or Webhook Trigger to fetch timestamp values dynamically. This makes your workflow reusable for different videos.
APIs sometimes fail. Network issues, bad input, expired tokens, it happens. Add an If node after the FastPix request or status check. If the response status isn’t 200 or the job fails, send a notification using Slack, Email, or any other n8n integration. This helps you catch failures without manually checking logs.
You don’t have to stop at YouTube. Extend the flow to support TikTok, Instagram Reels, or anywhere else your audience lives. You can either:
Don’t want to manually mark highlights? Use AI to find them for you. Add a transcription step with OpenAI Whisper or a similar speech-to-text service. Then scan the text for keywords, speaker moments, or chapters, and pass those timestamps into FastPix for automated clip generation.
Don’t want to start from scratch? No problem. Here’s a minimal n8n workflow that handles the core logic: trigger → FastPix clip request → download result.
You can import this JSON directly into your n8n editor and modify as needed.
A quick note before you import:
1{
2 "nodes": [
3 {
4 "parameters": {},
5 "type": "n8n-nodes-base.manualTrigger",
6 "typeVersion": 1,
7 "position": [0, 0],
8 "id": "a5fb32a0-5a71-4859-a8c0-30c819116608",
9 "name": "Manual Trigger"
10 },
11 {
12 "parameters": {
13 "method": "POST",
14 "url": "https://api.fastpix.io/v1/on-demand",
15 "sendHeaders": true,
16 "headerParameters": {
17 "parameters": [
18 {
19 "name": "accept",
20 "value": "application/json"
21 },
22 {
23 "name": "authorization",
24 "value": "Basic <REPLACE_WITH_YOUR_BASE64_TOKEN>"
25 }
26 ]
27 },
28 "sendBody": true,
29 "specifyBody": "json",
30 "jsonBody": "{\n \"accessPolicy\": \"public\",\n \"optimizeAudio\": false,\n \"maxResolution\": \"1080p\",\n \"inputs\": [\n {\n \"url\": \"https://static.fastpix.io/sample.mp4\",\n \"startTime\": 0,\n \"endTime\": 60,\n \"type\": \"video\"\n }\n ],\n \"mp4Support\": \"capped_4k\"\n}",
31 "options": {}
32 },
33 "type": "n8n-nodes-base.httpRequest",
34 "typeVersion": 4.2,
35 "position": [220, 0],
36 "id": "17b422f7-e0c3-48d5-a4c1-919997b44724",
37 "name": "Send to FastPix"
38 },
39 {
40 "parameters": {
41 "url": "=https://stream.fastpix.io/{{$json.data.playbackIds[0].id}}/capped-4k.mp4",
42 "options": {}
43 },
44 "type": "n8n-nodes-base.httpRequest",
45 "typeVersion": 4.2,
46 "position": [440, 0],
47 "id": "a817fa2a-22b7-46b0-908f-4a8e6a770649",
48 "name": "Download Clip",
49 "retryOnFail": true,
50 "maxTries": 5
51 }
52 ],
53 "connections": {
54 "Manual Trigger": {
55 "main": [
56 [{ "node": "Send to FastPix", "type": "main", "index": 0 }]
57 ]
58 },
59 "Send to FastPix": {
60 "main": [
61 [{ "node": "Download Clip", "type": "main", "index": 0 }]
62 ]
63 }
64 }
65}
Once imported, run the workflow manually and check the outputs. If all goes well, you’ll get a downloadable clip URL from FastPix.
Let me know if you want a full version that includes polling, retry logic, or dynamic inputs, happy to expand this next.
Once your workflow is running, here are a few things worth keeping in mind:
Combining n8n’s workflow automation with FastPix’s video APIs gives you a powerful way to automate clipping, repurposing, and publishing video content at scale.
From one API, you get:
Whether you’re building social media highlights, auto-recaps from live streams, or a fully automated content pipeline, FastPix with n8n lets you move faster, with less manual work.
FastPix is also available as SDKs in Node.js, Python, Go, PHP, and C#, so you can integrate in whatever stack you already use. Sign up to try FastPix and get $25 in free credit.