MicroDVD

Last updated
MicroDVD Subtitle
Filename extension
.sub
Internet media type
text/plain
Developed by Tiamat Software
Initial releaseMarch 7, 2000 (2000-03-07)
Type of format Timed text
Extended from Plain text
Open format?Yes
Free format?Proprietary
Website www.tiasoft.de/mdvdp/

MicroDVD is a subtitle file format for digital video. Its name is derived from the MicroDVD Player, a media player application designed to play DVD videos along with subtitles, originally developed by Tiamat Software. The application was first released in 2000 but development ended in 2001. Media players that support the format are able to interpret MicroDVD subtitles and mix their contents with their corresponding video files.

Contents

Format

Specification

MicroDVD subtitle files have the .sub filename extension. These files may come along with a video file and/or created/modified by the user. Media player applications that support external subtitle files are usually responsible for locating correct .sub files.

MicroDVD subtitle files consist of multiple lines, each defining a portion of the subtitle text that must be displayed between certain given video frames. The line syntax is:

{start-frame}{stop-frame}Text

For example, if "Hello!" is to be displayed during the first 25 frames of a digital video, clip or movie, the corresponding .sub file must contain the line: [1]

{0}{25}Hello!

The duration of the text being displayed depends on the frame rate of the corresponding video file. For example, if the frame rate of the corresponding video file is 25 frames per seconds and the subtitle file in last example is accompanied with, "Hello!" is displayed for one second. The software the MicroDVD Player expects the subtitle file to begin with the tag [BEGIN], and end with the tag [END].

Control Codes

The available control codes and their purpose [2] are given:

The control code y defines font style.

{0}{25}{y:i}Hello!

"Hello!" is displayed in italic.

{0}{25}{y:b}Hello!

"Hello!" is displayed in bold.

{0}{25}{y:u}Hello!

"Hello!" is underlined.

{0}{25}{y:s}Hello!

"Hello!" is stroked.

The control code f defines font name.

{0}{25}{f:fontname}Hello!

"Hello!" is displayed using the defined font, with the string "fontname" determining the desired font. For example:

{0}{25}{f:Arial}Hello!

"Hello!" is displayed in the Arial typeface.

The control code s defines font size.

{0}{25}{s:size}Hello!

"Hello!" is displayed at the defined font size, with the string "size" determining the desired size as an integer number. For example:

{0}{25}{s:10}Hello!

"Hello!" is displayed at the font size of 10.

The control code c defines font color.

{0}{25}{c:$BBGGRR}Hello!

"Hello!" is displayed in a defined color. The color format is: $BBGGRR (8 bits blue, 8 bits green and 8 bits red). For example:

{0}{25}{c:$0000FF}Hello!

"Hello!" is displayed in full intensity red.

Note that this is not standard RGB color model, instead the color order is reversed.

The control code P defines subtitle position relative to video.

{0}{25}{P:X,Y}Hello!

"Hello!" is displayed at the coordinates (X,Y).

Each line in the subtitle normally displays as a single line. However, the pipe character may be used to break a single line into multiple lines. For example:

{0}{25}Hello! How are you?

The above code displays as follows:

Hello! How are you?

On the other hand,

{0}{25}Hello!|How are you?

The above code displays as follows:

Hello!

How are you?

In this case, it is possible to define display values of each line or the whole subtitle line . If the control code is in upper case, it affects the whole subtitle line. If the control code is in lower case, it affects only the line it is contained in. For example:

{0}{25}{Y:i}Hello!|How are you?

The above code will display as two lines of italic text. But,

{0}{25}{y:i}Hello!|{y:b}How are you?

The above code will display as two lines; the first line in italic, and the second line in bold. Note that if no more code is used after a pipe character, the following lines will retain the same formatting. Note that the subtitle positioning code P must be logically always used in uppercase.

It is also possible to use multiple codes at once. Here is an example:

{0}{25}{c:$0000ff}{y:b,u}{f:DeJaVuSans}{s:12}Hello!

"Hello!" will be displayed underlined and in bold, in red and in the DeJaVuSans font at 12 points.

