video.hook_overlay
Operation: video.hook_overlay
Category: video
Tags: ffmpeg, video, text, overlay
Overlay hook text on the first seconds of each clip
Runtime
Section titled “Runtime”Type: Native (built-in)
Timeout: 300s
Retries: 3 (ExponentialWithJitter)
Inputs
Section titled “Inputs”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
clips | JSON | Yes | — | Array of clip objects with ‘path’ and ‘hook_text’ |
viral_moments | JSON | No | — | Original viral moments for hook_text fallback |
Outputs
Section titled “Outputs”| Name | Type | Description |
|---|---|---|
clips | JSON | Clip objects with updated paths |
clip_count | Number | Number of clips processed |
Default Configuration
Section titled “Default Configuration”{ "border_width": 3, "duration_secs": 2.0, "font_color": "white", "font_size": 64, "position": "center"}import { WorkflowBuilder } from "@fabric-platform/sdk";
const workflow = new WorkflowBuilder("my-workflow") .node("video-hook-overlay", "tool", (n) => n.config({ operation: "video.hook_overlay", // ... 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-hook-overlay", "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-hook-overlay", "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-hook-overlay", "kind": "tool" }] }'