Menu

HandCheck: An Offline Rust CLI to Pre-Check Robot-Training Videos via FFmpeg
📰

HandCheck: An Offline Rust CLI to Pre-Check Robot-Training Videos via FFmpeg

DEV Community: rust·Yash Patadiya·1 day ago
#uhLIRiJi
#devtorust#devto#dev#handcheck#offline
Long article (293 words) — no AI summary yet.
Reading 0:00
15s threshold

I built HandCheck ( v0.1 ), an MIT-licensed, offline CLI written in Rust that checks first-person (egocentric) videos before they go into robot-training datasets.

Code: https://github.com/yashpatadiya1724-cmyk/handcheck

What it does (and how it runs)

HandCheck invokes the system ffmpeg and ffprobe binaries as external subprocesses, streams grayscale frames at 5 fps (320 px width) into a rolling in-memory buffer (~6.4 MB peak RSS on a 10-minute test clip), and writes:

report.json per video ( duration_secs , usable_seconds , per-check time ranges, PASS / REVIEW / FAIL verdict, and plain-English reason)

report.html for a whole folder (sortable table + timeline)

No telemetry, no network calls, and no frames saved to disk.

Default checks (v0.1)

Darkness & Overexposure: Mean brightness and clipped pixel ratios, after cropping uniform black pillarboxes/letterboxes.

Idle / Frozen Time: Contiguous low-motion stretches ( mean_abs_diff < 2.0 ).

Duplicate Clips: 64-bit perceptual dHash + sharpness-ratio…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.