Skip to content

reelreader v0.3.1

Choose a tag to compare

@github-actions github-actions released this 05 Dec 22:22
1368202

TransNet V2 as an optional cut reader, and the first of the new reads (faces on screen, beat
sync). Every change adds fields or options; nothing was renamed or dropped.

  • Beat sync (PLAN R-129): shots.onBeat gains lag (signed mean offset of the cuts that land
    on a beat, positive when late), spread (mean distance of every hard cut from a beat) and p
    (the chance the count is luck); shots.motionOnBeat counts big changes of motion inside shots
    that land on a beat (or says the samples are too far apart to tell). summary.md gains a
    "beat sync" line. New exports in scripts/watchshots.mjs: offsetRead, binomTail,
    motionAccents, motionOnBeat, syncLines and the ACCENT_* constants.

  • TransNet V2 as an optional cut reader (--cuts transnet, scripts/watchtransnet.mjs, PLAN
    R-89). The network (MIT, code and weights) runs in plain JavaScript with a small WebAssembly
    SIMD kernel, no PyTorch and no package to install; its weights are fetched once from the
    PyTorch port's wheel on PyPI, checked by SHA-256 and cached (REELREADER_TRANSNET_MODEL for
    an offline copy). Its cuts and dissolves replace the rules' in the shots, shot list and report,
    whose shots section names it as a model source. On the two made reels (46 boundaries) cuts F1
    0.98 against the rules' 0.85, the same boundaries as the PyTorch port. Off by default; without
    the model the run goes on and says so. New exports in watchtransnet.mjs; shotList takes an
    optional cutAt (additive).

  • Faces on screen, turned to the camera, and expression (PLAN R-140, the owner's list of what
    short-video audiences answer to, item 6). From the faces the shot scale read already finds:
    summary.md's faces line and design.json scale.faces { frames, framesWithFace, screenTime,
    screenSeconds, mostFaces, toward { share, frames, margin }, expressions, perShot }, and
    scale.opening.towardCamera for the hook. Turned to the camera is read from YuNet's five
    landmarks (the head, not the eyes). --expressions (opt-in, passed on by --batch) adds the
    largest face's expression from opencv_zoo's facial expression model (Apache 2.0, 4.8 MB,
    fetched on first use, SHA-256 checked; REELREADER_EXPRESSION_MODEL offline), with the
    model's probabilities. New module scripts/watchfaces.mjs (exports faceRead, faceLines,
    headTurn, similarity, alignedInput, expressionOf, loadExpressions, EXPR_MODEL,
    EXPRESSIONS, TEMPLATE); detectFaces gains each face's kps; modelBytes takes
    model, envKey, what and off; scaleRead takes expressions and exprModel; the
    in-repo .onnx runner runs PRelu, Flatten and Gemm.

Install or update

  • Command line: npx reelreader@latest …
  • Codex, Antigravity, or skills put in place before: npx reelreader@latest install the first time, npx reelreader@latest update after
  • Claude Code: /plugin marketplace update reelreader; Codex: codex plugin marketplace upgrade reelreader; Antigravity: agy plugin install https://github.com/jstevoh/reelreader
  • Claude apps: add reelreader-skill.zip below under Settings → Capabilities → Skills