casolorz
casolorz

Reputation: 9544

What is this subtitle format called?

I found a subtitle that goes like this:

<transcript>
<text start="2.906" dur="3">TEXT 1</text>
<text start="7.907" dur="3.914">TEXT 2</text>
......

What is that format called?

Upvotes: 6

Views: 2319

Answers (2)

casolorz
casolorz

Reputation: 9544

Adding &fmt=vtt will actually convert the subtitle but the browser might give an error as this header is returned Content-Type: text/xml but the content is not xml.

Upvotes: 5

VC.One
VC.One

Reputation: 15881

That is Youtube's "Timed Text" transcript format. Based on W3C TTML (see bottom example).

Your shown sample looks like an older version/layout format (eg: videos from 2011 have that similar layout, but 2017 transcripts look slightly different, since now using timedtext format="3").

When you enable CC option on a video that (markup) transcript text is loaded. You can see this by checking "Network" requests in your browser's Developer Tools.

Open timedtext>key= link in new tab to view content of transcript text.

(see below image) :

Edit :
PS: If you want it displayed similar to your posted style, in the timedtext>key= link just edit the ending of the URL from &fmt=srv3 to become &fmt=srv1.

Upvotes: 5

Related Questions