Skip to content

CLI reference ​

Use CameraObscura.exe --help for the installed command list and --version for the CLI version. All commands below start with CameraObscura.exe. Brackets mark optional arguments. Use - in place of a JSON path to read from stdin.

Projects and media ​

CommandPurpose
project init PROJECT [--from SOURCE [--clip CLIP]]Create a project. Optionally reuse another project’s output definitions and a source clip.
project info PROJECTShow the media folder, source count, and selected clip and output.
project show PROJECTReturn an editable document and its revision.
project validate PROJECT [DOC.json]Validate the saved document or a proposed replacement.
project apply PROJECT DOC.json [--if-revision HASH]Validate and save a whole project document.
project template PROJECT [CARD.json]Read or set the default end card. Use --reset to clear it.
project media PROJECT [--folder DIRECTORY]Read or set the media root. Use --default to restore the default.
probe MEDIAInspect a video, image, audio file, or font.
clip list PROJECTShow clip numbers, media types, names, and paths.
clip add PROJECT MEDIA [--name NAME] [--beat ID] [--copy] [--no-place]Bring in a source. --copy makes a managed copy. --no-place skips automatic placement.
clip rename PROJECT CLIP NAMEChange the library label.
clip select PROJECT CLIPSet the default source for clip exports.
clip remove PROJECT CLIP [--beat ID]Remove project references or remove the source and its placements from one beat. Keep the file.
clip delete PROJECT CLIP --confirm FILE_PATHPermanently delete the file at the exact confirmed path and clear project references.
clip trim PROJECT CLIP OUTPUT --start SECONDS --end SECONDSSet the clip’s timing for a video or GIF output.
clip trim PROJECT CLIP OUTPUT --still SECONDSPin a clip’s PNG frame.
clip trim PROJECT CLIP OUTPUT --resetReset the clip’s output timing.

Beats and edits ​

CommandPurpose
beat list PROJECTShow available beats and their stable IDs.
beat create PROJECT NAMEAdd and select a beat.
beat show PROJECT BEATReturn the editable timeline and revision.
beat validate PROJECT BEAT TIMELINE.jsonCheck timeline JSON and its media without saving.
beat apply PROJECT BEAT TIMELINE.json [--if-revision HASH]Validate and apply a complete timeline.
beat select PROJECT BEATChange the project’s active beat.
beat rename PROJECT BEAT NAMERename a beat.
beat remove PROJECT BEATRemove a beat and keep its source files.
beat end-card PROJECT BEAT [CARD.json]Read or set a beat card. Use --from-template to copy the project’s template or --reset to clear the card.
beat split PROJECT BEAT TRACK PLACEMENT --at SECONDSSplit the visual placement at a timeline position.
beat detach-audio PROJECT BEAT TRACK PLACEMENTMute the visual placement and create a synchronized audio placement.
beat remove-transition PROJECT BEAT TRACK PLACEMENTCut at the midpoint of the overlap preceding this placement. Use the incoming placement’s number.
beat frame PROJECT BEAT OUTPUT DEST.png --at SECONDS [--replace]Render a PNG with the selected output’s framing.

The three placement commands accept --if-revision HASH. TRACK is the one-based video track number. PLACEMENT is the one-based position in that track. A placement and its source clip can have different numbers.

Capture and drafts ​

CommandPurpose
windowsList visible capture targets with their decimal hwnd, pid, and title.
record [PROJECT] --seconds NRecord a window. Add --beat ID to use a specific beat.
replay [PROJECT] --seconds NRun the rolling buffer and save its last 30 seconds or less when the run ends.
record-mic PROJECT --beat ID --seconds N [--lane N] [--at SECONDS] [--stop-file PATH]Record narration and place it on an audio track.
drafts [PROJECT]List drafts and indicate interrupted takes.
recover [PROJECT] [--file PARTIAL.mkv] [--beat ID]Recover an interrupted take. The original is retained.
shortcut [--key F9] [--mods N]Read or change the next desktop session’s recording shortcut. Use --reset to restore F9.

record and replay accept --hwnd HANDLE, --pid PID with a handle, --delay N, --stop-file PATH, --name NAME, --compatibility-capture, and either --no-audio or --desktop-audio. With a beat, --lane N and --at SECONDS place the take on the timeline. The modifier bits for shortcut are Alt 1, Ctrl 2, and Shift 4.

Outputs and rendering ​

CommandPurpose
presetsList available preset keys and settings.
output list PROJECT [--beat ID]List targets and their stable IDs. With a beat, show its output settings.
output add PROJECT [--preset KEY] [OUTPUT OPTIONS]Add a preset or custom target.
output promo-pack PROJECTAdd matching landscape, vertical, Steam GIF, and PNG targets as needed.
output set PROJECT OUTPUT [--preset KEY] [OUTPUT OPTIONS]Change project-wide settings for a target.
output select PROJECT OUTPUTChoose the default output.
output duplicate PROJECT OUTPUTCopy a target.
output remove PROJECT OUTPUTDelete a target definition and keep its export files.
output framing PROJECT OUTPUT --beat ID [--framing MODE] [--zoom N] [--center-x N] [--center-y N]Change a beat’s framing for one output. Pass --reset to restore its project default.
output trim PROJECT OUTPUT --beat ID --start N --end NSet a beat output’s export range.
output trim PROJECT OUTPUT --beat ID --still NPin a beat’s PNG frame.
output trim PROJECT OUTPUT --beat ID --resetReset timing for the beat and output.
output check PROJECT [--beat ID or --clip CLIP] [--output OUTPUT]Inspect paths, size estimates, platform concerns, and export status.
export PROJECT [--beat ID or --clip CLIP] [--output OUTPUT] [--replace]Write one output or all eligible outputs. Existing files require --replace.
render VIDEO DEST [--preset KEY] [OUTPUT OPTIONS]Render a one-off clip without a project. Add a range with --start and --end, a PNG time with --still, or --replace to overwrite.

Output options include --name, --format (mp4, gif, png), --width, --height, --fps, --framing (fit, crop), --zoom, --center-x, --center-y, and --platform. Use --cap SECONDS for a beat output limit and --cap 0 to clear it. output add, set, select, duplicate, and remove also accept --beat ID. Changes to target definitions still apply project-wide.

CameraObscura documentation