# Srt Subtitles

> Parse, search, and process .srt (SubRip) subtitle files. SRT is plain text — blokken gescheiden door lege regels, timestamps in HH:MM:SS,mmm formaat. Parser en zoekfunctie in scripts/parse-srt.py.

- Skill: `s3yed/srt-subtitles-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add s3yed/srt-subtitles-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/s3yed/srt-subtitles-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: S3YED (https://skillmd.com/u/s3yed)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/s3yed/srt-subtitles-2

---


## File format

```
1
00:00:01,500 --> 00:00:04,000
This is the subtitle text
                             ← lege regel
2
00:00:05,000 --> 00:00:08,500
Line one
Line two                      ← meerdere regels toegestaan
```

- Sequentiële nummers (1, 2, 3...)
- Timestamps: `HH:MM:SS,mmm --> HH:MM:SS,mmm`
- Tekst: plain text, kan `<i>`, `<b>`, `<font>` HTML-tags bevatten
- Blokken gescheiden door lege regel (`\n\n`)

## How to read

SRT is plain text — no converter needed.

```bash
# From Drive
gog drive download <FILE_ID> --out /tmp/sub.srt && cat /tmp/sub.srt

# Local file
cat file.srt
read_file path="file.srt"
```

## Parsed output (script)

```bash
cat file.srt | python3 scripts/parse-srt.py
```

Returns JSON array:
```json
[
  {"seq": 1, "start": "00:00:01,500", "end": "00:00:04,000", "text": "Hello"},
  {"seq": 2, "start": "00:00:05,000", "end": "00:00:08,500", "text": "Line one\\nLine two"}
]
```

## Use cases

- Extract text from video subtitles for search/indexing
- Translate subtitles (feed parsed text to LLM)
- Repurpose subtitle text for content
- Transcript extraction from video content in Drive===ME:srt-subtitles

