Skip to content

Cut clips on sentence boundaries and say when speakers are missing - #280

Merged
nmbrthirteen merged 1 commit into
mainfrom
feat/sentence-cuts-speaker-warnings
Nov 18, 2026
Merged

nmbrthirteen merged 1 commit into
mainfrom
feat/sentence-cuts-speaker-warnings

Conversation

@nmbrthirteen

@nmbrthirteen nmbrthirteen commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

What this does

  • Clip starts snap back to a sentence start by the same speaker (up to 6s), or forward (up to 3s), before the weak-opener trim. Ends treat a pause over 0.6s as a boundary, extend up to 5s, and keep a 0.15s tail pad.
  • The diarization warning prints on its own line after transcription instead of being overwritten by the spinner, with the exact HF_TOKEN fix. whisper.cpp runs print that crop will use face tracking.
  • Each clip records the crop strategy it actually used, and the CLI summary shows the counts, e.g. "Crop used: 3 speaker, 1 center".

Follows #279, now merged.

How I tested it

  • npx tsc --noEmit and npm test pass (458 tests), plus pytest tests/ (1298 passed, 1 skipped), lint clean
  • A real run printed the whisper.cpp speaker note and "Crop used: 1 face"
  • No secrets, personal config, or generated output committed

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9a311528-54b7-40da-9583-864c8470174f
Commits

Reviewing files that changed from the base of the PR and between 3be03c6 and 786fe85.

Files selected for processing: 10

  • backend/cli.py
  • backend/services/clip_generator.py
  • backend/services/speaker_detection.py
  • backend/services/transcription.py
  • backend/services/video_processor.py
  • tests/test_cli.py
  • tests/test_cli_helpers.py
  • tests/test_clip_generator.py
  • tests/test_speaker_assignment.py
  • tests/test_video_processor.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nmbrthirteen
nmbrthirteen force-pushed the feat/small-model-full-transcript branch 3 times, most recently from 17a433a to 7075696 Compare November 18, 2026 22:16
@nmbrthirteen
nmbrthirteen changed the base branch from feat/small-model-full-transcript to main November 18, 2026 22:24
Snap clip starts back to the start of a sentence by the same speaker,
or forward when none is close, before trimming a weak opener. Let the
end snap treat a long pause as a boundary, reach up to 5s, and keep a
short tail pad so the last word is not clipped.

Print the diarization warning on its own line after transcription,
with the exact HF_TOKEN fix, and note that whisper.cpp crops with face
tracking. Record the crop strategy each clip actually used and show the
counts in the CLI summary.
@nmbrthirteen
nmbrthirteen force-pushed the feat/sentence-cuts-speaker-warnings branch from 308cf82 to 786fe85 Compare November 18, 2026 22:25
@nmbrthirteen
nmbrthirteen merged commit 1a0e4c0 into main Nov 18, 2026
16 checks passed
@nmbrthirteen
nmbrthirteen deleted the feat/sentence-cuts-speaker-warnings branch November 18, 2026 22:33
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