ttml
What is a .ttml file?
application/ttml+xml
TTML (Timed Text Markup Language, .ttml, also called DFXP) is a W3C XML format for timed text and captions. It wraps timed paragraphs in a tt document with styling and layout regions, and underlies broadcast and streaming caption profiles like IMSC, SMPTE-TT, and EBU-TT.
How to use a .ttml file
Use an example .ttml file to test XML caption parsers, TTML/IMSC players, and conversion to or from SRT, VTT, and SCC.
Download example .ttml files
- TTML Captions (DFXP)A TTML (Timed Text Markup Language / DFXP) caption document — timed XML paragraphs with a styling region — carrying the same captions, for testing XML caption parsers and IMSC players.
- TTML — Intentionally Corrupt: Unclosed ElementAn intentionally corrupt TTML document with an unclosed p element, making it not well-formed XML. Any conforming XML parser must reject it outright — which is exactly the useful property, since it distinguishes real XML parsing from regex-based caption scraping that would happily extract both cues.
- TTML — IMSC Nested Spans and RegionsTTML using the features broadcast caption profiles rely on: two layout regions, named styles including a text outline, a declared frame rate and media time base, and spans nested two deep so styles cascade. Converting this to SubRip necessarily flattens all of it. Tests whether a TTML implementation resolves style inheritance or only reads the leaf text.