capture_helper.cli_argparse module
Capture Helper — argparse-based command-line interface.
Thin wrapper around the pure functions in capture_helper that
exposes the INPUT layer as subcommands under a single capture-helper
entry point. Written with argparse from the standard library so
the CLI works out of the box on any Python install that has the package
installed — no extra dependency required.
Subcommands
list-sources— enumerate cameras / microphones (JSON output)pick-source— resolve one device by kind / name / index (JSON output)input-args— print the ffmpeg-f DRIVER -i SPECargv fragmentcapture-camera— grab N frames from a camera and write them to diskcapture-mic— record N seconds of microphone PCM to a WAV filescene-auto— emit a scene auto-populated from this host’s devicesscene-validate— validate a scene JSON file (exit 0 if well-formed)scene-show— load a scene and report how each source resolves here
Usage Example
>>> # capture-helper list-sources
>>> # capture-helper list-sources --kind microphone
>>> # capture-helper pick-source --kind camera --name FaceTime
>>> # capture-helper input-args --kind camera --index 0
>>> # capture-helper capture-camera --output-dir frames/ --output-width 640 \
>>> # --output-height 360 --fps 30 --max-frames 30
>>> # capture-helper capture-mic --output mic.wav --seconds 3