Skip to content
Interlatent/Documentation
Ivy/User manual/Subtask segmentation & semantic trimming

Subtask segmentation & semantic trimming

Prompt Ivy to divide a video into meaningful steps, steer the boundaries and labels, and export selected sections as video clips.

Separate a video into meaningful sections

Subtask segmentation divides a recording into timestamped sections based on what happens in the video. Ask your agent to use segment_subtasks, which saves a labeled timeline. For example, a packing video might contain opening a box, placing an item inside, and sealing the box. You can steer what counts as one section through your prompt.

Prompt
Use Ivy’s subtask segmentation tool to divide this packing video into meaningful steps. One subtask is one continuous action toward an immediate goal; start a new section when that goal changes. Use short action labels, retain repeated attempts, and save the timestamped timeline. Send me the section list and a dashboard link.

Steer segmentation with a prompt

Describe what one subtask means, which visible change starts a new one, and the labels you want. Your agent passes that guidance in the tool’s convention field. Choose broader sections for a process overview or smaller sections for individual actions. Define the rule for a section rather than prescribing a fixed number of sections for the whole video.

What to steerExample guidance
Section sizeKeep opening, filling, and sealing as separate sections; keep small adjustments within the current step.
Start and end boundariesStart “placing item” when the item begins moving into the box; end when it is released.
Label vocabularyUse opening box, placing item, sealing box, and unclear when those labels apply.
Repeated or incomplete actionsKeep each new attempt separate and retain incomplete attempts.
Uncertain footageMark unclear intervals rather than inventing an action that is not visible.
Prompt
Segment this video using this convention: one subtask is one completed or attempted packing action. Separate opening the box, placing each item, and sealing the box. Keep minor hand adjustments within the current action. Start a new section for a new attempt, even when the same action repeats. Use “unclear” where the action cannot be determined. Save the timeline as “Packing steps”.

Review the sections and refine the convention

Open the saved timeline and inspect the section boundaries against the original video. Give feedback about a specific transition or a step that should stay together. To compare two conventions, keep the same recording and camera and use distinct track names. Reusing a track name replaces that named segmentation track.

Prompt
The “placing item” section includes closing the lid. Refine the convention so closing the lid starts a new section. Re-segment the same recording and camera into a new track named “Packing steps refined”. Show both timelines and the changed boundaries before we use the new sections for trimming.

Trim by meaning instead of entering timestamps

Semantic trimming starts with a description of the sections you want, such as “each time an item is placed in the box”. Use reviewed segmentation labels to find the matching intervals, then export them as separate video clips. You can request context before and after each interval. The agent uses the saved start and end times for the cuts.

  1. Segment the video with a convention that identifies the actions you care about.
  2. Review the labels and boundaries, then choose the sections to keep.
  3. Choose padding, the source camera, and whether each section should be a separate clip.
  4. Export the selected intervals and inspect the beginning and end of each clip.
Prompt
From the reviewed “Packing steps refined” timeline, find every “placing item” section. List the matching source intervals, adding half a second before and after each and clamping them to the recording duration. Export each match as a separate MP4 in the same camera. Keep the original recording unchanged, and return a labeled list of clips with source timestamps and download links.

Tool flow for your agent

Call segment_subtasks with the recording, camera, convention, and track name. Poll get_job with kind="annotation" at intervals of at least five seconds, then read get_annotations and inspect the timeline. After selecting the sections, use the saved intervals with a trimming recipe or a local video export. Segmentation uses credits; a custom script is not needed to create the timeline.

Start hereQuickstartImport a Hugging Face dataset and analyze an episode with Ivy.Start hereConnect an agentOfficial setup for Interlatent’s Ivy at interlatent.com. Connect your agent to shared visual data, hosted compute, and saved analysis through Ivy.Start hereTrain vision models with an agentUse Ivy by Interlatent for vision model training and evaluation. Training access is gated; contact team@interlatent.com to request access.User manualImport a datasetImport public or private Hugging Face datasets, video files, or recordings from connected storage.User manualAccess datasets from a coding agentDescribe the dataset you want, ask questions about its recordings, and turn the answers into a selection for vision model work with your MCP-compatible coding agent.User manualAmazon S3Connect a bucket, import a small recording collection, and verify that it is ready for analysis.User manualGoogle DriveShare a folder with Ivy, review the import plan, and bring the recordings into a project.User manualGoogle Cloud StorageGrant bucket access, verify the connection, and import recordings from a gs:// path.User manualFiles & video linksImport a single video, a direct download link, or a local recording directory.User manualFind & tag videosFind recordings by their visual content, save a selection as tags, and reuse it in later analysis.User manualObject trackingDetect objects, track their masks with SAM, and inspect the result before measuring motion or counting passages.User manualModels & analysisChoose the method for your question: actions, object locations, masks, or classifications.User manualSubtask segmentation & semantic trimmingPrompt Ivy to divide a video into meaningful steps, steer the boundaries and labels, and export selected sections as video clips.User manualTrim & process videoTrim video by timestamps or meaningful action sections, create processed views, and keep source and output times clear.User manualRun your first experimentsRun action labeling and object tracking on a small sample, then compare and apply the results.User manualReview & exportInspect annotations, correct errors, and export a Dataset snapshot.Technical referenceCore conceptsProjects, recordings, annotations, pipelines, and Dataset snapshots.Technical referencePython recipes & ffmpegRun repeatable measurements and video transformations with annotate(clip, ctx), then save outputs for review.Technical referenceQueries & tag operationsQuery saved annotations and recorded per-frame data with SQL, then use the matching clip IDs for tagging or export.Technical referenceSource connectionsConnection states, cloud permissions, import tools, and recovery for source workflows.Technical referenceTool referencePublic MCP tools grouped by task. Your connected agent provides the current schemas and availability.Technical referenceTroubleshootingResolve common connection, import, analysis, and access errors.ResourcesRights & data FAQAnswers about private video data, vision model ownership, provider handling, evaluation, and trial pricing with Interlatent.