The default display values for a complete subtitle file may be defined using {DEFAULT}, which will override particular line formattings. For example, the following code may be used to display all subtitle line using DeJaVuSans at 10 points and in blue:

{DEFAULT}{C:$FF0000}{F:DeJaVuSans}{S:10}

This line of code may be placed anywhere in the subtitle file. Also note that in this case, all control codes are in uppercase. There is also a code H to define a particular character set to use:

{DEFAULT}{H:Greek}

Defines that the Greek character set should be used. This code can be used only in the {DEFAULT} line.

See also

Related Research Articles

<span class="mw-page-title-main">Closed captioning</span> Process of displaying interpretive texts to screens

Closed captioning (CC) and subtitling are both processes of displaying text on a television, video screen, or other visual display to provide additional or interpretive information. Both are typically used as a transcription of the audio portion of a program as it occurs, sometimes including descriptions of non-speech elements. Other uses have included providing a textual alternative language translation of a presentation's primary audio language that is usually burned-in to the video and unselectable.

Metafont is a description language used to define raster fonts. It is also the name of the interpreter that executes Metafont code, generating the bitmap fonts that can be embedded into e.g. PostScript. Metafont was devised by Donald Knuth as a companion to his TeX typesetting system.

<span class="mw-page-title-main">Typeface</span> Set of characters that share common design features

A typeface is a design of letters, numbers and other symbols, to be used in printing or for electronic display. Most typefaces include variations in size, weight, slope, width, and so on. Each of these variations of the typeface is a font.

<span class="mw-page-title-main">ANSI escape code</span> Method used for display options on video text terminals

ANSI escape sequences are a standard for in-band signaling to control cursor location, color, font styling, and other options on video text terminals and terminal emulators. Certain sequences of bytes, most starting with an ASCII escape character and a bracket character, are embedded into text. The terminal interprets these sequences as commands, rather than text to display verbatim.

<span class="mw-page-title-main">MPlayer</span> Free and open source media player

MPlayer is a free and open-source media player software application. It is available for Linux, OS X and Microsoft Windows. Versions for OS/2, Syllable, AmigaOS, MorphOS and AROS Research Operating System are also available. A port for DOS using DJGPP is also available. Versions for the Wii Homebrew Channel and Amazon Kindle have also been developed.

<span class="mw-page-title-main">WinDVD</span>

WinDVD is a commercial video player and music player software for Microsoft Windows. It enables the viewing of DVD-Video movies on the user's PC. DVD-Video backups stored on hard disk can also be played. The player also can be used to play video and audio files in other formats encoded with different codecs, such as DivX, Xvid, Windows Media Video (video), MP3 and AAC (audio). WinDVD Pro 12 is the latest version with the most features and accommodations. However, competitors such as VLC have completely replaced WinDVD due to the lack of modern features WinDVD provides.

An HTML element is a type of HTML document component, one of several types of HTML nodes. The first used version of HTML was written by Tim Berners-Lee in 1993 and there have since been many versions of HTML. The most commonly used version is HTML 4.01, which became official standard in December 1999. An HTML document is composed of a tree of simple HTML nodes, such as text nodes, and HTML elements, which add semantics and formatting to parts of document. Each element can have HTML attributes specified. Elements can also have content, including other elements and text.

The font family selection in (X)HTML, CSS, and derived systems specifies a list of prioritized fonts and generic family names; in conjunction with correlating font properties, this list determines the particular font face used to render characters. The family selection is available in two forms: in the deprecated (X)HTML <font>...</font> element with its face attribute, and in the CSS font-family property.

A computer font is implemented as a digital data file containing a set of graphically related glyphs. A computer font is designed and created using a font editor. A computer font specifically designed for the computer screen, and not for printing, is a screen font.

CTA-708 is the standard for closed captioning for ATSC digital television (DTV) streams in the United States and Canada. It was developed by the Consumer Electronics sector of the Electronic Industries Alliance, which later became the standalone organization Consumer Technology Association.

<span class="mw-page-title-main">Lucida Grande</span> Font

