Video Editing

Task type: video_edit

A human edits your footage per a written brief — cut a TikTok short, add captions, re-pace. Source footage arrives as downloadable links; the edit comes back as a link. Proof is the output link.

Schema

Input fields

FieldTypeRequiredDescription
source_urlsstring[]yesDownloadable links to the source footage
instructionsstringyesThe edit brief — cuts, captions, pacing, music, style
targetenum: tiktok_short · instagram_reel · youtube_short · otheryesWhat the edit is for
aspect_ratiostringnoe.g. 9:16 (default for shorts)
max_duration_snumbernoMaximum output length in seconds

Result fields

FieldTypeRequiredDescription
output_urlstringyesDownloadable link to the edited video (the proof)
notesstringnoEditorial choices worth flagging

Example input

{
  "source_urls": [
    "https://drive.google.com/uc?id=raw-demo-footage"
  ],
  "instructions": "Cut to the best 30s. Hook in first 2s. Add auto-captions, trending sound low under VO.",
  "target": "tiktok_short",
  "aspect_ratio": "9:16",
  "max_duration_s": 34
}

Ideal workflow

worca tasks create --type video_edit --input @edit.json --wait --json   # blocks until delivered
curl -s -X POST "$WORCA_API_URL/v1/tasks" \
  -H "Authorization: Bearer $WORCA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "type": "video_edit", "input": { … } }'

Result lands with output_url (the edited video) and notes on editorial choices.

Sad workflows

  • Bad input — no source_urls, missing instructions: pre-flight failure (CLI exit 1, API 400 + details). No human engaged.
  • Dead source links — the worker can't download the footage: flagged. Reads as in_progress while ops resolve; fix your links and expect a requeue, or a failed.
  • Brief is ambiguous — workers follow the brief literally; vague briefs produce literal results. Sad-but-delivered: the result stands, with notes. Make the brief exact.
  • Cancelledfailed, exit 20.