v0.1.0
libpgs v0.1.0
Initial release of libpgs — a Rust library + CLI for extracting PGS subtitles from MKV and M2TS/TS containers with minimal I/O.
Features
- Streaming extraction —
Extractoriterator yields display sets one at a time, enabling early termination and incremental processing - MKV support — three-tier extraction (Cues fast path, cluster probe, sequential scan) with parallel optimization for batch collection
- M2TS/TS support — bulk PID scanning with 2MB I/O buffer and PES reassembly
- BDMV language fallback — reads CLPI files for PID → language mappings when M2TS is inside a BDMV structure
- NDJSON streaming —
libpgs streamcommand outputs structured JSON over stdout for cross-language subprocess integration - CLI commands —
tracks,extract,stream,bench
Downloads
Pre-built binaries for Windows (x86_64), Linux (x86_64), and macOS (x86_64 + aarch64) will be attached shortly after the release workflow completes.