# C301 Lab: Plan and Run a Pilot

> The hands-on lab of the C301 capture-operations course: plan a small end-to-end pilot of an egocentric capture programme, run it with real wearers in real scenes, offload and verify the files, check frame timing, quality, sync and calibration, run the whole back end, measure yield and cost per usable hour, and make a go or no-go decision. Every command is as the tools' documentation gives it, with checkpoints.

Page: https://egocam.ai/university/c301/lab/

A pilot is a small end-to-end run of the whole programme before full-scale capture. Its job is to find the problems while they are still cheap. Encord, an annotation-platform vendor, puts the reason plainly: "Fixing a bad protocol after a week of field capture costs far more than fixing it before day one" ([Encord](https://encord.com/blog/egocentric-data-collection-for-robotics/)). The field guide's pilot runs every stage once, on a small scale ([Running a pilot](https://egocam.ai/capture-ops/planning-a-capture-programme/#running-a-pilot)); this lab turns that into steps with checkpoints.

Work through [Lessons 1 to 4](https://egocam.ai/university/c301/) first, and keep the [checklist](https://egocam.ai/university/c301/checklist/) next to you. Every command below is copied from the tool's own documentation, or follows its documented form with your own file names; the source is linked at each step. Square brackets mark values you fill in. The [prompts page](https://egocam.ai/university/c301/prompts/) has prompts that write the scripts this lab needs.

## Part A: Plan

### Step 1: Write the programme brief

One page, before anything else ([Lesson 1](https://egocam.ai/university/c301/lesson-1-scoping-a-programme/)):

- **The use.** What the data will train or evaluate, and for which robot or product.
- **The target.** Usable hours and tasks for the full collection, and, for a robot, a separate domain-aligned set recorded in the robot's scene and camera layout.
- **The coverage matrix.** Environments against activities, with the number of wearers you plan per cell.
- **The pilot's scope.** A few scenes, a few wearers, a few full-length shifts. Say what the pilot must measure (step 13).

**You should have** a brief that names every number it assumes and where the number came from: a paper, a vendor guide or a guess to be replaced.

### Step 2: Write the task scripts and the instruction sheet

For each task, fill in the script fields from [Lesson 2](https://egocam.ai/university/c301/lesson-2-task-design-and-protocols/#a-task-script-field-by-field): task and end state, workspace and framing check, object pool, strategy (matched to the robot if relevant), reset type, block length, how mistakes are handled, and the visibility rules. Prefer reversible pairs and reset-free tasks where the use allows: 180 of EgoDex's 194 tasks needed no manual reset ([Designing out resets](https://egocam.ai/capture-ops/task-design-and-protocols/#designing-out-resets)).

Then write the wearer's one-page instruction sheet in the style of the published ones: a framing check before each recording, hands in view, one strategy per sub-task, and when to pause ([Writing collector instructions](https://egocam.ai/capture-ops/task-design-and-protocols/#writing-collector-instructions)).

**Checkpoint:** someone who has not seen the plan can read a script and say when an episode starts and ends.

### Step 3: Put consent and privacy in place

Nobody records until this is done. Follow course C302 and the field guide: written terms covering purpose, use, storage and retention; pause and delete controls; a review and withdrawal route the wearer knows about ([Consent for Wearers](https://egocam.ai/privacy/consent-for-wearers/)); the scenes cleared or authorised for bystanders ([Bystanders](https://egocam.ai/privacy/bystanders/)); and, if wearers are employees, the safeguards on [Workplace Capture and Worker Ethics](https://egocam.ai/privacy/workplace-capture-and-worker-ethics/). Check what the law requires where you record ([Privacy Law](https://egocam.ai/privacy/privacy-law-gdpr-and-bipa/)).

**Checkpoint:** you can show the exact consent wording each wearer agreed to. The datasheet will ask for it ([Documenting a Dataset](https://egocam.ai/capture-ops/documenting-a-dataset/#consent-de-identification-labour-and-retention)).

### Step 4: Bench-check the rigs

- **Calibrate** each unit and store the result with its serial number (course [C201](https://egocam.ai/university/c201/)). Units of one model differ, so a model-wide calibration is not enough ([Nominal versus per-unit calibration](https://egocam.ai/calibration/factory-and-online-calibration/#nominal-versus-per-unit-calibration)).
- **Confirm the sync method works** and decide how you will check it at the start and end of each session; Ego-Exo4D showed a QR-code clock to every camera at both ends ([Sync and calibration checks](https://egocam.ai/capture-ops/quality-control/#sync-and-calibration-checks), [QR and Visual Sync](https://egocam.ai/sync/qr-and-visual-sync/)).
- **Lock the settings** the footage will use, and write them down with each unit's serial number. Focus, autofocus and stabilisation all change the intrinsics, so a calibration only holds for the settings it was made with ([Lock these before you calibrate](https://egocam.ai/lens-physics/lens-effects-that-break-calibration/#lock-these-before-you-calibrate)).

### Step 5: Set up the staging machine

Install the inspection tool for your container:

- **MP4 video:** `ffprobe`, part of [FFmpeg](https://ffmpeg.org/ffprobe.html).
- **MCAP:** the `mcap` CLI. Its [guide](https://github.com/foxglove/mcap/blob/main/website/docs/guides/cli.md) offers release binaries or Homebrew:

```bash
brew install mcap
```

- **VRS:** the `vrs` command-line tool, built from the [VRS repository](https://github.com/facebookresearch/vrs) ([Recording Containers](https://egocam.ai/capture-ops/recording-formats-vrs-mcap-gpmf/#vrs-the-vrs-tool)).
- **GoPro MP4 with GPMF:** `gpmfdemo`, built from the [gpmf-parser](https://github.com/gopro/gpmf-parser) repository as the field guide shows ([GPMF: gpmfdemo](https://egocam.ai/capture-ops/recording-formats-vrs-mcap-gpmf/#gpmf-gpmfdemo)).

**You should see** each tool print its help: `mcap --help`, `vrs` with no arguments, or `ffprobe -h`.

## Part B: Run

### Step 6: Onboard the wearers

Run an onboarding session for each wearer, then a short practice recording reviewed with them for camera position, audio and activity coverage. Claru's recipe is "a 30-minute onboarding session" followed by "a 15-minute practice recording" ([Claru guide](https://claru.ai/guides/how-to-collect-egocentric-video-data); [Lesson 3](https://egocam.ai/university/c301/lesson-3-wearers-operators-and-the-session/#onboarding-and-the-practice-recording)). Those durations are a vendor's; time your own.

**Checkpoint:** in the practice recording, the hands stay in frame through the task.

### Step 7: Capture full-length shifts in real scenes

Record in a few of the real scenes the full collection will use, with full-length shifts, so you measure real yield, battery swaps and late-session fatigue rather than guessing them ([Running a pilot](https://egocam.ai/capture-ops/planning-a-capture-programme/#running-a-pilot)). For each session, the operator logs: wearer ID, rig serial, scene, tasks, start and end times, battery and card swaps, the sync check result, and anything that went wrong.

**If it fails:** if quality drops late in a shift, note when. Unidata observed that "the last 30 minutes of a long session bring faster shortcuts, sloppy object placement, and missed steps in scripted sequences" ([Unidata](https://unidata.pro/blog/egocentric-data-collection-for-robot-training/)); your pilot gives your own figure.

### Step 8: Offload and verify every file

Copy each shift off the rig, verify the copy, and only then clear the rig ([Offload at the end of a shift](https://egocam.ai/capture-ops/storage-and-data-volume/#offload-at-the-end-of-a-shift)). Time the offload: it sets how many staging machines a full fleet needs.

**VRS.** From the [VRS CLI documentation](https://facebookresearch.github.io/vrs/docs/VrsCliTool):

```bash
vrs check file.vrs
vrs compare file1.vrs file2.vrs
```

`check` decodes every record and reports how many succeeded. `compare` tells you "whether the files are identical, and if they are not, which part(s) aren't"; run it on the rig copy and the staging copy. For a recording cut off by a crash or full disk, `vrs fix-index file1.vrs` rebuilds the index in place; `vrs copy` is the slower alternative that leaves the original untouched.

**MCAP.** From the [MCAP CLI guide](https://github.com/foxglove/mcap/blob/main/website/docs/guides/cli.md), `mcap info` reports statistics per channel, including message counts and rates, and `mcap doctor` checks the file structure:

```bash
mcap info [recording.mcap]
mcap doctor [recording.mcap]
```

A damaged file can be copied into a valid one; the guide's exit codes are `0` if every record was recovered, `3` if recovery was lossy and `1` if nothing could be recovered:

```bash
mcap recover damaged.mcap -o recovered.mcap
```

For a ROS 2 bag, `ros2 bag info <bag_file>` prints the duration, message count and per-topic counts ([rosbag2 README](https://github.com/ros2/rosbag2)).

**MP4 and anything else.** Compare a file-level hash between the rig and staging copies, as the field guide suggests. With GNU coreutils, write the hashes on the rig copy and check them on the staging copy:

```bash
sha256sum [*.mp4] > shift.sha256
sha256sum -c shift.sha256
```

**You should see** every file decode or match, and per-camera message counts that agree with the recording length.

### Step 9: Check frame timing

A file can report 30 fps on average and still freeze or skip frames. Read every frame's timestamp ([Dropped frames and frame timing](https://egocam.ai/capture-ops/quality-control/#dropped-frames-and-frame-timing)). The field guide's gist runs:

```bash
ffprobe -show_entries "frame=pkt_pts_time,pkt_dts_time,coded_picture_number : stream" \
  -select_streams v -of json input.mp4
```

The field guide warns that recent FFmpeg releases may not output `pkt_pts_time`. In our experience, FFmpeg 6.1.1 (the Ubuntu 24.04 package) returned `pkt_dts_time` and no `pkt_pts_time` in the frame section, while `pts_time` was available. With the documented [ffprobe options](https://ffmpeg.org/ffprobe.html), one presentation time per line:

```bash
ffprobe -v error -select_streams v -show_entries frame=pts_time -of csv=p=0 input.mp4
```

From the timestamps, compute the gap between consecutive frames in milliseconds and compare it with `1000 / fps`. Log the mean gap, the 99th-percentile gap, the maximum gap and the number of slow frames per file. A mean on target with a large maximum is a freeze; a high 99th percentile is recurring stutter.

For a GoPro, check the telemetry is there with the [gpmf-parser](https://github.com/gopro/gpmf-parser) README's demo: `./gpmfdemo [movie.mp4]`.

### Step 10: Run image-quality metrics and set thresholds

Compute brightness, variance of the Laplacian and histogram entropy per frame over the pilot footage, from every site, light and device. Read the percentiles and choose a tier, then inspect 20–50 selected frames and adjust ([Setting thresholds on your own footage](https://egocam.ai/capture-ops/quality-control/#setting-thresholds-on-your-own-footage)). Do not copy another dataset's numbers. Keep clips where the head is still but the hands move ([Lesson 4](https://egocam.ai/university/c301/lesson-4-quality-storage-and-documentation/#set-thresholds-on-your-own-footage)).

**Write down** the thresholds you chose, the percentiles behind them, and the share of frames each one rejects.

### Step 11: Check sync and calibration per session

Read the start and end sync checks for every session: if the offset is within your budget at both ends, it is within it throughout, since clock rates are close to constant ([Check sync at both ends](https://egocam.ai/capture-ops/quality-control/#check-sync-at-both-ends)). Ego-Exo4D's automated QR sync reached frame accuracy on about 70% of captures, so plan a fallback. For a multi-camera head, check the epipolar residual per session against the unit's calibration ([Check calibration per session](https://egocam.ai/capture-ops/quality-control/#check-calibration-per-session)).

### Step 12: Run the whole back end, and time it

Run the pilot footage through ingest, QC, privacy redaction, SLAM and hand pose, and annotation ([Running a pilot](https://egocam.ai/capture-ops/planning-a-capture-programme/#running-a-pilot)). Run privacy processing before anyone annotates ([Curation order](https://egocam.ai/university/c301/lesson-4-quality-storage-and-documentation/#curation-order)).

> **Diagram:** Detect-and-blur anonymisation as public egocentric datasets describe it: a detector on every frame of every camera stream, enlarged boxes blurred or blacked out, and human review for misses and for what detectors don't cover. Audio and eye-tracking images bypass face detectors and need their own handling. The labour figure is Ego4D's own.

Time each step in person-hours and compute-hours. For scale: in Ego4D, Carnegie Mellon's pipeline took 780 hours of manual labour to de-identify 500 hours of video ([Ego4D](https://arxiv.org/abs/2110.07058)).

### Step 13: Measure the pilot

Set your own pass marks from your own needs, before you look at the results. The published reference points are for comparison only ([What to measure](https://egocam.ai/capture-ops/planning-a-capture-programme/#what-to-measure-and-published-reference-points)):

| Pilot measure | Your result | Published reference point |
|---|---|---|
| Usable fraction of recorded time | | Claru: 2–2.5 usable hours per 3-hour session; Unidata: 30–40% fails annotation QC in uncontrolled high-volume capture |
| Usable hours per wearer-day | | Unidata: 3–4 hours for headset capture |
| Frame quality | | Claru: target under 15% low-quality frames |
| Stream timing | | Unidata's pipeline: depth within 1 frame of RGB, wrist IMU and skeleton within 20 ms |
| Tracking survival | | Lin et al. lost about 0.5–2% of demonstrations to SLAM filtering |
| Privacy redaction | | Claru: face-detector recall above 98% on a held-out set |
| Offload time per rig-day | | RoboCap's USB 3 range: 60–200 MB/s |
| Back-end hours per usable hour | | (your own figure; this is the cost the pilot exists to find) |

Then compute the cost per usable hour: everything the pilot spent, divided by the usable hours it produced.

### Step 14: Train something

A small co-training or validation-loss test tells you whether the data helps before you pay for hundreds of hours ([Running a pilot](https://egocam.ai/capture-ops/planning-a-capture-programme/#running-a-pilot)). For a robot, include the domain-aligned set; EgoVerse and EgoScale measured gains from small aligned sets.

### Step 15: Decide, and update the plan

Go through the "before scaling up" section of the [checklist](https://egocam.ai/university/c301/checklist/). Then:

- **Resize** the collection from your measured usable hours and QC loss ([Lesson 1](https://egocam.ai/university/c301/lesson-1-scoping-a-programme/#sizing-a-collection)) and your storage and uplink from your measured file sizes ([Lesson 4](https://egocam.ai/university/c301/lesson-4-quality-storage-and-documentation/#offload-integrity-and-the-uplink)).
- **Fix** every script, instruction or rig problem the pilot found, and re-test the ones that matter.
- **Draft the datasheet** from what you now know: collection process, QC rules and what they removed, consent wording, and the known unknowns ([Documenting a Dataset](https://egocam.ai/capture-ops/documenting-a-dataset/)).
- **Decide go or no-go**, in writing, against the pass marks you set in step 13.

## Sources

- Field guide: [Planning a Capture Programme and Running a Pilot](https://egocam.ai/capture-ops/planning-a-capture-programme/), [Task Design](https://egocam.ai/capture-ops/task-design-and-protocols/), [Quality Control](https://egocam.ai/capture-ops/quality-control/), [Storage, Upload and Data Volume](https://egocam.ai/capture-ops/storage-and-data-volume/), [Recording Containers](https://egocam.ai/capture-ops/recording-formats-vrs-mcap-gpmf/), [Documenting a Dataset](https://egocam.ai/capture-ops/documenting-a-dataset/), [QR and Visual Sync](https://egocam.ai/sync/qr-and-visual-sync/), [Consent for Wearers](https://egocam.ai/privacy/consent-for-wearers/), [Bystanders](https://egocam.ai/privacy/bystanders/), [Workplace Capture and Worker Ethics](https://egocam.ai/privacy/workplace-capture-and-worker-ethics/), [Privacy Law](https://egocam.ai/privacy/privacy-law-gdpr-and-bipa/), [Factory, On-Device and Online Calibration](https://egocam.ai/calibration/factory-and-online-calibration/), [Lens Effects That Break a Calibration](https://egocam.ai/lens-physics/lens-effects-that-break-calibration/).
- Meta. [VRS CLI tool](https://facebookresearch.github.io/vrs/docs/VrsCliTool) and the [VRS repository](https://github.com/facebookresearch/vrs).
- Foxglove. [MCAP CLI guide](https://github.com/foxglove/mcap/blob/main/website/docs/guides/cli.md).
- ROS 2. [rosbag2 README](https://github.com/ros2/rosbag2).
- FFmpeg. [ffprobe documentation](https://ffmpeg.org/ffprobe.html); the [ffprobe frame-time gist](https://gist.github.com/dreness/916025a5f049c94f2177).
- GoPro. [gpmf-parser README](https://github.com/gopro/gpmf-parser).
- Grauman, K. et al. (2022). [Ego4D: Around the World in 3,000 Hours of Egocentric Video](https://arxiv.org/abs/2110.07058). *CVPR*.
- Encord. [How to Build Diverse Egocentric Datasets for Robotics](https://encord.com/blog/egocentric-data-collection-for-robotics/). Vendor blog.
- Claru. [How to Collect Egocentric Video Data for AI Training](https://claru.ai/guides/how-to-collect-egocentric-video-data). Vendor guide.
- Unidata. [Egocentric Data Collection for Robot Training: What Actually Works in Production](https://unidata.pro/blog/egocentric-data-collection-for-robot-training/). Vendor guide.
