Appearance
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
| Command | Purpose |
|---|---|
project init PROJECT [--from SOURCE [--clip CLIP]] | Create a project. Optionally reuse another project’s output definitions and a source clip. |
project info PROJECT | Show the media folder, source count, and selected clip and output. |
project show PROJECT | Return 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 MEDIA | Inspect a video, image, audio file, or font. |
clip list PROJECT | Show 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 NAME | Change the library label. |
clip select PROJECT CLIP | Set 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_PATH | Permanently delete the file at the exact confirmed path and clear project references. |
clip trim PROJECT CLIP OUTPUT --start SECONDS --end SECONDS | Set the clip’s timing for a video or GIF output. |
clip trim PROJECT CLIP OUTPUT --still SECONDS | Pin a clip’s PNG frame. |
clip trim PROJECT CLIP OUTPUT --reset | Reset the clip’s output timing. |
Beats and edits
| Command | Purpose |
|---|---|
beat list PROJECT | Show available beats and their stable IDs. |
beat create PROJECT NAME | Add and select a beat. |
beat show PROJECT BEAT | Return the editable timeline and revision. |
beat validate PROJECT BEAT TIMELINE.json | Check 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 BEAT | Change the project’s active beat. |
beat rename PROJECT BEAT NAME | Rename a beat. |
beat remove PROJECT BEAT | Remove 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 SECONDS | Split the visual placement at a timeline position. |
beat detach-audio PROJECT BEAT TRACK PLACEMENT | Mute the visual placement and create a synchronized audio placement. |
beat remove-transition PROJECT BEAT TRACK PLACEMENT | Cut 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
| Command | Purpose |
|---|---|
windows | List visible capture targets with their decimal hwnd, pid, and title. |
record [PROJECT] --seconds N | Record a window. Add --beat ID to use a specific beat. |
replay [PROJECT] --seconds N | Run 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
| Command | Purpose |
|---|---|
presets | List 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 PROJECT | Add 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 OUTPUT | Choose the default output. |
output duplicate PROJECT OUTPUT | Copy a target. |
output remove PROJECT OUTPUT | Delete 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 N | Set a beat output’s export range. |
output trim PROJECT OUTPUT --beat ID --still N | Pin a beat’s PNG frame. |
output trim PROJECT OUTPUT --beat ID --reset | Reset 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.