What problem does it solve?
libbitsub provides a high-performance WebAssembly-based bitmap subtitle renderer for PGS, VobSub, and MKS-embedded subtitles in the browser, enabling overlay rendering on video players.
Core Features & Use Cases
- Overlay rendering of bitmap subtitles onto HTML5 video elements with GPU-accelerated backends and automatic fallback.
- Layout controls including scale, aspect mode, vertical/horizontal offsets, alignment, bottom padding, safe area, and opacity to precisely position subtitles.
- Low-level parsers and high-level renderers with metadata and diagnostics for debugging and integration in media apps.
Quick Start
Instantiate the PgsRenderer with a video element and subtitle source, then render the first cue on the overlay.