subtitleaudit

Extract the primary MKV subtitle to SRT, correct WhisperX errors, and re-mux it.

Updated Aug 17, 2025
One-click install
npx skills add https://github.com/five82/spindle --skill subtitleaudit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subtitleaudit
Source: https://github.com/five82/spindle/tree/main/.agents/skills/subtitleaudit
Command: npx skills add https://github.com/five82/spindle --skill subtitleaudit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps editors and media librarians quickly identify and fix WhisperX transcription errors that appear in the primary embedded subtitle track of MKV films or episodes. It ensures that the display subtitles viewers see are coherent and accurate by avoiding edits to non-primary tracks or external references.

Core Features & Use Cases

  • Audit the primary non-forced (display) subtitle track in an MKV and detect obvious WhisperX mistakes.
  • Extract the primary subtitle to a temporary SRT, review it, apply title-specific corrections, and re-mux it back into the MKV while preserving other tracks.
  • Enforce safety by not altering cached WhisperX artifacts or non-primary subtitle streams; preserve all audio/video tracks and default/forced dispositions.
  • Use as a title-specific cleanup step after the generic subtitle pipeline has run, or as part of batch QC for library curation.

Quick Start

Run the /subtitleaudit command against a sample MKV to review and correct its primary display subtitle.

Frequently Asked Questions about subtitleaudit

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

FAQPage Schema
How do I audit and fix WhisperX transcription errors in MKV subtitles?

To audit WhisperX subtitles in MKVs, this process identifies the primary subtitle stream, extracts it to a temporary SRT, applies conservative title-specific corrections, and re-muxes it back into the MKV while preserving all other tracks.

What is the best way to correct a primary subtitle track without losing other MKV streams?

Correcting a primary subtitle track safely involves extracting the display subtitle to SRT, applying text fixes, and reconstructing the MKV. This preserves all audio, video, and non-primary subtitle tracks along with their original default and forced dispositions.

Does subtitle auditing modify the original cached WhisperX artifacts?

No, subtitle auditing does not modify cached WhisperX artifacts. It operates conservatively by only adjusting the extracted display subtitle text and leaving the original transcription cache and non-primary subtitle streams completely untouched.

Can I use ffmpeg and mkvmerge to remux corrected SRT subtitles back into an MKV?

Yes, local tools including ffprobe, ffmpeg, and mkvmerge are used to identify streams, extract the primary subtitle to SRT, and remux the corrected text back into the MKV without performing any external network fetches.

When should I run a subtitle audit on my video processing pipeline?

You should run a subtitle audit as a title-specific cleanup step after your generic WhisperX subtitle pipeline has finished, or use it as part of batch quality control for media library curation to ensure coherent display subtitles.

Why does my WhisperX subtitle audit only process the primary subtitle stream?

The audit focuses exclusively on the primary non-forced display subtitle track to ensure viewer-facing text is accurate. It intentionally avoids altering non-primary tracks, external references, or cached transcription data to maintain library integrity.