libbitsub

Render PGS, VobSub, and MKS bitmap subtitles in browser video players.

15|3|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/altqx/libbitsub --skill libbitsub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: libbitsub
Source: https://github.com/altqx/libbitsub/tree/main
Command: npx skills add https://github.com/altqx/libbitsub --skill libbitsub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about libbitsub

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render PGS and VobSub bitmap subtitles in a browser video player?

You can render PGS and VobSub bitmap subtitles in a browser video player using a WASM-based renderer that applies GPU-accelerated overlay rendering directly onto HTML5 video elements.

Does browser subtitle rendering support GPU acceleration with automatic fallback?

Browser subtitle rendering supports GPU-accelerated backends with automatic fallback to ensure overlay rendering remains functional across different browser environments.

Can I control layout and positioning for bitmap subtitle overlays in the browser?

Bitmap subtitle overlays support layout controls including scale, aspect mode, vertical and horizontal offsets, alignment, bottom padding, safe area, and opacity for precise positioning.

How do I extract metadata and debug bitmap subtitle tracks programmatically?

You can extract metadata and debug bitmap subtitle tracks by utilizing low-level parsers that provide clear diagnostics for integration within media applications.

Are there high-level and low-level APIs available for MKS-embedded subtitle parsing?

MKS-embedded subtitle parsing exposes a stable API surface providing both high-level renderers for runtime video overlays and low-level parsers for programmatic extraction.

What is the best way to handle bitmap subtitle rendering without compromising web player performance?

The best way to handle bitmap subtitle rendering without compromising performance involves using a WebAssembly-based renderer to apply GPU-accelerated overlay rendering with automatic fallback.