Repository navigation
Follow the talker shot by shot, over any number of faces, without jitter - #436
Merged
Merged
Conversation
A forced face crop was one decision over the whole section: seats paired faces from different shots, and with three people the crop followed the largest face, which flips between them. Each shot now gets its own seats (any number, by face track), active speaker detection reads all of them, an unsure shot takes the talker of a neighbouring shot by their looks, else a dominant lead seat, else the whole shot. Turns switch after 1.5 s and the crop eases between people. Signed-off-by: dillonstreator <dillonstreator@gmail.com>
Signed-off-by: dillonstreator <dillonstreator@gmail.com>
speakers gains follow cases: the render's Follow speaker path over a real range, scored on time on the talker, target switches per minute inside a shot, and snaps. One range cuts between a panel shot and the stage with the comic talking throughout; the other is a steady wide shot of three people. Signed-off-by: dillonstreator <dillonstreator@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
"Follow speaker" (a section set to it, or a project's
reframe: face) now decides shot by shot, over everyone in the shot, and stays on the person talking without jerking between faces.Cause
#433 made a forced face crop follow the talker over two faces, but two gaps remained:
Fix
Per shot. A forced face section is cut at its scene cuts (
shotSpans; shots under 1.5 s fold into the one before). Each shot gets its own seats (shotSeats): every face track seen in at least 25% of the shot and at least half the biggest face's height, up to four, lead seat first. The crop never follows "the largest face this frame".Speaker detection over N seats.
activeSpeakerstakes any number of seats, and a seat can be a moving path (a comic who paces). It also records each seat's torso colour histogram ("looks").followTalker, per shot, in order:fit) rather than a bystander nearest the centre.There is no mic cue: Reelsaw has no object detector, so continuity rests on looks.
No jitter. Within a shot, a new person takes the crop only after leading the talk for 1.5 s (
FACE_SWITCH_SEC; splits keep 0.6 s). The crop eases to them over 0.6 s (talkerTrack, smoothstep) instead of snapping. Across shots it cuts with the edit.A crop the user pointed (
subjectX) or nudged is left alone and follows that person through the section, as before. Splits are unchanged;speakerPlanand its helpers were generalized to N seats with identical two-seat behaviour.Cost: speaker detection now reads every forced-face shot, about one second of CPU per second of followed footage.
Evals
There are two new
followcases in thespeakerssuite (Kill Tony #794). Each runs the render's Follow-speaker path over a real range and scores the resulting crop against hand-labelled talker positions. Labels come from 1 fps frames with a 0.1 grid; the who-talks labels for the three-person range come from the transcript and the visible mics. Metrics:"Before" is
main(079d97f0) with the same suite and its path adapted to main's API (one section, two seats,followSpeakers); both runs used the same media.killtony-follow-comic-across-cuts(4 cuts, comic talks throughout)killtony-follow-three-at-the-desk(one wide shot, 3 people, 2 real turns)The existing two-seat cases give identical results on both builds.
sistercircle-couch-smiling-listenerfails on both: its media was re-downloaded and the encode's hash differs from the fixture's, so it is not affected by this change. The baseline is left as it was.Unit tests are in
forced-face-seat.test.ts. They cover seats for two and three people, shots split at cuts, follow and turns, look continuity, the dominant-lead and whole-shot fallbacks, reaction shots, hysteresis and easing.Verified on
A local self-hosted instance, built from this branch plus
9983217e(the A/V seek fix from the range-join sync branch, included so that instance kept it). Re-rendered with projectreframe: face:docs/LAYOUTS.md("Follow speaker, shot by shot"),docs/CONFIG.md,docs/EVALS.mdand the README roadmap are updated, and there is a changeset.