HOME

TheInfoList



OR:

SubRip is a
free software Free software, libre software, libreware sometimes known as freedom-respecting software is computer software distributed open-source license, under terms that allow users to run the software for any purpose as well as to study, change, distribut ...
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.


Software

Using
optical character recognition Optical character recognition or optical character reader (OCR) is the electronics, electronic or machine, mechanical conversion of images of typed, handwritten or printed text into machine-encoded text, whether from a scanned document, a photo ...
, SubRip can extract from live video, video files and DVDs, then record the extracted subtitles and timings as a ''Subrip format''
text file A text file (sometimes spelled textfile; an old alternative name is flat file) is a kind of computer file that is structured as a sequence of lines of electronic text. A text file exists stored as data within a computer file system. In ope ...
. It can optionally save the recognized subtitles as bitmaps for later subtraction (erasure) from the source video. In practice, SubRip is configured with the correct
codec A codec is a computer hardware or software component that encodes or decodes a data stream or signal. ''Codec'' is a portmanteau of coder/decoder. In electronic communications, an endec is a device that acts as both an encoder and a decoder o ...
for the video source, then trained by the user on the specific text area, fonts, styles, colors and video processing requirementsZuggy, Guide. to recognize subtitles. After trial and fine tuning, SubRip can automatically extract subtitles for the whole video source file during its playback. SubRip records the beginning and end times and text for each subtitle in the output text .srt file. SubRip uses AviSynth to extract video frames from source video, and can rip subtitles from all video files supported by that program.


Format

The SubRip file format is described on the
Matroska Matroska (styled Matroška) is a project to create a container format that can hold an unlimited number of video, audio, picture, or subtitle tracks in one file. The Matroska Multimedia Container is similar in concept to other containers like ...
multimedia
container format A container format (informally, sometimes called a wrapper) or metafile is a file format that allows multiple data streams to be embedded into a single file, usually along with metadata for identifying and further detailing those streams. Nota ...
website as "perhaps the most basic of all subtitle formats." SubRip (SubRip Text) files are named with the extension .srt, and contain formatted lines of plain text in groups separated by a blank line. Subtitles are numbered sequentially, starting at 1. The
timecode A timecode (alternatively, time code) is a sequence of numeric codes generated at regular intervals by a timing synchronization system. Timecode is used in video production, show control and other applications which require temporal coordinatio ...
format used is hours:minutes:seconds,milliseconds with time units fixed to two zero-padded digits and fractions fixed to three zero-padded digits (00:00:00,000). The comma (,) is used for fractional separator. # A numeric counter identifying each sequential subtitle # The time that the subtitle should appear on the screen, followed by --> and the time it should disappear # Subtitle text itself on one or more lines # A blank line containing no text, indicating the end of this subtitle Example for '' Star Wars: Episode II – Attack of the Clones'':
1
00:02:16,612 --> 00:02:19,376
Senator, we're making
our final approach into Coruscant.

2
00:02:19,482 --> 00:02:21,609
Very good, Lieutenant.

3
00:03:13,336 --> 00:03:15,167
We made it.

4
00:03:18,608 --> 00:03:20,371
I guess I was wrong.

5
00:03:20,476 --> 00:03:22,671
There was no danger at all.


Markup

