Save Local

Move a rendered short into ./output/<source-video-name>/. Auto-creates the per-source folder. Use as the final step so all shorts from one source video land in one browseable folder.

jperrello 0df9384 2 files · 2.1 KB Updated

File contents

save-local

Final-stage delivery. Local filesystem only (no Drive, no cloud).

Inputs

  • input: rendered short path
  • source: original source video path (used to derive folder name when subdir is omitted)
  • name (optional): destination filename, defaults to <input basename>
  • subdir (optional): destination folder under OUTPUT_DIR. When given, overrides the source-stem derivation — the pipeline passes a kebab slug of the source title so shorts land in output/<title-slug>/ instead of the generic source stem.

Output

Path to the saved file: <OUTPUT_DIR>/<subdir-or-source-stem>/<name>. Returns the path.

How

  1. Read OUTPUT_DIR from .env (default ./output).
  2. Folder = subdir if given, else Path(source).stem.
  3. mkdir -p <OUTPUT_DIR>/<stem>.
  4. Copy (not move — preserve the render in its working dir) the file in.
  5. Print the absolute destination path so the user can open it.

Status

Implemented — save-local.sh.

jperrello/C0BALT_CUT/tree/main/.claude/skills/save-local commit 0df9384146

Frequently asked questions

npx skillmds@latest add jperrello/save-local