Misplaced Pages

SubRip: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 14:00, 22 August 2013 edit36.76.181.7 (talk) With specific positioning and styling← Previous edit Revision as of 15:46, 22 August 2013 edit undoLexein (talk | contribs)Extended confirmed users, Rollbackers17,577 edits Undid damage to formatting. Undid revision 569725938 by 36.76.181.7 (talk)Tag: nowiki addedNext edit →
Line 55: Line 55:
1 1
00:00:10,500 --> 00:00:13,000 X1:63 X2:503 Y1:43 Y2:438 00:00:10,500 --> 00:00:13,000 X1:63 X2:503 Y1:43 Y2:438
<nowiki><i></nowiki>Elephant's Dream<nowii></nowiki> <nowiki><i></nowiki>Elephant's Dream<nowiki></i></nowiki>
<br/><!-- blank line here --> <br/><!-- blank line here -->
2 2
00:00:15,000 --> :00:18,000 X1:503 X2:503 Y1:438 Y2:438 00:00:15,000 --> 00:00:18,000 X1:503 X2:503 Y1:438 Y2:438
<nowiki><font color="cyan"></nowiki>At the <nowiki><font color="cyan"></nowiki>At the left we can see...<nowiki></font></nowiki>{{Citation needed|date=July 2013}}
<br/><!-- blank line here-->
left we can see...<nowiki></font></nowiki>{{Citation needed|date=July 2013}}
<br/><!-- blank line


====WebVTT variant==== ====WebVTT variant====

Revision as of 15:46, 22 August 2013

SubRip
Developer(s)Brain, Zuggy
Stable release1.50b4 / November 7, 2006 (2006-11-07)
Preview release1.50b5 / April 30, 2011 (2011-04-30)
Written inDelphi
Operating systemMicrosoft Windows
Available inEnglish
TypeSubtitle editor
LicenseGPL
Websitezuggy.wz.cz

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

SubRip (format)
Filename extension .srt

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.

  1. A numeric counter identifying each sequential subtitle
  2. The time that the subtitle should appear on the screen, followed by " --> " and the time it should disappear
  3. Subtitle text itself on one or more lines
  4. A blank line containing no text indicating the end of this subtitle

SubRip (.srt) structure examples

Plain

1
00:03:10,500 --> 00:00:13,000
Elephant's Dream

2 00:00:15,000 --> 00:00:18,000 At the left we can see...

With specific positioning and styling

1
00:00:10,500 --> 00:00:13,000 X1:63 X2:503 Y1:43 Y2:438
<i>Elephant's Dream</i>

2 00:00:15,000 --> 00:00:18,000 X1:503 X2:503 Y1:438 Y2:438 <font color="cyan">At the left we can see...</font>

WebVTT variant

WEBVTT

00:00.000 --> 00:14.999 Elephant's <c.dream>Dream</c>
NOTE CSS style to be defined later
00:15.000 --> 00:18.000 align:end line:10% At the <i>left</i> we can <b>see</b>...
NOTE Relative and percentage based positioning
00:18.167 --> 00:22.000 At the right <00:20.000>we can see the...
NOTE Karaoke style split line

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 - <b> ... </b> or {b} ... {/b}
  • Italic - <i> ... </i> 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, ...):

See also

Notes

  1. ^ Zuggy, DVD, November 6, 2006.
  2. Zuggy, Home
  3. Frogger13 (April 30, 2011). SubRip 1.50 Beta 5 (unofficial). Doom9.org.
  4. Thaureaux 2007, pp. 131–134
  5. Zuggy, News, entry dated May 28, 2005.
  6. Thaureaux 2007, p. 132
  7. Thaureaux 2007, p. 136
  8. ^ Zuggy, Guide.
  9. Thaureaux 2007, p. 137
  10. ^ "SRT Subtitles". matroska.org. CoreCodec Inc. Retrieved 2010-08-19.
  11. Devlin, Ian (2012). HTML 5 Multimedia. Peachpit Press. p. 175. Retrieved May 11, 2013.
  12. Devlin, Ian (2012). HTML 5 Multimedia. Peachpit Press. p. 182. Retrieved May 11, 2013.
  13. SubRip (.SRT) subtitles support in players - ale5000.altervista.org
  14. 陈波, 杨涛 (2006). 实用工具软件玩家攻略. 清华大学出版社. pp. 75–76. ISBN 978-7-302-11994-4. Retrieved 2010-09-11.
  15. 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.
  16. Staff (September 2003). "A DivX Player for the Living Room" (Neuston Maestro DVX-1201). Review. hardwaremag.com; Singapore HWM.
  17. tokig (July 13, 2003). "Review of KiSS DP-500 - Playback". nordichardware.com; Nordic Hardware.
  18. Argosy Media Player HV335T HDD(HD1080p) Product page argosy.com; Argosy, 2009.
  19. Cericola, Rachel (2009-12-08). Western Digital WD TV Live HD Media Player Review. bigpicturebigsound.com; Big Picture Big Sound.
  20. Suerte Felipe, Carlo (February 16, 2009). Get stylish with Samsung DVD-F1080. Manila Bulletin Publications. Retrieved 2010-08-19.
  21. Chisholm and May: p. 82.
  22. Understanding WebSRT format
  23. WebSRT, from the WHATWG HTML draft specification, retrieved 2010-10-14
  24. Kennedy, Antony; de Leon, Inayaili (2011). Pro CSS for High Traffic Websites. Apress. ISBN 978-1-4302-3288-9.
  25. Pfeiffer, Silvia (June 27, 2011). "Recent developments around WebVTT".

References

External links

Categories: