What's new
New features
- Flexible input: pass any mix of video files, subtitle files, and directories — submatch auto-pairs them
--no-recursive flag to disable recursive directory scanning (directories are scanned recursively by default)
- ffmpeg is now bundled via
static-ffmpeg — no system ffmpeg install required
--drift-threshold flag to control how many seconds of offset trigger a drift warning (default: 2.0)
Bug fixes
- Chinese, Japanese, and Korean subtitles now score correctly (character-level tokenization)
- Unknown file types (
.DS_Store, .nfo, images) are no longer misclassified as video when scanning directories
- Spurious "no subtitles found" warnings are suppressed when inputs come from directory scans
- UTF-8 output on Windows no longer crashes with UnicodeEncodeError when piped
Improvements
- Parallel batch workers now default to up to 4 regardless of device
Install / upgrade
pip install --upgrade submatch