Skip to content
Interlatent/Documentation
Ivy/User manual/Trim & process video

Trim & process video

Trim video by timestamps or meaningful action sections, create processed views, and keep source and output times clear.

Subtask segmentation and semantic trimming

Describe the sections you want to keep, such as each item-placement step in a packing video. Ask your agent to use segment_subtasks with a convention that defines those steps. Review the labeled sections, then export the selected intervals as separate clips. Your prompt can steer section size, labels, and boundary rules.

Prompt
Use subtask segmentation to separate this video into packing steps. Start a new section when the immediate action changes, and retain repeated attempts. Show me the timestamped sections. After I select the steps to keep, export each one as a separate MP4 with half a second of context on each side.

Extract a time range

Give your agent the episode, camera, and start and end times. Ask for a separate video artifact when you want an excerpt while keeping the source recording. Check the returned duration and inspect the beginning and end of the exported interval.

Prompt
Create a separate video excerpt from 12 to 24 seconds of this episode’s main camera. Preserve the source recording. Return a downloadable MP4 and inspect the first and last frames. State the source interval and the output duration.

Find a segment from annotations

Use existing annotations to locate an action before cutting video. Ask for an interval with context, such as one second before a grasp and one second after it. If several intervals match, review the interval list before generating the excerpts.

Prompt
Find saved “grasp” intervals in this episode. List each interval with one second of context on either side, clamped to the video duration. After I choose an interval, export it as a separate MP4. Keep the source unchanged.

Create a processed view

A Python recipe can resize frames, draw timestamps or measurements, crop a fixed region, and render a new video view. Specify the camera, interval, output dimensions, and playback rate. Tell your agent whether a crop should be fixed or follow a tracked object.

Prompt
Create a separate processed view for 0–10 seconds of this episode: half-resolution frames with the source timestamp in the top-left corner. Keep the source frame rate and preserve the source video. Return the new view and inspect its first, middle, and last frames.

Use ffmpeg for explicit transformations

For an ffmpeg operation, specify the intended output rather than only a command: interval, resolution, frame rate, codec, and whether audio should be retained. Your coding agent can process a downloaded video locally, or use supported processing inside an annotation recipe. A local ffmpeg command does not update the Ivy project.

Prompt
Help me create a browser-playable MP4 excerpt from this video, source seconds 12–24, at 640 pixels wide with aspect ratio preserved. Tell me whether you will run ffmpeg locally on a downloaded file or create an Ivy artifact. Keep the source and report any frame-rate or audio changes.

Editing the working clip

An in-place trim changes the working clip rather than creating a separate excerpt. A whole-clip trim across cameras also changes its time base; time-bound annotations and recorded data need to follow that edit. A single-camera edit has different synchronization implications. Specify the scope before making either change.

Choose an artifact or a Dataset export

Use an artifact for a preview, excerpt, overlay, or report. Build a Dataset when you need an export of recordings with their annotations and derived outputs. Review the build estimate to see the selected recordings and which derived cameras or episode files will be included.

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.