Repository navigation
Feature films now sync in about a third of the time, and ffmpeg can no longer hang a batch run.
- About three times faster on feature films. Decoding the soundtrack was nearly all of suba's run time, and ffmpeg does it on one core. suba now decodes the film in several stretches at once and joins them exactly where they belong. On the benchmark the median 2-hour film went from 63 s to 22 s, and the 12-minute film from 15 s to 9 s. Every case kept its result.
--jobs Nsets how many ffmpeg processes run at once (default: your cores, up to 8; on a spinning hard disk, 1 may be faster). - No decoding twice. When suba switches to speech timing partway through (a different language, a recut, or Whisper unsure), it reuses the audio it already has. A recut feature film went from 152 s to 47 s.
- ffmpeg can no longer hang suba (#1). On some files ffmpeg reaches the very end of the audio and then keeps running without producing anything more, which stopped a batch run for good. suba now stops it after 120 s without new audio and carries on with what it read: in the reported cases that was 99.9% of the film, so those files now sync. If ffmpeg produced no audio at all, suba exits with an error and batch mode moves on, leaving the subtitle untouched.
--ffmpeg-timeout SECONDSsets the limit (0waits forever). ffmpeg and ffprobe no longer read from stdin, which can cause trouble when suba runs in the background on Windows. - Sturdier recut detection. On a recut, suba's two speech detectors can score almost exactly alike, and the cut only showed on one of them. Before refusing, suba now looks for the cut with both. Each cut still has to hold up on both sides of it, so subtitles from another film are still refused.
- Benchmark against lapse. lapse joins ffsubsync and alass in the comparison, and the README now shows a summary table. See How it compares.