# Run batch video analysis with your agent

Canonical: https://interlatent.com/docs/ivy/video-pipelines

A tested PushT walkthrough: import recordings, label actions, verify a pipeline, run a batch, query saved labels, and export a Dataset.

## Start with a recording collection and an output you can check

Section: https://interlatent.com/docs/ivy/video-pipelines#start-with-a-recording-collection-and-an-output-you-can-check

Interlatent connects your agent to recorded video, hosted vision tools, saved annotations, and Dataset exports through Ivy, its MCP connection. You can work from Claude Code, Codex, Cursor, or another compatible MCP client. Dataroom is the workspace where you review the recordings and results.

This walkthrough defines one useful job: label actions in a small collection of robot episodes, review the labels, save a reusable analysis recipe, and export the reviewed selection. It makes the intermediate evidence explicit so you can decide whether to process more data.

## Connect and verify your workspace

Section: https://interlatent.com/docs/ivy/video-pipelines#connect-and-verify-your-workspace

Paste the [official setup prompt](https://interlatent.com/llms.txt) into your agent:

> Connect to Interlatent’s Ivy - https://interlatent.com/llms.txt

Complete browser sign-in and return to the same conversation. Ask the agent to check the connected account, workspace, capabilities, and credits before analysis. The [connection guide](https://interlatent.com/docs/ivy/connect) explains the client paths. Native tools may need a refresh; supported macOS/Linux coding terminals also have a terminal client described in the setup guide.

## Import a bounded sample

Section: https://interlatent.com/docs/ivy/video-pipelines#import-a-bounded-sample

Use a collection you have rights to process. The [quickstart](https://interlatent.com/docs/ivy) shows a three-episode Hugging Face import. You can instead use supported [S3](https://interlatent.com/docs/ivy/amazon-s3), [Google Cloud Storage](https://interlatent.com/docs/ivy/google-cloud-storage), or [Google Drive](https://interlatent.com/docs/ivy/google-drive) sources.

> Create a project called “Action pipeline trial”. Find a public LeRobot v3 PushT dataset on Hugging Face, name the repository you selected, and import only three episodes. Keep the limit. If it cannot be honored, stop and explain. Wait for completion and report cameras, durations, any recorded channels, and the project link.

Check that the selected recordings show the task you intend to label. A dataset name does not prove every episode is suitable. Customer bucket storage and processing location are separate: Ivy uses hosted compute, and some analysis uses external model APIs. Read the [data handling guide](https://interlatent.com/docs/ivy/rights-and-data) before using private recordings.

## Define an action boundary and inspect one result

Section: https://interlatent.com/docs/ivy/video-pipelines#define-an-action-boundary-and-inspect-one-result

For this example, define “pushing” as the interval when contact visibly moves the object. Have the agent inspect the footage and choose labels for what is actually visible. A different task needs a different convention.

> Use one episode from “Action pipeline trial”. Label timestamped subtasks with Ivy. Define a pushing interval as visible object movement caused by contact; an approach alone does not count. Run this one-episode analysis using my credits. Return the labeled timeline and the source clip and camera so I can review the boundaries.

The maintained `segment_subtasks` tool saves an action timeline. Follow the [subtask segmentation guide](https://interlatent.com/docs/ivy/subtask-segmentation) to inspect the result and refine the convention. Check brief actions and failures as well as obvious examples. Review start and end frames against the source video.

## Save the recipe and verify a sample

Section: https://interlatent.com/docs/ivy/video-pipelines#save-the-recipe-and-verify-a-sample

When you need a reusable pipeline, ask the agent to read `get_annotation_sdk` and author an `annotate(clip, ctx)` recipe for the reviewed task. Preserve the convention, required camera, sampling, and expected output track in its manifest. Do not assume a saved timeline automatically creates a reusable pipeline.

> Read the annotation SDK and prepare a pipeline for the action convention we reviewed. Declare its input requirements and the output timeline. Show me its estimated usage before running it. Once I approve, save it and inspect the one real sample that saving starts. Keep the returned version, binding, and job IDs. Report the final sample verdict and any errors.

Saving a matching pipeline starts one metered sample. Poll that sample until its verdict is final. A successful sample proves the recipe executed and met its declared contract on that recording; inspect its labels to judge quality. If the sample fails, fix the cause before batching. See the [tool reference](https://interlatent.com/docs/ivy/tool-reference#batch) and [Python recipe guide](https://interlatent.com/docs/ivy/custom-code).

The public PushT example used this recipe after reading the current SDK:

```python
def annotate(clip, ctx):
    if "observation.image" not in ctx.cameras:
        raise ValueError("This example requires the observation.image camera")
    return ctx.segment_subtasks(
        camera="observation.image",
        convention=(
            "One subtask is one continuous goal-directed action. Separate "
            "approaching or repositioning from pushing the T-shaped block. "
            "Start pushing when contact visibly moves the block; keep "
            "repeated attempts separate. Use unclear when evidence is insufficient."
        ),
        track_name="PushT action steps",
    )
```

The example manifest checks `source="hf"` as its input fact and `tracks_written_count=1` as its output fact. Camera availability is checked in the recipe. Those execution checks are separate from judging the labels against the video.

## Batch the selected recordings and query saved evidence

Section: https://interlatent.com/docs/ivy/video-pipelines#batch-the-selected-recordings-and-query-saved-evidence

> With the verified pipeline, estimate the remaining recordings in this three-episode trial. Show me the exact selection and usage estimate. After I approve, run the batch, wait for completion, and report successful and failed episode IDs separately. Retry only failed items after explaining their errors.

Use one batch job for recordings sharing a recipe. After labels exist, the agent can query saved spans through `run_query` to find pushing intervals and send the source time ranges for review. That query reads existing evidence without another model run. It cannot discover actions the labeling missed. The [find and tag guide](https://interlatent.com/docs/ivy/find-and-tag) explains saved selections.

## Export the reviewed selection

Section: https://interlatent.com/docs/ivy/video-pipelines#export-the-reviewed-selection

> Estimate a Dataset build from the episodes we reviewed. Show the selection, skips, annotation columns, cameras, recorded channels, compatible output format, destination, and estimated usage. Wait for approval to build. When it is ready, return the Dataset ID and download link.

The [review and export guide](https://interlatent.com/docs/ivy/review-and-export) describes Parquet + MP4, LeRobot v3, and MCAP options. Confirm the format supports your selection. Keep the Dataset ID, pipeline version, convention, and known errors with the export. Later annotation edits require a new snapshot.

## Deploy the verified recipe for new inputs

Section: https://interlatent.com/docs/ivy/video-pipelines#deploy-the-verified-recipe-for-new-inputs

If the same recipe should process new recordings through an API, retain its verified pipeline version. `deploy_pipeline` creates a deployment without running inputs. For each new input, `create_pipeline_run` prepares the request, `start_pipeline_run` starts metered processing, and `get_pipeline_run` reports progress. `download_pipeline_run` returns completed exports. This deploys a pipeline recipe; it does not automatically deploy a newly trained checkpoint as a standalone model endpoint.

> Check that this pipeline version still has a verified sample. Show the proposed deployment, input contract, output destination, and export format before deploying it. Do not start a run on new inputs yet. Explain how an API client creates a run, starts processing, checks progress, and downloads the completed output.

## Decide whether to expand

Section: https://interlatent.com/docs/ivy/video-pipelines#decide-whether-to-expand

Record missed actions, false labels, boundary errors, failed episodes, correction time, and billed usage. Report the actual cameras and frame coverage analyzed. Include your agent provider’s charges separately. Only expand after the small trial produces outputs you can use.

For a comparative evaluation, run the same recordings and output requirements in another platform and apply the same review procedure. This walkthrough establishes no accuracy, speed, or cost advantage by itself.

## What we verified on the public example

Section: https://interlatent.com/docs/ivy/video-pipelines#what-we-verified-on-the-public-example

On November 30, 2026, we imported episodes 0–2 from [lerobot/pusht](https://huggingface.co/datasets/lerobot/pusht), source revision `7628202a2180972f291ba1bc6723834921e72c19`: 42 seconds total, one 96 × 96 camera, 10 fps. The pipeline sample passed its declared output check, and one batch completed the two remaining episodes with no execution failures. The collection contains fourteen generated action intervals; a saved-label query found six intervals whose labels contain “push”.

We inspected source frames around selected boundaries in episode 0. Its final 0.1 seconds were unlabeled, and the other episodes also have short unlabeled tails. This small example demonstrates the workflow and its review points. It does not establish label accuracy on production footage. The Parquet + MP4 Dataset build completed with all three episodes, 420 frames, one annotation column, and no skips. API deployment was not exercised in this example.

## Source frames for boundary review

Section: https://interlatent.com/docs/ivy/video-pipelines#source-frames-for-boundary-review

![PushT episode 0 source frame at 4.8 seconds](/examples/pusht/episode-0-4-8.jpg)

![PushT episode 0 source frame at 5.2 seconds](/examples/pusht/episode-0-5-2.jpg)

![PushT episode 0 source frame at 7.4 seconds](/examples/pusht/episode-0-7-4.jpg)

![PushT episode 0 source frame at 7.6 seconds](/examples/pusht/episode-0-7-6.jpg)

![PushT episode 0 source frame at 9.9 seconds](/examples/pusht/episode-0-9-9.jpg)

![PushT episode 0 source frame at 10.3 seconds](/examples/pusht/episode-0-10-3.jpg)

![PushT episode 0 source frame at 14.4 seconds](/examples/pusht/episode-0-14-4.jpg)

![PushT episode 0 source frame at 14.8 seconds](/examples/pusht/episode-0-14-8.jpg)

Source: [lerobot/pusht](https://huggingface.co/datasets/lerobot/pusht), revision `7628202a2180972f291ba1bc6723834921e72c19`, episode 0. PushT is associated with Cheng Chi et al., *Diffusion Policy* (2024); see the source dataset card for citation and license. These selected frames illustrate boundary review and do not establish annotation accuracy.
