Introduction
MicroDVD is a plain text subtitle format named after an early DivX-era video player. It was very common for downloaded films around the year 2000, alongside SRT, and is still read by most players.
Its times are counted in video frames, not in seconds, so a MicroDVD file only lines
up with a video of the frame rate it was made for. Several other subtitle formats also
use the .sub extension, including the image-based VobSub files that
come with an .idx file.
Structure
The full reference is in Lines and frames and Control codes.
Each subtitle is one line: the start frame in braces, the end frame in braces, then
the text. A vertical bar | breaks the text onto a new line. Formatting
codes in braces, such as {y:i} for italics, apply to the line. Many files
begin with a line for frame 1 whose text is the frame rate, which players use to
convert frames to time.
{1}{1}25.000
{25}{87}Where are we going?
{100}{156}{y:i}Somewhere|we have never been.
Not described
Known, not yet covered
- Viewer: there is no MicroDVD viewer plugin yet; the explorer shows the file as text.
Unknown
- Reference: what the
Pcontrol code means: Wikipedia and FFmpeg disagree, so the page gives both readings. MicroDVD has no formal specification.
Also used for
- VobSub subtitle pictures – Ripped DVD subtitles: a text index pointing into a .sub file of images.
Links
Software
- Subtitle Edit – free subtitle editor that converts MicroDVD to time-based formats such as SRT (Windows, Linux)
- VLC media player – free media player that loads MicroDVD next to the video (Windows, macOS, Linux, mobile)
- mpv – free, minimal media player that reads MicroDVD (Windows, macOS, Linux)
- FFmpeg – command-line tools that convert MicroDVD to other subtitle formats (Windows, macOS, Linux)
Developers
- pysubs2 – reads and writes MicroDVD, SRT, ASS and other subtitle formats (Python)