This is an old revision of this page, as edited by 90.190.118.91 (talk) at 20:21, 7 September 2013 (→SubRip (.srt) structure examples). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 20:21, 7 September 2013 by 90.190.118.91 (talk) (→SubRip (.srt) structure examples)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)Developer(s) | Brain, Zuggy |
---|---|
Stable release | 1.50b4 / November 7, 2006 (2006-11-07) |
Preview release | 1.50b5 / April 30, 2011 (2011-04-30) |
Written in | Delphi |
Operating system | Microsoft Windows |
Available in | English |
Type | Subtitle editor |
License | GPL |
Website | zuggy |
SubRip is a software program for Windows which "rips" (extracts) subtitles 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 software
Using optical character recognition, 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 .srt
file.
SubRip uses AviSynth to extract video frames from source video, and can rip subtitles from all video files supported by that program.
SubRip text file format
Filename extension | .srt |
---|---|
Type of format | Subtitle File Format |
The SubRip file format, as reported on the Matroska multimedia container format website, is "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 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 fractional separator used is the comma, since the program was written in France. The subtitle separator, a blank line, is the double byte MS-DOS CR+LF pair, though the POSIX single byte linefeed is also well supported.
- 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
1 00:00:05 --> 00:00:08 Ahaah... Technotiiger
2 00:00:08 --> 00:00:10 2013
3 00:00:10 --> 00:00:14 te te te te-chno-tiiger
4 00:00:16 --> 00:00:20 Yeeess... Technotiiger on tagasi
5 00:00:37 --> 00:00:45
- ,: Technotiiger on täna majas. Ma küsin sult millist tümpsu sul on vaja :,:
6 00:00:45 --> 00:00:52
7
00:01:08 --> 00:01:12
Sa võid ju käituda nii, nagu saa ei hooliks
8 00:01:13 --> 00:01:14 ühes käes on suits ja teises poolik
9 00:01:15 --> 00:01:18 Väikelinnarõõmud - siin pole midagi teha
10 00:01:19 --> 00:01:22 ja kui ongi midagi, siis keegi raudselt segab
11 00:01:23 --> 00:01:25 vähe närvi ei aja igaüks teab su nime
12 00:01:26 --> 00:01:29 ma näen küll, et sa vahid, ega ma pole pime
13 00:01:30 --> 00:01:33 ja kui isegi ütlen, et ma tegelt ei joo
14 00:01:34 --> 00:01:37 kuulen linna pealt ringiga hoopis teise loo
15 00:02:06 --> 00:02:08 Tervist, palju selle eest saaks muidu?
16 00:02:10 --> 00:02:12 Töötab ja värki
17 00:02:41 --> 00:02:45 sul pole mõtet siia sattuda, see pole Tallinn
18 00:02:46 --> 00:02:49 kuid vahel mulle tundub siin on elada kallim
19 00:02:49,700 --> 00:02:54 meil on Selver, meil on Maxima, riided saan kaltsust
20 00:02:55 --> 00:02:58 ja ülejäänud kraami toon rongiga Tartust
21 00:02:59 --> 00:03:02 kui mul' midagi ütled, siis sõpru mul on palju
22 00:03:03 --> 00:03:06 ja usu mind nad ei mõista nalju
23 00:03:07 --> 00:03:10 ma ei väida, et siin elada ei oleks hea
24 00:03:11 --> 00:03:14 lihtsalt kui sul pole tuttavaid, siis sul ei vea
Formatting
Very basic text formatting is usually handled correctly in .srt files, including bold, italic, underline and color, although this depends on the player:
- Bold – ''' ... ''' or {b} ... {/b}
- Italic – '' ... '' or {i} ... {/i}
- Underline – <u> ... </u> or {u} ... {/u}
- Font color – <font color="color name or #code"> ... </font> (as in HTML)
Nested tags are allowed; some implementations prefer whole-line formatting only.
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 VSFilter 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.
WebVTT
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. The main differences are:
- WebVTT's first line starts with WEBVTT after the optional UTF-8 byte order mark
- there is space for optional header data between the first line and the first cue
- Timecode fractional values are separated by a full stop instead of a comma
- Timecode hours are optional
- The frame numbering/identification preceding the timecode is optional
- Metadata frames identified by the word NOTE can be added
- Only supports extended characters as UTF-8
- CSS in a separate file with the same name, except with a ".css" extension for C tags is used instead of the FONT tag
Text Encoding
The SubRip .srt
file format really only supports the Microsoft Windows text encoding default of CP-1252 (commonly, but incorrectly referred to as ANSI). A Unicode byte order mark can be added to support any Unicode encoding with UTF-8 being preferred for its compatibility with CP-1252. However a number of embedded hardware-based players only have support for non-Unicode fonts due to the licensing costs associated with the commercial fonts used.
SubRip .srt file encoding tools
Software tools to encode .srt
subtitle files into video containers (avi, mkv, mp4, ...):
- FFmpeg – FFmpgeg supports also the Subtitles Character Encoding Conversion
- GPAC / MP4Box
- iSubtitle (MacOS)
- XMedia Recode – XMedia Recode is a free All-In-One video- and audio converter tool for Windows.
- YAMB (works with the command line version of MP4Box, e.g. MP4Box 0.4.6 rev2698)
See also
- Comparison of video player software, subtitle ability
- Avidemux
- MicroDVD
- SubStation Alpha
- Universal Subtitle Format
- DirectVobSub is able to extract subtitles from a DVD without first extracting the files from it.
Notes
- ^ Zuggy, DVD, November 6, 2006.
- Zuggy, Home
- Frogger13 (April 30, 2011). SubRip 1.50 Beta 5 (unofficial). Doom9.org.
- Thaureaux 2007, pp. 131–134
- Zuggy, News, entry dated May 28, 2005.
- Thaureaux 2007, p. 132
- Thaureaux 2007, p. 136
- ^ Zuggy, Guide.
- Thaureaux 2007, p. 137
- ^ "SRT Subtitles". matroska.org. CoreCodec Inc. Retrieved 2010-08-19.
- SubRip (.SRT) subtitles support in players – ale5000.altervista.org
- 陈波, 杨涛 (2006). 实用工具软件玩家攻略. 清华大学出版社. pp. 75–76. ISBN 978-7-302-11994-4. Retrieved 2010-09-11.
- Martin, Chris (Dec 29, 2009). "15 best subtitle tools". aboutonlinetips.com; Binary Head. All apps listed support SubRip(SRT), but the article is specific about 7 of 15.
- Staff (September 2003). "A DivX Player for the Living Room" (Neuston Maestro DVX-1201). Review. hardwaremag.com; Singapore HWM.
- tokig (July 13, 2003). "Review of KiSS DP-500 – Playback". nordichardware.com; Nordic Hardware.
- Argosy Media Player HV335T HDD(HD1080p) Product page argosy.com; Argosy, 2009.
- Cericola, Rachel (2009-12-08). Western Digital WD TV Live HD Media Player Review. bigpicturebigsound.com; Big Picture Big Sound.
- Suerte Felipe, Carlo (February 16, 2009). Get stylish with Samsung DVD-F1080. Manila Bulletin Publications. Retrieved 2010-08-19.
- Chisholm and May: p. 82.
- Understanding WebSRT format
- WebSRT, from the WHATWG HTML draft specification, retrieved 2010-10-14
- Kennedy, Antony; de Leon, Inayaili (2011). Pro CSS for High Traffic Websites. Apress. ISBN 978-1-4302-3288-9.
- Pfeiffer, Silvia (June 27, 2011). "Recent developments around WebVTT".
References
- Thaureaux, Thierry (2007). DivX - Copiez vos vidéos sur CD (Nouvelle édition) (in French). Herblain, FR: Editions ENI. pp. 133–136. ISBN 978-2-7460-3812-7.
{{cite book}}
: Cite has empty unknown parameter:|coauthors=
(help); Invalid|ref=harv
(help) - Zuggy, T.V. "SubRip home". zuggy.wz.cz. Retrieved 2010-08-19.
{{cite web}}
: Invalid|ref=harv
(help) - Zuggy, T.V (December 8, 2005). "SubRip 1.20/1.50b – DVD subtitles ripper". zuggy.wz.cz. Retrieved 2010-01-10.
{{cite web}}
: Invalid|ref=harv
(help) (Software release page.) - Zuggy, T.V (August 1, 2007). "News page". zuggy.wz.cz. Retrieved 2009-07-02.
{{cite web}}
: Invalid|ref=harv
(help) - Zuggy, T.V (June 17, 2005). "Guide: Ripping subtitles from video files using SubRip". zuggy.wz.cz. Retrieved 2009-07-02.
- Xiao, Han (March 27, 2009). "Constructing Parallel Corpus from Movie Subtitles". In Li, Wenjie; Mollá-Aliod, Diego (eds.). Proc. Int. Conf. on Computer Processing of Oriental Languages. Hong Kong: Springer. pp. 329–336. doi:10.1007/978-3-642-00831-3_32. Retrieved 2009-07-02.
{{cite book}}
: Invalid|ref=harv
(help); Unknown parameter|coauthors=
ignored (|author=
suggested) (help) - Chisholm, Wendy; May, Matt (2008). Universal design for Web applications. O'Reilly Media. ISBN 978-0-596-51873-8. Retrieved 2010-06-28.
{{cite book}}
: Invalid|ref=harv
(help)CS1 maint: multiple names: authors list (link) - Bruegmann, Ulrich (2006). Divx R.t.f.m. – Divx 6 (in German). Lulu.com. ISBN 978-1-84728-676-5.
{{cite book}}
: Invalid|ref=harv
(help)
External links
- SubRip Home
- .SRT SubRip file format specification. Doom9.org. April 7, 2004. Derived from the SubRip source code in 2004.
- WebVTT Standard
- SubRip (.SRT) subtitle features and support in players – comparison of .srt feature handling in a range of common players