05 · Refine

The Refine workspace

Refine is for fixing and finishing: mask an object, re-run just that region through a model, blend passes together, or apply depth-of-field with a depth map. Two worked examples below show the full process.

Sessions & the pool

A Refine session holds a pool of related videos: the original source, each enhance stage, and anything you export inside the session. The usual way in is to open a finished project under Projects and click Refine. The source and every stage come along with role badges (SRC, S1, S2…). The video marked A is your working video; mark any other as B to use it as a blend layer.

The Refine workspace: session pool on the left, player in the middle, active tool on the right. Here Mix is blending the Stage-1 pass back into the final output at 20%.

Everything you export lands back in the pool and is recorded on the project, so a session can be resumed later. The app sidebar shows your open session while you are elsewhere in the app.

Selections

Every Apply tool honors the current selection; no selection means the whole frame. Three ways to select: drag a Box on the video for a region, set In / Out on the transport for a frame range, or click a mask in the pool to select an object. The chip at the top of the tool rail shows what is selected.

The Apply tools

MixBlend the B video into the working video, across the whole frame or inside the selection. Used to pull generative detail back toward the cleaner Refocus pass on faces or text.
BlendPaste a patch video into the working video at its recorded position and frame range.
ReprocessRe-run an enhance pass on just the selection and blend the fix back in.
FocusDepth-of-field render: keeps the focus target sharp, blurs by depth. Needs a depth map.
EditTrim, crop, rotate, flip. Exported as a new video in the pool.

Example: fix one object with a mask

A common case: one object in an otherwise good output needs another pass. Here the left giraffe in a finished 4× upscale is re-run through Regenerate-Q without touching the rest of the frame.

  1. 1In the pool, click New mask…. Pick a model size (Base+ is a good default; larger tracks more accurately, smaller loads faster), then click the object on the video. SAM2 masks it. Add more clicks to include or exclude regions, or drag a box around the object.
  2. 2Use Apply to frames to track the object through the shot: Previous/Next in batches, or To start / To end. The scrubber shows a coverage lane with the frames that have masks.
  3. 3Click Save mask set. The mask appears in the pool. Click it any time to make it the active selection.
  4. 4With the mask selected, open Reprocess. The card crops to the mask (choose Fixed area or Follow object), and the frame range follows the mask's coverage.
  5. 5Pick a Fix for preset. Here it is Detail, which softens the input and then re-runs Regenerate-Q on the crop. Choose what to blend the fix into, and click Run.
One click on the giraffe and SAM2 masks it. The floating toolbar switches between include and exclude prompts; Apply to frames tracks the object through the shot.
Reprocess with the mask as the selection: region and frames follow the mask, the Detail preset runs Soften → Regenerate-Q, and the fix blends back into the working video.

The result appears in two places: a patch video in the pool, with its position and frame range recorded so the Blend tool can place it again later, and (if you chose a blend target) a composited working video with the fix in place. Only the 29 masked frames were re-processed.

Example: depth maps & near-camera masks

Depth maps power two things: the Focus tool (depth-of-field) and depth-based masks, which select everything within a distance range without clicking individual objects.

  1. 1In the pool, click Generate depth…. Preview (fast) renders at a downscaled size in seconds; Full res is for final Focus renders. Pick a model: relative ranks near to far, metric gives real distances in meters.
  2. 2Tick Show depth over the video to inspect it. Brighter is nearer. Pause and hover to read the depth under the cursor; with a metric map the readout is in meters. Click to set the Focus tool's focus point.
  3. 3For a depth mask: open New mask… → Depth tab. Drag the From (far) / To (near) range; the blue preview shows what joins the mask. Add a limit box to restrict it to part of the frame, then Create depth mask and propagate to more frames like any mask.
A preview depth map over the working video. Brighter is nearer: the foreground branch and giraffes separate cleanly from the trees.
Mask from depth: the From/To sliders select by distance. At 42–100% the near-camera foreground joins the mask (blue). Use it with Mix, Reprocess, or Focus like any other selection.
The Focus tool consumes these maps directly: pick a focus target (a click on the video, a masked object, or frame center), set blur strength, max radius, and the in-focus band, and export a depth-of-field pass.

Tool parameters

Reprocess

SettingValuesWhat it does · when to change it
Fix forConsistency · Detail · Denoise · All settingsWhat is wrong with the region. Consistency: temporal flicker; frame-interpolates the crop. Detail: bad texture; softens, then Regenerate-Q rebuilds it (it re-runs from the Refocus stage for a cleaner starting point). Denoise: grain; one denoise pass. All settings opens the full pipeline editor, same as Enhance.
CropFixed area · Follow objectFixed area re-processes one rectangle for the whole range. Follow object moves the crop with a tracked mask.
Soften input (pre-blur)on · offLight blur before the model, so Regenerate-Q rebuilds texture instead of preserving the bad texture it was given.
Min overlap W / HpxTile-overlap minimums for the crop, same meaning as in Enhance. The card warns when tiles overlap too little; raise the minimums to soften seams.
Blend fix intopool video · noneWhere the fix goes. Pick a video to composite automatically, or choose no target to keep it as a patch and place it later with the Blend tool.

Mix

SettingValuesWhat it does · when to change it
Blend in (B)pool videoThe layer mixed into the working video. Mark it with the B badge in the pool.
Blend regionInside · OutsideBlend inside the selection, or everywhere except it.
Strength0–100%0 is all working video, 100 is all blend layer. 15 to 30% is typical for pulling generative detail back toward a cleaner pass.
Crop output / codecregion · Match sourceOptionally crop the exported mix, and choose its codec (defaults to matching the source).

Mask & depth

SettingValuesWhat it does · when to change it
Model sizeTiny · Small · Base+ · LargeThe SAM2 variant. Larger tracks objects more accurately through motion but loads and runs slower.
Apply to framesbatch size · directionPropagates prompts from the current frame in batches (default 30), or to the start or end, with a Stop button. Re-prompt on a later frame if tracking drifts.
Depth scaleRelative · MetricRelative thresholds are percentages (0% farthest, 100% nearest). Metric uses real near and far limits in meters.
Limit boxoptionalRestrict a depth mask to a drawn region instead of the whole frame.

Focus

SettingValuesWhat it does · when to change it
Focus targetpoint · masked object · centerWhat stays sharp: click the video (with a depth map showing), or pick a masked object.
Blur strength / Max radiusslidersHow aggressively depth maps to blur, and the ceiling on blur size.
In-focus bandsliderDepth range around the target that stays fully sharp. Widen it to keep a whole subject sharp.
Refine edgeson · offGuided-filter edge refinement so blur boundaries follow object edges.