Repository navigation
Follow the talker in a forced face crop over two people - #433
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Contact sheets (fps=1/4) show the comic at the mic in every frame. |
This was referenced Dec 2, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,decideLayoutreads the shot as a two-person split, andforcedDecision(…, "face")keptbase.track, the left seat fromassignPair. 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 leftovercx2≈ 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.track2, andasksWhoTalks(speaker.ts) runs Keep one face crop when the second face in the shot never talks #430's active speaker detection on it.speakerPlan/followSpeakersthen follow the one talker, or each turn when the turns are clear. Otherwise the lead seat stays. The section stays manual, and its reason readsmanual; …. 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/LAYOUTS.md(the face row), plus a changeset.Tests
apps/server/test/forced-face-seat.test.tscovers:asksWhoTalksrunsfollowSpeakerson a forced face, for both the solo and the unsure planbystander-framingandwebcam-tilestill pass.Verify
layout_segmentsshould showcx≈ 0.5 (the comic) and nocx2. The render log lineactive speaker detectionshould show the plan.ffmpeg -i clip.mp4 -vf fps=1/4,scale=180:-1,tile=8x1 -frames:v 1 sheet.png.