Skip to content

Edit one cut and rebuild

  1. Inspect before you edit:

    Terminal window
    npx @mathrunet/rereel inspect reels/ep01
    npx @mathrunet/rereel inspect reels/ep01 --scene s03
    {"reelDir":"/.../reels/ep01","kind":"remotion_single","video":{"width":1920,"height":1080,"aspect":"16:9","fps":30,"chunkFrames":300},"audioMode":"mix_plan","lockedAssets":7,"scenes":[{"id":"s03","startSec":16,"endSec":24,"text":"Ship it on Friday…"}],"cutsCount":12,"narrationSegments":9,"bgmCues":1,"sfxCues":3}

    scenes comes from props.scenes (or props.scenes.scenes), with id, start_sec/end_sec/duration_sec and the first 80 characters of narration or text. --scene <id> filters by ID. cutsCount counts props.cuts or props.edit.cuts.

  2. Edit the JSON directly. Choose the change:

    Change a field on one timed item in props.json, such as text, zoom or color. Only chunks whose padded window overlaps that item re-render.

    "scenes": [
    { "id": "s03", "start_sec": 16, "end_sec": 24,
    "text": "Ship it on Friday" }
    "text": "Ship it on Monday" }
  3. Validate:

    Terminal window
    npx @mathrunet/rereel validate reels/ep01
  4. Rebuild:

    Terminal window
    npx @mathrunet/rereel build reels/ep01
    {"status":"built","outPath":"/.../reels/ep01/build/output.mp4","totalFrames":1350,"fps":30,"chunksTotal":5,"chunksRendered":1,"chunksReused":4, "...": "..."}

    Check chunksRendered. If it is higher than you expected, you probably changed a global key (see below).

Change Chunks re-rendered
A field of one item in cuts, scenes, overlays, dialogue, hook, cta, images.shots or structure.sections those overlapping the item ± 30 frames
Anything in mix_plan.json, or the audio key in props none (audio only)
A swapped media file chunks whose slice references it
Any other top-level props key (theme, duration_sec, a top-level captions array, …) all
Template src/, package.json, remotion.config.* all
rereel.json: fps, chunkFrames, composition, imageFormat, jpegQuality, remotionArgs all

--out <mp4> writes the final file elsewhere. Without it, the output is build/output.mp4 (build/final.mp4 for composite_merge). The chunk cache always lives in <reel_dir>/build/.