SubRip
Encyclopedia
SubRip is a software program for Windows
which "rip
s" (extracts) subtitle
s and their timings from video. It is free software
, released under the GNU
GPL. SubRip is also the name of the widely used and broadly compatible subtitle text file format created by this software.
, SubRip can extract from live video, video files and DVDs, then record the extracted subtitles and timings as a Subrip format text file
. 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
for the video source, then trained by the user on the specific text area, fonts, styles, colors and video processing requirements 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
SubRip uses AviSynth
to extract video frames from source video, and can rip subtitles from all video files supported by that program.
pair. Subtitles are numbered sequentially, starting at 1.
00:00:20,000 --> 00:00:24,400
Altocumulus clouds occur between six thousand
2
00:00:24,600 --> 00:00:27,800
and twenty thousand feet above ground level.
DirectX
filter displays SubRip and other subtitle formats.
The SubRip format is supported directly by many subtitle creation/editing tools,
and some hardware home media players.
In August 2008, YouTube added subtitle support to its Flash
video player under the "Closed Captioning" option - content producers can upload subtitles in SubRip format.
A format called WebSRT (Web Subtitle Resource Tracks) was as of October 2010 being specified by the Web Hypertext Application Technology Working Group for the proposed HTML5
The prospective format was later renamed WebVTT.
Little Endian
, Unicode
Big Endian
, UTF-8
. Byte order mark
can be used to define encoding unambiguously. Further Unicode support is up to media player.
Microsoft Windows
Microsoft Windows is a series of operating systems produced by Microsoft.Microsoft introduced an operating environment named Windows on November 20, 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces . Microsoft Windows came to dominate the world's personal...
which "rip
Ripping
Ripping is the process of copying audio or video content to a hard disk, typically from removable media. The word is used to refer to all forms of media. Despite the name, neither the media nor the data is damaged after extraction....
s" (extracts) subtitle
Subtitle (captioning)
Subtitles are textual versions of the dialog in films and television programs, usually displayed at the bottom of the screen. They can either be a form of written translation of a dialog in a foreign language, or a written rendering of the dialog in the same language, with or without added...
s and their timings from video. It is free software
Free software
Free software, software libre or libre software is software that can be used, studied, and modified without restriction, and which can be copied and redistributed in modified or unmodified form either without restriction, or with restrictions that only ensure that further recipients can also do...
, released under the GNU
GNU
GNU is a Unix-like computer operating system developed by the GNU project, ultimately aiming to be a "complete Unix-compatible software system"...
GPL. SubRip is also the name of the widely used and broadly compatible subtitle text file format created by this software.
SubRip software
Using optical character recognitionOptical character recognition
Optical character recognition, usually abbreviated to OCR, is the mechanical or electronic translation of scanned images of handwritten, typewritten or printed text into machine-encoded text. It is widely used to convert books and documents into electronic files, to computerize a record-keeping...
, SubRip can extract from live video, video files and DVDs, then record the extracted subtitles and timings as a Subrip format text file
Text file
A text file is a kind of computer file that is structured as a sequence of lines of electronic text. A text file exists within a computer file system...
. 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
Codec
A codec is a device or computer program capable of encoding or decoding a digital data stream or signal. The word codec is a portmanteau of "compressor-decompressor" or, more commonly, "coder-decoder"...
for the video source, then trained by the user on the specific text area, fonts, styles, colors and video processing requirements 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
AviSynth
AviSynth is a frameserver program for Microsoft Windows developed by Ben Rudiak-Gould, Edwin van Eggelen, Klaus Post, Richard Berg, Ian Brabham and others. It is free software under GNU GPL license.-Scripting video editor:...
to extract video frames from source video, and can rip subtitles from all video files supported by that program.
Specifications
The SubRip file format is "perhaps the most basic of all subtitle formats." SubRip files are named with the extensionFilename extension
A filename extension is a suffix to the name of a computer file applied to indicate the encoding of its contents or usage....
.srt
, and contain formatted plain text. The time format used is hours:minutes:seconds,milliseconds. The decimal separator used is the comma, since the program was written in France. The line break used is often the CR+LFNewline
In computing, a newline, also known as a line break or end-of-line marker, is a special character or sequence of characters signifying the end of a line of text. The name comes from the fact that the next character after the newline will appear on a new line—that is, on the next line below the...
pair. Subtitles are numbered sequentially, starting at 1.
- Subtitle number
- Start time --> End time
- Text of subtitle (one or more lines)
- Blank line
SubRip .srt file example
100:00:20,000 --> 00:00:24,400
Altocumulus clouds occur between six thousand
2
00:00:24,600 --> 00:00:27,800
and twenty thousand feet above ground level.
Compatibility
The SubRip.srt
file format is supported by most software video players listed in Comparison of video player software. For Windows software video players that do not support subtitle playback directly, the VSFilterVSFilter
DirectVobSub formerly known as VSFilter is a software add-on for Microsoft Windows that is able to read external subtitle files and superimposes them on a playing video file....
DirectX
DirectX
Microsoft DirectX is a collection of application programming interfaces for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with Direct, such as Direct3D, DirectDraw, DirectMusic, DirectPlay,...
filter displays SubRip and other subtitle formats.
The SubRip format is supported directly by many subtitle creation/editing tools,
and some hardware home media players.
In August 2008, YouTube added subtitle support to its Flash
Adobe Flash
Adobe Flash is a multimedia platform used to add animation, video, and interactivity to web pages. Flash is frequently used for advertisements, games and flash animations for broadcast...
video player under the "Closed Captioning" option - content producers can upload subtitles in SubRip format.
WebSRT
A format called WebSRT (Web Subtitle Resource Tracks) was as of October 2010 being specified by the Web Hypertext Application Technology Working Group for the proposed HTML5
<track>
element. It shared the .srt
extension and was "broadly based on" (parts of) the SubRip format, but was not fully compatible with SubRip.The prospective format was later renamed WebVTT.
Unicode support
The SubRip.srt
file format supports any text encoding including ANSI, UnicodeUnicode
Unicode is a computing industry standard for the consistent encoding, representation and handling of text expressed in most of the world's writing systems...
Little Endian
Endianness
In computing, the term endian or endianness refers to the ordering of individually addressable sub-components within the representation of a larger data item as stored in external memory . Each sub-component in the representation has a unique degree of significance, like the place value of digits...
, Unicode
Unicode
Unicode is a computing industry standard for the consistent encoding, representation and handling of text expressed in most of the world's writing systems...
Big Endian
Endianness
In computing, the term endian or endianness refers to the ordering of individually addressable sub-components within the representation of a larger data item as stored in external memory . Each sub-component in the representation has a unique degree of significance, like the place value of digits...
, UTF-8
UTF-8
UTF-8 is a multibyte character encoding for Unicode. Like UTF-16 and UTF-32, UTF-8 can represent every character in the Unicode character set. Unlike them, it is backward-compatible with ASCII and avoids the complications of endianness and byte order marks...
. Byte order mark
Byte Order Mark
The byte order mark is a Unicode character used to signal the endianness of a text file or stream. Its code point is U+FEFF. BOM use is optional, and, if used, should appear at the start of the text stream...
can be used to define encoding unambiguously. Further Unicode support is up to media player.
See also
- Comparison of video player software, subtitle ability
- AvidemuxAvidemuxAvidemux is a free and open-source video editing program designed for video editing and video processing. It is written in C++, and uses either the GTK+ or Qt.- Features :...
- MicroDVDMicroDVDMicroDVD is a subtitle file format for digital video. Its name is derived from 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...
- SubStation AlphaSubStation AlphaSubStation Alpha , abbreviated SSA, is a subtitle file format created by CS Low that allows for more advanced subtitles than the conventional SRT and similar formats. This format can be rendered with VSFilter in conjunction with a DirectShow-aware video player , or MPlayer with the SSA/ASS library...
- Universal Subtitle FormatUniversal Subtitle FormatUniversal Subtitle Format is a CoreCodec project to create a clean, documented, powerful and easy to use subtitle file format. It is based on XML for some of the following reasons: flexibility, unicode support, a hierarchical system, and ease of administration.USF subtitles are usually used in...
External links
- SubRip Home
- .SRT SubRip file format specification. Doom9.org. April 7, 2004. Derived from the SubRip source code in 2004.