subtitle-audit
This skill should be used when the user asks "check subtitles", "audit subs", "subtitle font issues", "ASS vs SRT", "missing fonts", "subtitle timing", or wants to analyze subtitle tracks for issues like missing fonts, timing problems, or format limitations.
What this skill does
# Subtitle Track Audit
Analyze subtitle tracks for issues including missing fonts, timing problems, format capabilities, and proper tagging.
## Subtitle Formats
### ASS (Advanced SubStation Alpha)
**Capabilities**:
- Full styling (fonts, colors, positioning)
- Complex typesetting (signs, karaoke)
- Multiple styles per file
- Precise positioning
**Requirements**:
- Fonts must be available (embedded or installed)
- Only MKV container fully supports ASS
- MP4 does not support ASS (must hardsub)
### SRT (SubRip)
**Capabilities**:
- Basic text with timing
- Limited styling (some players support HTML tags)
- Wide compatibility
**Limitations**:
- No font specification
- No precise positioning
- No complex typesetting
### PGS (Presentation Graphic Stream)
**Capabilities**:
- Blu-ray subtitle format
- Image-based (pre-rendered)
- Perfect styling preservation
**Limitations**:
- Cannot be edited easily
- Large file size
- Text not searchable/selectable
## Audit Workflow
### Step 1: List Subtitle Tracks
```bash
mediainfo video.mkv
```
Look for Subtitle sections showing:
- Format (ASS, SRT, PGS, etc.)
- Language
- Title/name
- Default/forced flags
**Using ffprobe**:
```bash
ffprobe -v error -select_streams s -show_entries \
stream=index,codec_name:stream_tags=language,title \
-of csv=p=0 video.mkv
```
### Step 2: Extract for Inspection
```bash
# Extract first subtitle track
ffmpeg -i video.mkv -map 0:s:0 subtitles.ass
# Extract by language
ffmpeg -i video.mkv -map 0:s:m:language:eng output.srt
```
### Step 3: Check ASS Font Requirements
**Using Aegisub**:
1. Open ASS file in Aegisub
2. Go to View → Fonts Collector
3. Lists all fonts used and availability
**Manual inspection**:
Open ASS file in text editor, look for Style lines:
```
Style: Default,Arial,48,&H00FFFFFF,...
```
The second field after style name is the font.
### Step 4: Verify Embedded Fonts
For MKV files, check attachments:
```bash
mediainfo video.mkv | grep -A 20 "Attachment"
```
Should show font files (TTF, OTF) if fonts are embedded.
**Extract embedded fonts**:
```bash
mkvextract attachments video.mkv 1:font1.ttf 2:font2.ttf
```
### Step 5: Timing Analysis
**Check for issues**:
- Subtitles appearing too early/late
- Overlapping subtitle events
- Very short display times
**Using Aegisub**:
- Open subtitle file
- Check timing column for irregularities
- Look for negative durations or overlaps
## Common Issues
### Missing Fonts
**Symptoms**:
- Subtitles render in wrong font
- Missing characters (boxes or blanks)
- Wrong styling/positioning
**Solutions**:
1. Install required fonts system-wide
2. Use font manager (FontBase) for temporary activation
3. Embed fonts when muxing MKV
### Wrong Language Tag
**Symptoms**:
- Player selects wrong subtitle track
- Language filtering doesn't work
**Fix with MKVToolNix**:
```bash
mkvpropedit video.mkv --edit track:s1 --set language=eng
```
### Timing Offset
**Symptoms**:
- All subtitles early or late by same amount
**Fix**:
```bash
# Delay subtitles by 2 seconds
ffmpeg -i input.srt -itsoffset 2 -i input.srt -c copy output.srt
```
Or use Aegisub: Timing → Shift Times
### Container Compatibility
**MKV**: Full ASS support, can embed fonts
**MP4**: No ASS support, SRT only (basic), or must hardsub
**WebM**: Limited subtitle support
## Muxing Subtitles
### Add to MKV
```bash
# With MKVToolNix
mkvmerge -o output.mkv input.mkv subtitles.ass
# With ffmpeg
ffmpeg -i video.mkv -i subtitles.ass -map 0 -map 1 -c copy output.mkv
```
### Set Language and Default
```bash
mkvmerge -o output.mkv input.mkv \
--language 0:eng --default-track 0:yes subtitles.ass
```
### Embed Fonts
```bash
mkvmerge -o output.mkv input.mkv subtitles.ass \
--attach-file font1.ttf --attach-file font2.ttf
```
## Quick Reference
| Format | Styling | Fonts | Container Support |
|--------|---------|-------|-------------------|
| ASS | Full | Required | MKV only |
| SRT | Basic/None | N/A | Most containers |
| PGS | Image-based | N/A | MKV, M2TS |
| VobSub | Image-based | N/A | MKV, AVI |
## Font Collection
When distributing ASS subtitles:
1. **Collect fonts** using Aegisub's Font Collector
2. **Embed in MKV** as attachments
3. **Test on clean system** without fonts installed
## Tools
- **Aegisub**: Subtitle editing, font collection, timing
- **MKVToolNix**: Muxing, track properties, font embedding
- **ffmpeg**: Extraction, basic manipulation
- **FontBase**: Font management without installation
## Additional Resources
- **`${CLAUDE_PLUGIN_ROOT}/references/tools.md`** - Tool recommendations
- **`${CLAUDE_PLUGIN_ROOT}/references/encoding-commands.md`** - Subtitle extraction/muxing commands
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.