Plotloom Stitch and Deliver
When to Use
Use after all required episodes/epXXX/videos/clip-*/selected.mp4 files exist.
Inputs
selected.mp4clips underepisodes/epXXX/videos/clip-*/- Target episode id.
- Optional delivery request via nova-lark / lark-cli.
Outputs
episodes/epXXX/videos/final.mp4- Optional delivery note and Feishu/Lark delivery message or uploaded file.
Read These Resources When...
- Read
references/ffmpeg.mdbefore probing or stitching. - Use
templates/delivery-note.mdafter final verification or delivery. - Use
plotloom --repo <repo> media probe <path>andplotloom --repo <repo> stitch --episode <episode>for deterministic work.
Workflow
- Find selected clips in episode clip order.
- Stop if any required selected clip is missing.
- Use
plotloom media probeto inspect each input. - Use
plotloom stitchto stitch selected clips; use--normalizeonly when the target media behavior is understood. - Save
episodes/epXXX/videos/final.mp4. - Verify final file exists, is probeable, has nonzero duration, and matches expected clip count/order.
- Deliver via nova-lark / lark-cli when requested.
- Keep Feishu as delivery, not state center.
Final Verification Checklist
final.mp4exists.ffprobereturns success.- duration is nonzero.
- source clip order is correct.
- no prompts/candidates/selection notes were mutated during stitch.
Stop Conditions
Stop after final probe and optional delivery. Do not mutate prompts, candidates, or selection notes.
Failure Modes
- Missing selected clip: report exact missing path.
- ffprobe failure: report incompatible/unreadable media.
- ffmpeg failure: report stderr/command failure clearly; do not hide errors.
- Delivery failure: final file remains canonical in repo; Feishu is not state center.