Skip to content

Instantly share code, notes, and snippets.

@TakuSemba
Created March 9, 2020 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TakuSemba/9a059f9066bf7cdf1b0c5a58e425ad1f to your computer and use it in GitHub Desktop.
Save TakuSemba/9a059f9066bf7cdf1b0c5a58e425ad1f to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<tt xmlns="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" ttp:timeBase="media" ttp:frameRate="24" xml:lang="en">
<head>
<metadata>
<ttm:title>Sample TTML</ttm:title>
</metadata>
<styling>
<style xml:id="s1" tts:textAlign="center" tts:fontFamily="Arial" tts:fontSize="100%"/>
</styling>
<layout>
<region xml:id="bottom" tts:displayAlign="after" tts:extent="80% 40%" tts:origin="10% 50%"/>
<region xml:id="top" tts:displayAlign="before" tts:extent="80% 40%" tts:origin="10% 10%"/>
</layout>
</head>
<body region="bottom" style="s1">
<div>
<p xml:id="subtitle1" begin="00:00:01.375" end="00:00:05.750" style="s1" region="top">Hello</p>
<p xml:id="subtitle2" begin="00:00:05.916" end="00:00:10.216" style="s1">One More Hello</p>
<p xml:id="subtitle3" begin="00:00:10.418" end="00:00:15.083" style="s1" region="top">Top Hello</p>
</div>
</body>
</tt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment