Introduction
SubViewer is a plain text subtitle format using the .sub extension. Subtitle software knows two versions, SubViewer 1.0 and SubViewer 2.0, which time their cues differently.
Other formats also use .sub, among them MicroDVD.
Structure
This follows the reader and writer in Subtitle Edit.
Version 1.0
A header of tags such as [TITLE], [AUTHOR], [SOURCE] and [DELAY] ends with the line ******** START SCRIPT ********. Each cue is a start time on its own line, the text, then an end time. A | breaks the text into lines.
[hh:mm:ss]
text|more text
[hh:mm:ss]
The file closes with [end] and ******** END SCRIPT ********.
Version 2.0
The header runs from [INFORMATION] to [END INFORMATION], followed by [SUBTITLE] and style settings such as [COLF], [STYLE], [SIZE] and [FONT]. Each cue has a time line and a text line, with [br] for line breaks.
00:00:06.61,00:00:13.75
text1[br]text2
Not described
This page is a short summary. The full layout is not yet described here, and there is no viewer for SubViewer files.
Known, not yet covered
- Reference: the meaning of each header tag and style setting.
- Viewer: reading and showing the subtitles.
Also used for
- MicroDVD subtitles – Text subtitles timed in frames: start frame, end frame and text on one line.
- VobSub subtitle pictures – Ripped DVD subtitles: a text index pointing into a .sub file of images.
Links
Software
- Subtitle Edit – subtitle editor that reads and writes SubViewer 1.0 and 2.0
- FFmpeg – media toolkit with a SubViewer reader
Reference
- SubViewer10.cs – Subtitle Edit's version 1.0 code
- SubViewer20.cs – Subtitle Edit's version 2.0 code
- subviewerdec.c – FFmpeg's SubViewer reader