Repository navigation
v0.5.0: recut releases
suba now handles recut releases: subtitles from a version of the film with a scene added or removed.
- Recut releases. A show re-released for streaming loses a scene to music rights; a director's cut gains one. Subtitles for the other release are right until that point and wrong after it. suba now looks across the whole film for the point where the offset jumps, and shifts each side on its own:
On five recut cases built from real tracks (Tears of Steel, Charade), suba got every line within half a second. ffsubsync can only shift the whole file and got none fully right; alass got one. A cut only counts if each side, aligned on its own, clearly confirms its offset, so another film's subtitles still get refused. It finds up to three cuts. Lines for footage the video doesn't have are left out, and suba says how many.
cut found at 01:00:04.565: +7.070 s before it, +37.001 s after it - Benchmark now includes alass (2.0.0, default settings) alongside ffsubsync. See How it compares.
Behaviour changes
Cut detection is on by default. On files with one offset nothing changes: every existing benchmark case gave the same result as in 0.4.1, and on all 14 untouched official tracks suba found no cut. Two new checks can make suba refuse (exit 1) a file it used to sync:
- part of the film clearly fits a different offset, but no clean cut explains it;
- Whisper's word match fits the minute it heard, but not the film as a whole, and speech timing over the whole film can't settle it either.
In both cases the old output would have been wrong for part of the film. --no-cuts restores 0.4.1's behaviour.