Refinement of previous lookback fix - limit to MAX 2 words back. Reason: with unlimited lookback, the lookback would chain through words with gaps < 0.5s and keep walking back into the previous verse. For Žena ME TEPE: 'verjet.' [76.78] → 'Žena' [76.88] gap is 0.10s, which means lookback would walk back to verses before chorus. With 2-word limit: - Clip at 78.19s → 'me' [78.16] is closest preceding word (gap 0.03s) - Lookback j=i: 'me' → 'Žena' gap 0.14s → captured (i-1) - Lookback j=i-1: 'Žena' → 'verjet.' gap 0.10s → would be captured but MAX_LOOKBACK_WORDS=2 stops here ✓ Result: anchor = 'Žena' at 76.88s → new_start = 76.73s. Subtitle: 'ŽENA ME TEPE' (full phrase, no verse leakage). |
||
|---|---|---|
| .. | ||
| acr_recognize.py | ||
| analyze.py | ||
| clip.py | ||
| find_chorus.py | ||
| reframe.py | ||
| subtitle.py | ||
| yt_download.py | ||