.TTML 文件扩展名

Timed Text Markup Language Subtitles File

开发者 W3C
受欢迎程度
3.9  |  10 
 

什么是 TTML 文件?

A TTML file is a subtitles file saved in the Timed Text Markup Language (TTML) format, which is an extension of the .XML format. It is meant to be played as a subtitles track alongside an accompanying video. Each TTML file contains plain text information that specifies its subtitles' style, timing, and text.

更多信息

在 Microsoft Visual Studio Code 中打开的 .ttml 文件截图
在 Microsoft Visual Studio Code 中打开的 TTML 文件

The World Wide Web Consortium (W3C) created the TTML format to serve as a uniform standard for XML-based subtitles. Each TTML file contains a fixed set of header and body elements used to play subtitles and specify metadata about those subtitles. For example, each TTML file includes a <styling> element that specifies its subtitles' text style and a <language> element that specifics its subtitles' language.

The actual subtitles a TTML file contains are found in its <body> section. Each line of the file's subtitles is written as a separate paragraph (<p></p>), with an accompanying start and end time written in HH:MM:SS:SSS format.

Because TTML is a widely-accepted format, many video players, platforms, and streaming services include support for TTML-based subtitles. For example, YouTube users can upload TTML subtitles alongside their videos.

如何打开 TTML 文件

You can open a TTML file and edit the subtitles it contains in GitHub Atom (multiplatform), Microsoft Visual Studio Code (multiplatform), or any other text or source code editor. Source code editors, like Atom and Visual Studio Code, include syntax highlighting and other features that make editing TTML files easier.

You can use a TTML file to add subtitles to a video in VideoLAN VLC media player (multiplatform). To do so:

  1. Begin playing the video with which you want to use your TTML file.
  2. Select Subtitle → Add Subtitle File....
  3. Navigate to and open your TTML file.
使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开 TTML 文件的程序

分类: 视频
更新时间: 2022-01-27

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Timed Text Markup Language Subtitles 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们