You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pipeline writes a re-renderable edit spec (.edit.json) and accepts fromEdit #340
Make edits re-renderable. Each pipeline run writes a small <output>.edit.json (source path, steps, recipe, tool version, source hash). A later pipeline { fromEdit: "<file>.edit.json", override: {...} } re-renders from the raw recording with tweaks, so "make the zoom gentler" or "now export a 9:16 version" doesn't stack another lossy encode on top of the last output.
Where
src/tools/pipeline.ts:315-380: pipeline writes SRT and chapter sidecars, but not the edit spec that produced the output.
src/utils/recipes.ts: recipes (pr_demo, tutorial, social_reel) are already plain step lists, so the spec is easy to serialise.
Details
Today iterating on an edit means either recomputing the steps by hand or re-editing the already-encoded output, losing quality each round. The edit is also not reproducible: given a polished clip, nobody can tell which redactions or trims were applied, which matters when a redaction must be audited before sharing.
Suggested fix
After a successful (non-dry) run, write <output>.edit.json with { version, source, sourceSize, sourceMtime, recipe?, steps, output }.
pipeline { fromEdit, override?: { steps patch by index or op name }, output? } loads the spec, checks the source still matches, applies overrides, and renders from the source.
get_media_info (or the review player) shows "edited from X with N steps" when a spec is present.
Retention prunes the sidecar with the output.
Acceptance criteria
Every pipeline output has an edit spec; dry runs don't write one
fromEdit reproduces an identical step list, and overrides change only what they name
Done in 990f85b: each pipeline result gets .edit.json (source size and mtime, expanded steps, recipe, quality, chapters), returned as editSpecPath. pipeline { fromEdit } re-renders from the original source, steps override same-op steps like a recipe, and a changed or missing source is refused. Verified with pure tests and a real-ffmpeg integration case (write, re-render with a new scale, refuse after the source changes); full suite passes. get_media_info/player display of the spec was not added.
Activity
TMHSDigital commentedon Nov 15, 2026
Done in 990f85b: each pipeline result gets .edit.json (source size and mtime, expanded steps, recipe, quality, chapters), returned as editSpecPath. pipeline { fromEdit } re-renders from the original source, steps override same-op steps like a recipe, and a changed or missing source is refused. Verified with pure tests and a real-ffmpeg integration case (write, re-render with a new scale, refuse after the source changes); full suite passes. get_media_info/player display of the spec was not added.