- SubRip
Infobox file format
name = SubRip
icon =
caption =
extension = .srt
mime =
type code =
uniform type =
magic =
owner =
genre =
container for =
contained by =
extended from =
extended to =
standard = "'SubRip is an
optical character recognition program for Windows which rips (extracts) subtitles and their timings from video files or DVDs, recording them as atext file . "Subrip" is also the name of the subtitle format created by this software. The caption files are named with the extension .SRT. This format is supported by most software video players and subtitle creation programs, detailed in the article Comparison of media players.In practice, SubRip is first configured to correctly detect subtitles in a video file. The correct video codecs (DGMPGDec for DVDs) must be installed, along with
AviSynth . SubRip is configured while displaying a frame with subtitles, including their color, shape of the subtitle area, and any required image manipulation (fattening, contrast adjustments). After trial and fine tuning, extraction is then performed automatically for the entire file during playback.The time format used is hours:minutes:seconds,milliseconds, with the seconds field precise to three decimal places. The
decimal separator used is the comma, since the program was written inFrance , and the line break used is the CR+LF pair. Subtitles are indexed numerically, starting at 1.Versions
SubRip was written by French
programmer "Brain" (& Dub), starting in1999 . OnMarch 3 ,2000 the first version, SubRip 0.5 beta, was released — as all the consecutive versions declared as Beta. His last version was SubRip 0.97 beta — publishedSeptember 8 ,2001 . Afterwards he stopped development, and upon receiving several requests forLinux support Brain released the SubRipsource code under the GPL licence. SubRip is coded with Delphi 5. The original website is now offline, but a copy is viewable at theInternet Archive .Only seven weeks later "T.V. Zuggy" and "Guimli" released their first own version of the program — SubRip 0.98 — that was also acknowledged on Brain's site. For the SubRip 1.50 Beta 3 release (on
January 5 ,2006 ) code has been moved to Delphi 2005 (after a time with Delphi 7). The latest version is 1.50 beta 4. Programming is now mostly done by "ai4spam" who announced in October 2006 that he is going to abandon it after releasing one more beta.Fields
:"Subtitle number" "Start time" "-->" "End time" "X1:Position left" "X2:Position right" "Y1:Position up" "Y2:Position down" "Text of subtitle (one or more lines)" "Blank line"
Display coordinates are optional [ [http://forum.doom9.org/showthread.php?p=470941#post470941 Formal SRT format specification] ] and they aren't handled correctly by most current players [ [http://ale5000.altervista.org/subtitles.htm Comparison table of SRT capabilities of players] ]
Unicode and basicHTML tags such as
,
and
in subtitles are supported by most players, but VLC and some subtitle editors (SubResync, Subtitle Workshop) do not handle these tags well.Note that SubRip is hard to port to Linux because of the language it's written in
Delphi . That being said, SubRip works perfectly well on Linux with Wine.Whoever is looking to implement most of the official and unofficial tags that may exist in a SRT file, should inspect the [http://ale5000.altervista.org/subtitles.htm#a SubRip subtitles capability tester by ale5000]
ample file
100:00:20,000 --> 00:00:24,400In connection with a dramatic increasein crime in certain neighbourhoods,200:00:24,600 --> 00:00:27,800The government is implementing a new policy...
MPlayer tolerates missing index lines as in the example below:00:00:00,000 --> 00:00:00,999I know this..00:00:01,000 --> 00:00:01,999It's a unix system!
With optional display coordinates
100:00:20,000 --> 00:00:24,400 X1:100 X2:600 Y1:050 Y2:100In connection with a dramatic increasein crime in certain neighbourhoods,200:00:24,600 --> 00:00:27,800The government is implementing a new policy...
Conversion
Here is an exemplary python-script "srt2sub.py" which converts subtitles from the
SubRip .srt format into theMicroDVD .sub format.References
ee also
*
Universal Subtitle Format
*SubStation Alpha External links
* [http://membres.lycos.fr/subrip/ Original site] .
* [http://forum.doom9.org/showthread.php?t=93680 SubRip forum (Doom9)]
* [http://www.afterdawn.com/guides/archive/rip_subtitles_with_subrip.cfm SubRip Tutorial (AfterDawn)]
* [http://ale5000.altervista.org/subtitles.htm SubRip subtitles support in players]
Wikimedia Foundation. 2010.