Skip to content

Ass To Srt MCP tool

MCP findutils:ass_to_srt

Flatten an Advanced SubStation Alpha (.ass) or SubStation Alpha (.ssa) subtitle script to plain SubRip (.srt). Reads the Dialogue lines of the [Events] section using the Format line for column order, converts H:MM:SS.cc centisecond timestamps to HH:MM:SS,mmm, strips every {\...} override block, turns \N into a line break, sorts cues by start time and renumbers them from 1. Styles, fonts, colours, positioning and drawing commands are discarded on purpose, because SubRip cannot carry them. Comment lines are ignored.

Arguments

application/json
  • input

    string required

    The .ass or .ssa file contents.

  • keep_empty

    boolean optional

    Keep cues whose text is empty once override tags are removed. Default: false, which drops them. Default false.

Example arguments

Verified
{
  "input": "[Events]\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\nDialogue: 0,0:00:01.00,0:00:04.00,Default,,0,0,0,,{\\an8}Hello there.\\NSecond row.\n"
}