Skip to content

v0.1.0

Choose a tag to compare

@matthane matthane released this 20 Mar 03:42
· 57 commits to master since this release

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 — Extractor iterator 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 stream command 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.