Convert SUB to TTML

Turn SUB files into TTML. Frame numbers become times at the frame rate in the file's first line, or 23.976 fps without one, with | line breaks in one bottom-centered region; styling is dropped.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop SUB files on the dialor turn it to pick what to do

MicroDVD subtitles as TTML.Frame-based timing becomes clock times in one TTML file.

  1. What you get

    A TTML file with your subtitles in it. TTML is the XML standard of broadcasters and streaming services, and the output is one file.

    A SUB file times each line by frame number. The conversion turns those numbers into times at the frame rate given in the first line of the file. If the file has no frame rate there, it uses 23.976 fps.

  2. How lines are placed

    The | character in a SUB line marks a line break. In the TTML file it becomes a line break inside the same subtitle.

    All subtitles go into one region, centered at the bottom of the frame.

  3. What it leaves behind

    Styling is dropped. Anything in the SUB file that sets how text looks is not carried into the TTML file, so the text arrives plain.

    The conversion has no options. The frame rate comes from the file itself, so check the first line if your times look off.

  4. When it fails

    If the file cannot be parsed, the conversion stops with input_corrupted. No TTML file is made in that case.

    To go the other way, use TTML to SUB. For other formats, see every SUB conversion.

SUB and TTML.What each format is.

The formats

From · SUB

MicroDVD Subtitles

MicroDVD subtitles with frame-based timing.

Extensions
.sub
MIME type
text/x-microdvd
Kind
Text and data
To · TTML

TTML Subtitles

TTML subtitles, the XML standard of broadcasters and streaming services, iTunes Timed Text included.

Extensions
.ttml .dfxp .itt
MIME type
application/ttml+xml
Kind
Text and data

In your code.The same SUB to TTML conversion through the API, for your app or your agent.

terminal
$ cv convert report.sub report.ttml
$ cv convert report.sub report.ttml

Questions.What people ask about SUB to TTML.

01OF 04

It uses the rate in the first line of the SUB file. Without one, it uses 23.976 fps.

They sit in one region, centered at the bottom. Lines split with | stay as separate lines inside one subtitle.

No. Styling is dropped, and only the text and its timing are converted.

The file could not be parsed. The conversion stops and gives no TTML file.

More conversions.Other ways in and out of SUB and TTML.