Commit b7ebf34
Fix slide-transcript mismatch: add frame extraction to pipeline, skip screenshare videos in alignment
Three fixes for the screenshare/slide mismatch:
1. Pipeline now runs frame_extractor.py between Transcribe and Align.
Previously frame extraction was never called, so screenshare (SS)
videos always fell through to PDF-based slide matching.
2. semantic_alignment.py now checks each caption's existing alignment
before attempting slide matching. If the alignment has
source="screenshare" (produced by frame_extractor), the caption is
skipped — preventing PDF matching from overwriting frame alignment.
3. frame_extractor.py skip logic now checks if existing alignment is
frame-based before skipping. If a slide-based alignment exists but
the video is a screen recording, frame extraction still runs and
produces the correct frame-based alignment.
Pipeline flow is now:
Download → Transcribe → Extract Frames → Align → Generate Notes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f8b2b6f commit b7ebf34
3 files changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1495 | 1495 | | |
1496 | 1496 | | |
1497 | 1497 | | |
| 1498 | + | |
| 1499 | + | |
1498 | 1500 | | |
1499 | 1501 | | |
1500 | 1502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
| 635 | + | |
636 | 636 | | |
637 | | - | |
638 | | - | |
639 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
640 | 646 | | |
641 | 647 | | |
642 | 648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
1687 | 1701 | | |
1688 | 1702 | | |
1689 | 1703 | | |
| |||
0 commit comments