Unofficially the format has very basic text formatting, which can be either interpreted or passed through for rendering depending on the processing application. Formatting is derived from
HTML Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets ( ...
tags for bold, italic, underline and color: * Bold – <b>…</b> * Italic – <i>…</i> * Underline – <u>…</u> * Font color – <font color="color name or #code">…</font> Nested tags are allowed; some implementations prefer whole-line formatting only. Also unofficially, text coordinates can be specified at the end of the timestamp line as X1:… X2:… Y1:… Y2:….


Compatibility

The SubRip .srt file format is supported by most software video players. For
Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
software video players that do not support subtitle playback directly, the
VSFilter DirectVobSub (formerly known as VSFilter) is a software add-on for Microsoft Windows (a DirectShow filter) that is able to read external subtitle files and superimposes them on a playing video file. DirectVobSub/VSFilter were formerly part of ...
DirectX Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with "Direct" ...
filter displays SubRip and other subtitle formats. The SubRip format is supported directly by many subtitle creation and editing tools, as well as some hardware home media players. In August 2008,
YouTube YouTube is an American social media and online video sharing platform owned by Google. YouTube was founded on February 14, 2005, by Steve Chen, Chad Hurley, and Jawed Karim who were three former employees of PayPal. Headquartered in ...
added subtitle support to its Flash video player under the "Closed Captioning" option – content producers can upload subtitles in SubRip format.


Text encoding

SubRip's default output encoding is configured as
Windows-1252 Windows-1252 or CP-1252 ( Windows code page 1252) is a legacy single-byte character encoding that is used by default (as the "ANSI code page") in Microsoft Windows throughout the Americas, Western Europe, Oceania, and much of Africa. Initially ...
. However, output options are also given for many
Windows code page Windows code pages are sets of characters or code pages (known as character encodings in other operating systems) used in Microsoft Windows from the 1980s and 1990s. Windows code pages were gradually superseded when Unicode was implemented in Win ...
s as well
Unicode Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
encodings, such as
UTF-8 UTF-8 is a character encoding standard used for electronic communication. Defined by the Unicode Standard, the name is derived from ''Unicode Transformation Format 8-bit''. Almost every webpage is transmitted as UTF-8. UTF-8 supports all 1,112,0 ...
and
UTF-16 UTF-16 (16-bit Unicode Transformation Format) is a character encoding that supports all 1,112,064 valid code points of Unicode. The encoding is variable-length as code points are encoded with one or two ''code units''. UTF-16 arose from an earli ...
, with or without byte order mark (BOM). Therefore, there is no official character encoding standard for .srt files, which means that any SubRip file parser must attempt to use Charset detection. Unicode BOMs are typically used to aid detection.
YouTube YouTube is an American social media and online video sharing platform owned by Google. YouTube was founded on February 14, 2005, by Steve Chen, Chad Hurley, and Jawed Karim who were three former employees of PayPal. Headquartered in ...
only supports UTF-8. The default encoding for subtitle files in
FFmpeg FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing vide ...
is UTF-8. All text in a Matroska™ file is encoded in UTF-8. This means that mkvmerge has to convert every text file it reads as well as every text given on the command line from one character set into UTF-8.


SubViewer

In 1999, Brain created SubRip, and a friend, David Dolinski, created SubViewer, who offered it for download on his personal website. SubViewer was included in the
DivX DIVX (Digital Video Express) is a discontinued digital video format. Created in part by Circuit City, it was an unsuccessful attempt to create an alternative to video rental in the United States. The format's poor reception from consumers resu ...
media player. On August 28, 2008,
YouTube YouTube is an American social media and online video sharing platform owned by Google. YouTube was founded on February 14, 2005, by Steve Chen, Chad Hurley, and Jawed Karim who were three former employees of PayPal. Headquartered in ...
included support for SubViewer and SubRip, allowing existing videos to be retroactively subtitled.


WebVTT

A format originally called WebSRT (Web Subtitle Resource Tracks) was specified in 2010 by the
Web Hypertext Application Technology Working Group The Web Hypertext Application Technology Working Group (WHATWG) is a community of people interested in evolving HTML and related technologies. The WHATWG was founded by individuals from Apple Inc., the Mozilla Foundation and Opera Software, l ...
for the proposed
HTML5 HTML5 (Hypertext Markup Language 5) is a markup language used for structuring and presenting hypertext documents on the World Wide Web. It was the fifth and final major HTML version that is now a retired World Wide Web Consortium (W3C) recommend ...
<track> element. It shared the .srt file extension and was based on parts of the SubRip format, but was not fully compatible with it. The prospective format was later renamed WebVTT (Web Video Text Track). Google's Chrome and Microsoft's Internet Explorer 10 browsers were the first to support tags with WebVTT files for HTML5 videos. Mozilla Firefox implemented WebVTT in its nightly builds (Firefox 24), and as of Firefox 31 (July 24, 2014), Mozilla enabled WebVTT on Firefox by default. YouTube began supporting WebVTT in April, 2013.


See also

*
Closed captioning Closed captioning (CC) is the process of displaying text on a television, video screen, or other visual display to provide additional or interpretive information, where the viewer is given the choice of whether the text is displayed. Closed cap ...
* Timed text * *
Avidemux Avidemux is a free and open-source software application for non-linear video editing and transcoding multimedia files. The developers intend it as "a simple tool for simple video processing tasks" and to allow users "to do elementary things in ...
* List of free television software * MicroDVD * SubStation Alpha * Universal Subtitle Format *
DirectVobSub DirectVobSub (formerly known as VSFilter) is a software add-on for Microsoft Windows (a DirectShow filter) that is able to read external subtitle files and superimposes them on a playing video file. DirectVobSub/VSFilter were formerly part of ...
– able to extract subtitles from a DVD without first extracting the files from it


Notes


References


Citations


Sources

* * * (Software release page.) * * * * * *


External links

* * {{Commons-inline, Commons:Timed Text Subtitling Subtitle file formats Windows multimedia software Free television software