NIG integration: one-call road (film.mjs), auto-discovery of ffmpeg/ffprobe/browser, setup mode

This commit is contained in:
NIG
2026-11-10 17:18:58 +03:30
parent 5d8f1c6efe
commit 331304fd5c
5 changed files with 310 additions and 5 deletions
+9
View File
@@ -44,6 +44,15 @@ node sims/build.mjs piranha-film
node sims/build.mjs wasp-film
```
## The whole road in one call
```
node film.mjs --setup # once: installs deps, a browser and ffmpeg where missing
node film.mjs wasp-film --gif # build -> score -> capture -> mux -> beat sheet -> waveform -> gif
```
`film.mjs` prints the GPU it captured on, the score's loudness, and every artifact path. `--quick` renders a fast draft; flags mirror `sims/capture.mjs`. If the Playwright Chromium download is unavailable, it captures in the installed Edge or Chrome (same WebGL) and finds ffmpeg even when it is only in winget's Links dir.
## How it works
1. **One reference picture** sets the look. Claude reads it and rebuilds it; it never imports it.