Edit one cut and rebuild
-
Inspect before you edit:
Terminal window npx @mathrunet/rereel inspect reels/ep01npx @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}scenescomes fromprops.scenes(orprops.scenes.scenes), withid,start_sec/end_sec/duration_secand the first 80 characters ofnarrationortext.--scene <id>filters by ID.cutsCountcountsprops.cutsorprops.edit.cuts. -
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" }Edit
mix_plan.json(gain, fades, BGM cue, SFX timing). Audio is not part of any chunk hash, so no chunk re-renders. Only the FFmpeg mix and mux run again.Terminal window npx @mathrunet/rereel patch reels/ep01 trim-segment --id seg_004 --gain-db -2Do not overwrite a file in
media/. The next hydrate sees the SHA-256 mismatch and restores the locked version. Put the new file inside the reel directory (herereels/ep01/incoming/), point the reference at it, and re-freeze in place:Terminal window npx @mathrunet/rereel patch reels/ep01 swap-asset \--old media/bg_s003_3fa9c2d1.png --new incoming/bg_s003_v2.pngnpx @mathrunet/rereel freeze reels/ep01 --props reels/ep01/props.json \--mix-plan reels/ep01/mix_plan.json --template-dir remotionOnly chunks that show that image re-render, because their
mediaHasheschange. See Ripple shift, trim and swap.Inserting or removing time moves everything after it. Use
ripple-shiftso all files stay in sync. See Ripple shift, trim and swap. -
Validate:
Terminal window npx @mathrunet/rereel validate reels/ep01 -
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).
What re-renders what
Section titled “What re-renders what”| 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 |
Specifying the output path
Section titled “Specifying the output path”--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/.