Difference between revisions of "SubViewer"

From VideoLAN Wiki
Jump to navigation Jump to search
m (note 2.0)
(SubRip is related to SubViewer)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The SubViewer (.SUB) format is as follows:
+
__NOTOC__
 +
'''SubViewer''' is a file format for storing [[subtitles]]. A friend of the SubViewer creator developed [[SubRip]] to extract subtitles from DVDs, so the formats are similar. Like SubRip, blank lines separate frames. It may have the [[file extension]] <code>.sub</code>.
  
:[INFORMATION] <-- beginning of optional info section, closing tag required<br>
+
==Specification==
:[TITLE] Title of film.<br>
+
<!-- Keep examples short! -->
:[AUTHOR] Author of film.<br>
+
===SubViewer 1===
:[SOURCE] Arbitrary text<br>
+
A sample SubViewer document may look like;
:[FILEPATH] Arbitrary text<br>
+
<pre>
:[DELAY]    (time in frames to delay all subtitles<br>
+
[INFORMATION] <-- beginning of optional info section, closing tag required
:[COMMENT]  Arbitrary text<br>
+
[TITLE] Title of film.
:[END INFORMATION]<br>
+
[AUTHOR] Author of film.
:[SUBTITLE]  <-- beginning of subtitle section, no closing tag required.<br>
+
[SOURCE] Arbitrary text
:[COLF]&HFFFFFF,[SIZE]12,[FONT]Times New Roman<br>
+
[FILEPATH] Arbitrary text
:00:01:00.10,00:02:00.20<br>
+
[DELAY]    (time in frames to delay all subtitles
:Oh, no.<br>
+
[COMMENT]  Arbitrary text
:The eggs are hatching!<br>
+
[END INFORMATION]
:<blank line><br>
+
[SUBTITLE]  <-- beginning of subtitle section, no closing tag required.
:00:02:00.30,00:03:00.40<br>
+
[COLF]&HFFFFFF,[SIZE]12,[FONT]Times New Roman
:No, never mind, I was hallucinating.<br>
+
00:01:00.10,00:02:00.20
 +
Oh, no.
 +
The eggs are hatching!
  
 +
00:02:00.30,00:03:00.40
 +
No, never mind, I was hallucinating.
 +
</pre>
  
Note: SubViewer 2.0 format, the whole subtitle is written on one line, with line breaks indicated by [br], as follows:
+
===SubViewer 2===
 
+
In SubViewer 2.0 format, the whole subtitle is written on one line, with line breaks indicated by <code>[br]</code>, as follows:
:00:01:00.10,00:02:00.20<br>
+
<pre>
:Oh, no.[br]The eggs are hatching!<br>
+
00:01:00.10,00:02:00.20
 
+
Oh, no.[br]The eggs are hatching!
 +
</pre>
  
 
==References==
 
==References==
 
[http://divxstation.com/article.asp?aId=27 Divxstation] article by Stachken
 
[http://divxstation.com/article.asp?aId=27 Divxstation] article by Stachken
 +
 +
[[Category:Subtitles]]

Latest revision as of 06:18, 6 April 2019

SubViewer is a file format for storing subtitles. A friend of the SubViewer creator developed SubRip to extract subtitles from DVDs, so the formats are similar. Like SubRip, blank lines separate frames. It may have the file extension .sub.

Specification

SubViewer 1

A sample SubViewer document may look like;

[INFORMATION] <-- beginning of optional info section, closing tag required
[TITLE] Title of film.
[AUTHOR] Author of film.
[SOURCE] Arbitrary text
[FILEPATH] Arbitrary text
[DELAY]    (time in frames to delay all subtitles
[COMMENT]  Arbitrary text
[END INFORMATION]
[SUBTITLE]   <-- beginning of subtitle section, no closing tag required.
[COLF]&HFFFFFF,[SIZE]12,[FONT]Times New Roman
00:01:00.10,00:02:00.20
Oh, no.
The eggs are hatching!

00:02:00.30,00:03:00.40
No, never mind, I was hallucinating.

SubViewer 2

In SubViewer 2.0 format, the whole subtitle is written on one line, with line breaks indicated by [br], as follows:

00:01:00.10,00:02:00.20
Oh, no.[br]The eggs are hatching!

References

Divxstation article by Stachken