Short answer
How should teams plan 2K stereoscopic surgical capture?
A surgical stereo capture program needs a defined research brief, institutional approval, workflow owners, exact recording specifications, and a tested release process. Specify resolution per view, synchronization, calibration, storage, and quality criteria. Validate the setup through an approved pilot before expanding collection, with clinical care taking priority throughout.
Working on a project? Use the free data brief, manifest, and acceptance templates.
Before choosing cameras
Begin with the observation the research team needs. An external view of an operation and an internal scope view provide different information. Define the procedure types, field of view, expected motion, recording duration, and whether additional data streams are needed.
Identify the institutional teams responsible for clinical workflow, privacy, information security, engineering, and contracting. Camera placement, power, cabling, cleaning, and local device policies require site-specific review. Do not treat equipment installation as a purely technical decision independent of the operating room.
The project plan should name the person who can stop recording and the process for handling an interruption. Research collection must fit the approved clinical workflow. A successful program should not depend on a surgeon troubleshooting a recorder during patient care.
Recording specifications
| Requirement | What the plan should state |
|---|---|
| Image dimensions | Exact pixel width and height per view; packed versus separate streams. |
| Timing | Frame rate, timestamp source, synchronization method, and missing-frame handling. |
| Geometry | Calibration procedure, parameter files, units, and recalibration triggers. |
| Encoding | Codec, compression settings, file segmentation, and export transformations. |
| Operations | Startup checks, storage capacity, failure detection, and responsible staff. |
| Release | Privacy review, versioned manifests, transfer method, and acceptance criteria. |
Calibration and image processing choices should be reproducible. OpenCV: camera calibration and 3D reconstruction is a technical reference for stereo calibration and rectification. The capture team should document which operations actually apply to its setup rather than assuming a generic calibration file is sufficient.
Include a change log for configuration updates. If resolution, optics, mounting, or processing changes mid-program, the dataset should preserve that distinction. Otherwise a downstream researcher may interpret a capture change as a change in the procedure.
Estimate storage from the bitrate
For an illustrative recording at 20 Mbps per eye, two views total 40 Mbps. That is 18 GB per hour in decimal units. One hundred recorded hours total 1.8 TB for one copy, before audio, metadata, and storage overhead. This is an arithmetic example, not a recommended bitrate or a claim about a particular headset.
Use the storage calculator to change the assumptions, then measure representative pilot files. Record the actual per-view dimensions and timing in a delivery manifest.
Inspect frame timing before accepting a file
The free Operavue timestamp inspector checks the delivered video’s presentation timeline. It reads a local FFprobe JSON export and reports missing values, repeated or backward timestamps, and adjacent intervals above a threshold you choose. It preserves the supplied order. It does not upload recordings or inspect their images.
Version 1.0 · Python 3.9 or later · No Python dependencies · MIT license included in the script. For real files, install FFprobe separately from the FFmpeg project. The example below can run without it.
For a local file, this POSIX-shell command selects the first ordinary video stream, excluding attached artwork. Confirm that it is the intended view. The FFprobe manual documents the options:
ffprobe -v error -protocol_whitelist file -select_streams V:0 \
-show_frames \
-show_entries frame=media_type,stream_index,best_effort_timestamp_time \
-show_optional_fields always -of json -i "./recording.mp4" \
> "./frame-times.json" 2> "./frame-times-errors.log"The exported best_effort_timestamp_time values are decimal seconds; the inspector reports intervals and accepts its threshold in milliseconds. Continue only after FFprobe finishes successfully and you have reviewed its error log. Keep that log, the selected stream, and the FFprobe version with the report. Then run:
python3 audit-video-timestamps.py frame-times.json --max-gap-ms 50The 50 ms threshold is an example, not a recommended surgical capture tolerance. Choose it from the recording specification and research task. The tool measures adjacent intervals; it does not assume a fixed frame rate.
Worked example: eight records, four findings
Download the synthetic JSON example and expected report beside the script. These are invented timestamps, not a clinical recording or a benchmark.
python3 audit-video-timestamps.py video-timestamps-example.json --max-gap-ms 50| Frame index | Timestamp (ms) | Interpretation |
|---|---|---|
| 0, 1, 2 | 0, 33, 66 | Two positive intervals of 33 ms. |
| 3 | 166 | 100 ms after frame 2, above the example threshold. |
| 4 | 166 | The timestamp repeats; this does not establish repeated image content. |
| 5 | 150 | The timeline moves backward by 16 ms. |
| 6 | Missing | No usable timestamp. Adjacent comparisons are skipped. |
| 7 | 250 | No comparison across the missing value at frame 6. |
The result has seven valid timestamps and one missing value. Of seven adjacent pairs, five are compared and two are skipped. The three positive intervals have minimum, median, and maximum values of 33, 33, and 100 ms. The gap candidate, repeated timestamp, backward interval, and missing value produce four findings.
This example exits with code 1 because findings are intentional. Exit 0 means no timestamp findings under the selected threshold; it does not certify footage quality. Exit 2 means the input or invocation could not be processed. The report keeps full counts and previews at most 20 issues. If no adjacent pair can be compared, it reports insufficient data rather than returning exit 0.
Reproduce the check with generated video
The JSON example tests the inspector’s arithmetic. To exercise the media export too, download the optional media verification recipe beside the inspector. It generates small test-pattern videos locally, exports their timestamps with FFprobe, runs the inspector, and checks the results against known timelines. It requires FFmpeg with libx264, FFprobe, and Python 3.9 or later; it does not install software or download recordings.
python3 verify-video-timing-media.py --output timing-verificationChoose an output directory that does not exist. The recipe preserves generated files, tool versions, export error logs, inspector reports, and its verification summary. It stops rather than accepting an export with an error exit or logged decoding errors.
| Controlled case | Expected observation |
|---|---|
| Regular 30 fps test pattern | 60 frames and 59 adjacent intervals, with no interval above the illustrative 50 ms threshold. |
| The same images with a 100 ms shift from zero-based frame index 30 onward | One adjacent interval from index 29 to 30 of about 133.333 ms: the usual 33.333 ms plus the deliberate 100 ms shift. |
| Audio first, followed by two different video streams | Only the first ordinary video stream is inspected, with stream index 1 and 60 frames. |
| Text saved with an MP4 extension | FFprobe fails to open it as media; the inspector is not run on the failed export. |
Recorded check: all four cases passed with FFmpeg and FFprobe 9.0.2 on macOS arm64 on October 18, 2026 (America/New_York). The observed shifted interval was 133.333 ms, and all 60 ordered decoded image hashes matched the regular file. The machine-readable results include the tool versions, script hashes, counts, timestamps, and scope.
The recipe compares the regular and shifted files’ ordered decoded image hashes separately from their timestamps. These controlled files are not surgical data. This check does not test camera clocks, stereo exposure alignment, attached cover-art exclusion, damaged-video recovery, or every codec and FFprobe build.
Does a clean timeline prove synchronized stereo?
No. FFmpeg describes the underlying best-effort timestamp as estimated using decoder heuristics. The exported value is not evidence of a camera exposure clock. Two files can each have increasing presentation timestamps while their exposures remain offset. FFmpeg: frame timestamp definitions.
A large interval is a reason to investigate, not proof that a frame was dropped. Variable-rate capture, edits, and timestamp transformations need different interpretations. Compare the original recording, export history, capture logs, and agreed specification before accepting or rejecting a segment.
Attach this report to the acceptance worksheet as one piece of evidence. Stereo alignment still needs a documented clock mapping and an independent measurement method. Keep uncertain intervals visible; do not sort timestamps or interpolate them merely to make a report look clean.
Test the full recording workflow
An approved pilot should cover setup, recording, end-of-case handling, secure storage, review, and delivery. Test the transitions as carefully as the recording itself. Failures often become visible when a session restarts, a disk fills, or one file segment ends before another.
- Confirm that both views record and can be paired after export.
- Verify expected image dimensions and timing from the actual files.
- Check representative motion, lighting, occlusion, and long recordings.
- Reconcile recorded sessions against a privacy-appropriate internal manifest.
- Exercise the process for a failed recording and a withheld release.
Keep an issue log: what failed, how it was detected, who resolved it, and which requirement changed.
Define usable footage for the task
Define acceptance around the research task. The entire case may be needed for sequence understanding, while another project may require selected phases. State how missing views, timing drift, image artifacts, and interrupted recordings are handled. Avoid a single vague “good quality” criterion.
Track both accepted and excluded material at an appropriate aggregate level. Excluding every difficult case can change the collection’s usefulness and the claims a researcher can make from it. Share those limitations in the release documentation.
Equipment, staffing, and compensation
Specify who supplies equipment, installs and supports it, operates the workflow, reviews recordings, and pays for preparation. Separate the contribution of the institution, the recording team, and any individual expert work. Confirm the authorized contracting and payment arrangements.
Operavue provides an optional recording headset for surgeons who want to capture their procedures, alongside opportunities to license existing archives. The capture plan defines the hardware, exact recording specifications, institutional approvals, and workflow. Proposed minimum guarantees and revenue shares depend on the agreed rights, collection scope, quality, and commercial terms. Start with a non-patient description of the setting and intended procedures; the capture protocol comes through a separate project discussion.
Sources & further reading
- OpenCV: camera calibration and 3D reconstruction →
- FFprobe: stream selection and frame output →
- FFmpeg: frame timestamp definitions →
An Operavue planning guide informed by the sources above. Sources do not endorse Operavue. This is educational material, not clinical, legal, or regulatory advice.
Editorial approach and correctionsContact
License your surgical recordings.
Tell us about your archive or plans to record. We’ll discuss permissions and commercial terms.
Discuss an existing archive