Lucida Grande is a humanist sans-serif typeface. It is a member of the Lucida family of typefaces designed by Charles Bigelow and Kris Holmes. It is best known for its implementation throughout the macOS user interface from 1999 to 2014, as well as in other Apple software like Safari for Windows. As of OS X Yosemite, the system font was changed from Lucida Grande to Helvetica Neue. In OS X El Capitan the system font changed again, this time to San Francisco.

The Glyph Bitmap Distribution Format (BDF) by Adobe is a file format for storing bitmap fonts. The content takes the form of a text file intended to be human- and computer-readable. BDF is typically used in Unix X Window environments. It has largely been replaced by the PCF font format which is somewhat more efficient, and by scalable fonts such as OpenType and TrueType fonts.

<span class="mw-page-title-main">AviSynth</span> Computer frameserver program

AviSynth is a frameserver program for Microsoft Windows, Linux and macOS initially developed by Ben Rudiak-Gould, Edwin van Eggelen, Klaus Post, Richard Berg and Ian Brabham in May 2000 and later picked up and maintained by the open source community which is still active nowadays. It is free software licensed under the GNU General Public License.

SubRip is a free software program for Microsoft Windows which extracts subtitles and their timings from various video formats to a text file. It is released under the GNU GPL. Its subtitle format's file extension is .srt and is widely supported. Each .srt file is a human-readable file format where the subtitles are stored sequentially along with the timing information. Most subtitles distributed on the Internet are in this format.

<span class="mw-page-title-main">Font</span> Particular size, weight and style of a typeface

In metal typesetting, a font is a particular size, weight and style of a typeface. Each font is a matched set of type, with a piece for each glyph. A typeface consists of various fonts that share an overall design.

<span class="mw-page-title-main">Subtitles</span> Textual representation of events and speech in motion imagery

Subtitles are text representing the contents of the audio in a film, television show, opera or other audiovisual media. Subtitles might provide a transcription or translation of spoken dialogue. Although naming conventions can vary, captions are subtitles that include written descriptions of other elements of the audio like music or sound effects. Captions are thus especially helpful to people who are deaf or hard-of-hearing. Other times, subtitles add information not present in the audio. Localizing subtitles provide cultural context to viewers, for example, by explaining to an unfamiliar American audience that sake is a type of Japanese wine. Lastly, subtitles are sometimes used for humor, like in Annie Hall, where subtitles show the characters' inner thoughts, which contradict what they were saying in the audio.

Universal Subtitle Format (USF) was a CoreCodec project that attempted to create a clean, documented, powerful and easy to use subtitle file format. It is based on XML for flexibility, unicode support, hierarchical system, and ease of administration.

Advanced Content provides interactivity in the HD DVD optical disc format.

<span class="mw-page-title-main">Web typography</span> Publishing considerations for the Web

Web typography, like typography generally, is the design of pages – their layout and typeface choices. Unlike traditional print-based typography, pages intended for display on the World Wide Web have additional technical challenges and – given its ability to change the presentation dynamically – additional opportunities. Early web page designs were very simple due to technology limitations; modern designs use Cascading Style Sheets (CSS), JavaScript and other techniques to deliver the typographer's and the client's vision.

<span class="mw-page-title-main">DVD-Video</span> Format used to store digital video on DVD discs

DVD-Video is a consumer video format used to store digital video on DVD discs. DVD-Video was the dominant consumer home video format in Asia, North America, Europe, and Australia in the 2000s until it was supplanted by the high-definition Blu-ray Disc. Discs using the DVD-Video specification require a DVD drive and an MPEG-2 decoder. Commercial DVD movies are encoded using a combination of MPEG-2 compressed video and audio of varying formats. Typically, the data rate for DVD movies ranges from 3 to 9.5 Mbit/s, and the bit rate is usually adaptive. DVD-Video was first available in Japan on November 1, 1996, followed by a release on March 24, 1997 in the United States—to line up with the 69th Academy Awards that same day.

References

  1. "Example subtitle file".
  2. MicroDVD Player Documentation