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.
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.
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.
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.
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
MicroDVD Subtitles
MicroDVD subtitles with frame-based timing.
- Extensions
- .sub
- MIME type
- text
/x -microdvd - Kind
- Text and data
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.
$ cv convert report.sub report.ttml$ cv convert report.sub report.ttmlQuestions.What people ask about SUB to TTML.
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.