SubRip text file format

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 4: Line 4:
 
|subcat2=Subtitle formats
 
|subcat2=Subtitle formats
 
|extensions={{ext|srt}}
 
|extensions={{ext|srt}}
 +
|pronom={{PRONOM|fmt/1218}}
 +
|wikidata={{wikidata|Q27979375}}
 
}}
 
}}
 
The '''SubRip text file format''' (SRT) is used by the (free, Windows-based) SubRip program to save subtitles ripped from video files or [[DVD]]s. Unlike some other programs (e.g., [[VobSub]]) which rip DVD subtitles in their original graphic-based format, SubRip performs OCR (Optical Character Recognition) to convert the subtitles into plain text, allowing for more flexible use in rendering, searching, indexing, and data analysis.
 
The '''SubRip text file format''' (SRT) is used by the (free, Windows-based) SubRip program to save subtitles ripped from video files or [[DVD]]s. Unlike some other programs (e.g., [[VobSub]]) which rip DVD subtitles in their original graphic-based format, SubRip performs OCR (Optical Character Recognition) to convert the subtitles into plain text, allowing for more flexible use in rendering, searching, indexing, and data analysis.
Line 17: Line 19:
 
The timestamp range can optionally be followed by a specific positioning by pixels, in the form <code>X1:''number'' Y1:''number'' X2:''number'' Y2:''number''</code>.
 
The timestamp range can optionally be followed by a specific positioning by pixels, in the form <code>X1:''number'' Y1:''number'' X2:''number'' Y2:''number''</code>.
  
Then the following line(s) contain the actual subtitle/caption text, ended by a blank line. The HTML &lt;b&gt;, &lt;i&gt;, &lt;u&gt;, and &lt;font&gt; tags are allowed.
+
Then the following line(s) contain the actual subtitle/caption text, ended by a blank line. The [[HTML]] &lt;b&gt;, &lt;i&gt;, &lt;u&gt;, and &lt;font&gt; tags are allowed.
  
 
== Links ==
 
== Links ==

Latest revision as of 01:38, 15 June 2019

File Format
Name SubRip text file format
Ontology
Extension(s) .srt
PRONOM fmt/1218
Wikidata ID Q27979375

The SubRip text file format (SRT) is used by the (free, Windows-based) SubRip program to save subtitles ripped from video files or DVDs. Unlike some other programs (e.g., VobSub) which rip DVD subtitles in their original graphic-based format, SubRip performs OCR (Optical Character Recognition) to convert the subtitles into plain text, allowing for more flexible use in rendering, searching, indexing, and data analysis.

The WebVTT format, a W3C draft in 2014, has some similarities to this format.

[edit] Format

The format is based on plain text with CR+LF as the line separator (though Unix-style LF/newline is sometimes found). Some HTML tags are sometimes used in the captions for such things as indicating bold or italic text.

Each subtitle is represented as a group of lines (separated from other subtitles by a blank line). The first line has a number (assigned sequentially to each title); the second line has a timestamp range within the video being captioned, with times expressed in the format hours:minutes:seconds,milliseconds and the start and end of the range separated by --> .

The timestamp range can optionally be followed by a specific positioning by pixels, in the form X1:number Y1:number X2:number Y2:number.

Then the following line(s) contain the actual subtitle/caption text, ended by a blank line. The HTML <b>, <i>, <u>, and <font> tags are allowed.

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox