Files
raea/docs/manual/reference/cli/track.md
shane d873402ac5 raea goal is the loop, raea make the asset tools (#269)
One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done (goal check, tasks, judge, seen, gates, next); the brief's contract is goal: (one goal or a list, a workflow inline), and its plan is plan:. raea make is making a finished asset: character, clothes, motion, solid, wear, splat, physics, bake, sounds, component, the kit pipeline and shots. Instruments (check, judge, ask, world, scene faults, light check) stay top-level. With it: the montage pack (MK48-MK51), JavaScriptCore fixes raea goal needs (CommonJS named exports, reserved words too, dynamic import of file URLs, process.exit from a promise, stdin for -), raea-cli-goal and raea-cli-refused split out of raea-cli, and skills at raea-skills 105aede.
2026-11-29 18:43:09 -08:00

2.0 KiB

title, summary, order, sources
title summary order sources
raea track Solve a clip's camera on this machine, so 3D can stand in its world with <Matchmove>. 66
runtime/react/src/scene/track.rs
io/assets/src/lib.rs

raea track solves the camera that filmed a clip: where it was and where it looked on each frame, and where the ground is. <Matchmove src=...> in a composition uses the solve to put 3D into the shot. The solve is kept in the project's asset store with its settings, so the render that asks for the same clip and settings finds it already made, and the other way round. The solver installs itself the first time it's used.

raea track media/street.mp4 --from 2 --seconds 6
raea track media/table.mp4 --subject 0.3,0.4,0.4,0.3 --height 1.2 -o table.solve.json

Usage

raea track CLIP.mp4 [--subject X,Y,W,H] [--from S] [--seconds N] [--height M] [--fov DEG] [--smooth F] [--dir EDIT_DIR] [-o OUT.json]   (the clip's camera solved, for <Matchmove>)

Headless: it needs nothing running and opens no window. Takes up to 1 argument besides its flags.

Flags

Flag Takes What it does
--dir EDIT_DIR The edit's folder, whose asset store keeps the solve (the current folder by default).
--fov DEG The camera's vertical field of view, for a shot with too little parallax to solve it (0, the solver's own, by default; 40 when it has none).
--from S Start the solve this many seconds in.
--height M The camera's height over the ground in metres, which sets the scene's scale (1.6 by default).
--seconds N How many seconds to solve (to the clip's end by default).
--smooth F Frames of Gaussian smoothing on the camera's path (1 by default; 0 for none).
--subject X,Y,W,H The subject's box on the first frame, in 0 to 1 of the frame, to solve around.
-o OUT.json Also write the solve to this file.