Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
5.3 KiB
Editing Suite — Build/Run + Generate→Edit handoff (Phase 1 proof-of-direction)
Companion to
/EDITING-SUITE-PLAN.md. Additive, non-wiring. These are the exact commands to stand up each OSS base from our own checkout, plus a documented adapter that wraps a videogen-generated clip into a WolfCut timeline project. Nothing here modifies wolfcut/, openscreen/, or the videogen product code.
1. WolfCut (the editor) — build & run
Source: videogen/wolfcut/. License: MPL-2.0. There is no root package.json —
the app lives in wolfcut/desktop/ (Tauri v2 host + React 19 UI) and consumes the
wolfcut/engine/ Cargo workspace as path deps.
Prereqs: Rust ≥ 1.93 (edition 2024), Node, ffmpeg + ffprobe on PATH, and (for
auto-captions) a Whisper binary. On Nix the flake wires ffmpeg + whisper automatically.
# --- Engine only (no UI): probe/render vertical slice ---
cd videogen/wolfcut/engine
cargo build # builds all 6 crates
cargo test # engine unit tests
# binary name is `wolfcut` (crate wolfcut-cli):
cargo run -p wolfcut-cli -- probe /path/to/input.mp4
cargo run -p wolfcut-cli -- render /path/to/input.mp4 /tmp/out.mp4 --frames 90 --fade 15
# --- Full desktop app (Tauri host + React UI) ---
cd videogen/wolfcut/desktop
npm install
npm run app # = "tauri dev" (dev app with hot reload)
npm run app:build # = "tauri build" (packaged binary)
npm run typecheck # tsc --noEmit
npm run test # vitest
# --- Nix (Linux), from upstream README (uses OUR checkout via nix develop) ---
cd videogen/wolfcut
nix develop # shell with ffmpeg + whisper + what `npm run app` needs
# (upstream `nix run github:jub0t/Concat` runs the published app, not our fork)
Engine layout (why it embeds cleanly — see plan §1.2): wolfcut-core (time/timeline
model, zero deps) ← wolfcut-media (ffmpeg) ← wolfcut-project (document + undo,
wolfcut.json) ← wolfcut-render (compositor) ← wolfcut-export (timeline→file).
2. OpenScreen (the recorder) — build & run
Source: videogen/openscreen/. License: MIT. Stack: Electron + React + Vite +
PixiJS. Upstream archived — we own this checkout.
Prereqs: Node 22.22.1, npm 10.9.4 (see engines in openscreen/package.json).
macOS native capture needs Xcode/Swift (ScreenCaptureKit); Windows needs the WGC
toolchain. Grant Screen Recording + Accessibility permissions on macOS.
cd videogen/openscreen
npm install
# Dev (renderer via Vite; run electron separately per project scripts):
npm run dev # vite dev server
# Native capture helpers (required for native record path):
npm run build:native:mac # ScreenCaptureKit helper (macOS)
npm run build:native:win # Windows Graphics Capture helper (Windows)
# Packaged builds (build native helper + tsc + vite + electron-builder):
npm run build:mac # macOS .dmg
npm run build:win # Windows installer
npm run build:linux # AppImage/deb/pacman (browser capture pipeline)
npm run test # vitest
npm run test:e2e # playwright
Linux note: native capture (ScreenCaptureKit/WGC) is macOS/Windows only; Linux uses the browser pipeline (cursor position only, no custom-cursor features). See plan §1.3.
3. Generate → Edit handoff (the seam)
The integration seam is a shared project format, not shared UI (plan §2). A finished
videogen Job produces a 1080×1920 MP4 in R2; "Open in editor" wraps that single clip into
the minimal wolfcut.json document the WolfCut engine already round-trips.
WolfCut's document top level (from wolfcut-project/src/doc.rs, serde camelCase) is:
{
"media": [ /* MediaItem: { mediaId, path/url, ... } */ ],
"tracks": [ /* Track: { kind: "video"|"audio", ... } */ ],
"clips": [ /* Clip: references mediaId, in/out, position on track */ ],
"fonts": [],
"timelines": [ /* one active timeline */ ],
"settings": { /* DocumentSettings: fps, resolution, ... */ }
}
A reference adapter (documented stub, not wired into any build) lives at:
It takes a videogen Job result (clip URL + probe: width/height/fps/duration) and emits a
one-media / one-clip / one-video-track wolfcut.json the engine can open. This is the
smallest possible proof that a generated clip lands on the WolfCut timeline. It writes no
files on import and depends only on the Python stdlib.
Try it (round-trips to a real WolfCut project the engine can load):
cd videogen/docs/reelforge/editing-suite
python3 videogen_to_wolfcut.py --url https://r2.example/clip.mp4 \
--width 1080 --height 1920 --fps 30 --duration 12.5 --out /tmp/reel.wolfcut.json
# then open /tmp/reel.wolfcut.json in the WolfCut desktop app (§1)
Next steps after this stub (plan §5, Phase 1→2):
- Wire "Open in editor" in the suite: call this adapter on Job completion, hand the
wolfcut.jsonto the WolfCut engine (viawolfcut-projectload path, not the CLI). - Add a golden round-trip test (adapter output →
wolfcut-projectload → re-serialize) to catch schema drift. - Extend the adapter to multi-clip (avatar reel + screen capture + B-roll on separate tracks) once the record→generate→edit flow (Phase 3) exists.