video.extract_clips
Operation: video.extract_clips
Category: video
Tags: ffmpeg, video, clip
Extract precise clip segments from a video at given timestamps
Runtime
Section titled “Runtime”Type: Native (built-in)
Timeout: 300s
Retries: 3 (ExponentialWithJitter)
Inputs
Section titled “Inputs”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
video_path | String | Yes | — | Source video path |
clips | JSON | Yes | — | Array of {title, start, end, hook_text} objects |
Outputs
Section titled “Outputs”| Name | Type | Description |
|---|---|---|
clips | JSON | Array of extracted clip objects with paths |
clip_count | Number | Number of clips extracted |
Default Configuration
Section titled “Default Configuration”{ "codec": "libx264", "crf": "22", "preset": "fast"}import { WorkflowBuilder } from "@fabric-platform/sdk";
const workflow = new WorkflowBuilder("my-workflow") .node("video-extract-clips", "tool", (n) => n.config({ operation: "video.extract_clips", // ... node-specific config }) ) .build();from fabric_platform import FabricClient
fabric = FabricClient(api_key="fab_xxx")
wf_id = fabric.upsert_workflow("my-workflow", nodes=[ { "key": "video-extract-clips", "kind": "tool", },])use fabric_sdk::FabricClient;
let client = FabricClient::new("http://localhost:3001", api_key)?;
let wf_id = client.upsert_workflow("my-workflow", serde_json::json!({ "nodes": [{ "key": "video-extract-clips", "kind": "tool" }]})).await?;curl -X POST http://localhost:3001/v1/workflow-definitions \ -H "Authorization: Bearer $FABRIC_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "my-workflow", "nodes": [{ "key": "video-extract-clips", "kind": "tool" }] }'