Skip to content

Follow the talker in a forced face crop over two people - #433

Merged
dillonstreator merged 1 commit into
mainfrom
claude/fix-face-reframe-speaker-b45d51
Dec 2, 2026
Merged

dillonstreator merged 1 commit into
mainfrom
claude/fix-face-reframe-speaker-b45d51

Conversation

@dillonstreator

Copy link
Copy Markdown
Member

Problem

A forced face crop ("Follow speaker" on a section, or a project's reframe: face) over a shot with two comparable faces framed the wrong person. On a stage show where the drummer's face is 0.85–0.97 of the comic's height, decideLayout reads the shot as a two-person split, and forcedDecision(…, "face") kept base.track, the left seat from assignPair. Here that's the drummer, so the comic at the mic was barely in frame. The active-speaker step from #430 only ran on automatic splits, so nothing corrected it.

Repro: a stand-up shot with a drummer left of and behind the comic, framing set to Follow speaker. The clip's stored segment shows layout: face, reason: manual, cx ≈ 0.07–0.22 (the drummer), and a leftover cx2 ≈ 0.5 (the comic).

Fix

  • leadSeat (layout.ts): when one crop is forced over two seats, it shows the seat with the higher score, summed over frames: face height × nearness to the centre × up to ½ off for a face centred high in the frame. A forced Screen + speaker picks its speaker pane the same way, so it gets the same fix.
  • A forced face crop keeps the other seat as track2, and asksWhoTalks (speaker.ts) runs Keep one face crop when the second face in the shot never talks #430's active speaker detection on it. speakerPlan / followSpeakers then follow the one talker, or each turn when the turns are clear. Otherwise the lead seat stays. The section stays manual, and its reason reads manual; …. A crop the user pointed at someone (subjectX) or nudged (offsetX/Y) is left alone. After that step the render drops the leftover second seat.
  • Docs: docs/LAYOUTS.md (the face row), plus a changeset.

Tests

apps/server/test/forced-face-seat.test.ts covers:

  • the two drummer geometries: the crop lands on the centre face
  • a forced stack
  • a seated two-shot, where the larger face leads
  • a single face, which is unchanged
  • when asksWhoTalks runs
  • followSpeakers on a forced face, for both the solo and the unsure plan

bystander-framing and webcam-tile still pass.

Verify

  1. Deploy the branch and re-render a stage-show clip whose framing is Follow speaker.
  2. The clip's layout_segments should show cx ≈ 0.5 (the comic) and no cx2. The render log line active speaker detection should show the plan.
  3. Look at a contact sheet: ffmpeg -i clip.mp4 -vf fps=1/4,scale=180:-1,tile=8x1 -frames:v 1 sheet.png.

A face crop the user forced (a section set to Follow speaker, or a
project's reframe: face) over a two-person shot kept the left seat of
the split decision, so on a stage show it could frame the drummer
behind a comic instead of the comic at the mic.

The crop now shows the lead seat: summed over the frames, face height
times nearness to the centre, with faces centred high in the frame
weighed down. The other seat is kept for active speaker detection,
which now also runs on such a section: one talker gets the crop,
clear turns a crop per turn, otherwise the lead seat stays. A crop the
user pointed or nudged is left alone. A forced Screen + speaker picks
the same lead seat for its speaker pane.

Signed-off-by: dillonstreator <dillonstreator@gmail.com>
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
reelsaw-website Ready Ready Preview Dec 2, 2026 4:17pm UTC

Request Review

@dillonstreator
dillonstreator merged commit 079d97f into main Dec 2, 2026
17 checks passed
@dillonstreator

Copy link
Copy Markdown
Member Author

Verified on a local instance running this branch: the two stage-show clips that had framed the drummer were re-rendered with Follow speaker framing.

  • Clip 1: crop centre 0.48, on the comic (was 0.22, the drummer). Active speaker detection was unsure, so the lead seat was kept: manual; the face at 48% of two (nearer the centre or larger than the one at 22%); active speaker unsure.
  • Clip 2: crop centre 0.50, on the comic (was 0.07). Detection agreed: manual; only the left speaker talks (talk 0.84/0, model).

Contact sheets (fps=1/4) show the comic at the mic in every frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant