SubRip

SubRip is a free software program for Windows which extracts subtitles and their timings from various video formats to a text file. It is released under the GNU GPL.[3] 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.[4][5]

SubRip (software)
Developer(s)Brain, Zuggy[1]
Stable release
1.57.1 / November 14, 2018 (2018-11-14)[2]
Written inDelphi
Operating systemMicrosoft Windows
Available inEnglish
TypeSubtitle editor
LicenseGPL[1]
Websitezuggy.wz.cz
SubRip Text (file format)
Filename extension
.srt
Magic number1.00
Developed byBrain, Zuggy
Type of formatsubtitles (human-readable text file)
Container forsubtitles and their order and timings
Extended toWebVTT
Open format?Yes
Websitewww.matroska.org/technical/subtitles.html#srt-subtitles

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.[6] It can optionally save the recognized subtitles as bitmaps for later subtraction (erasure) from the source video.[7][8]

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,[9] colors and video processing requirements[10] 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.[11]

SubRip uses AviSynth to extract video frames from source video, and can rip subtitles from all video files supported by that program.

File format

The SubRip file format is described on the Matroska multimedia container format website as "perhaps the most basic of all subtitle formats."[12] 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.

  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[12]

Example:

1
00:02:17,440 --> 00:02:20,375
Senator, we're making
our final approach into Coruscant.

2
00:02:20,476 --> 00:02:22,501
Very good, Lieutenant.

Formatting

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 tags for bold, italic, underline and color:[13]

  • 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)
  • Line position – {\a7} would denote text should appear starting on "line 7."[14]

Nested tags are allowed; some implementations prefer whole-line formatting only.

Compatibility

The SubRip .srt file format is supported by most software video players. For Windows software video players that do not support subtitle playback directly, the VSFilter DirectX filter displays SubRip and other subtitle formats.[15] The SubRip format is supported directly by many subtitle creation and editing tools,[16] and some hardware home media players.[17][18][19][20][21] 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.[22][23]

WebVTT

A format originally called WebSRT (Web Subtitle Resource Tracks) was specified in 2010 by the Web Hypertext Application Technology Working Group for the proposed HTML5 <track> element. It shared the .srt file extension and was based on parts of the SubRip format, but was not fully compatible with it.[24][25] The prospective format was later renamed WebVTT (Web Video Text Track).[26][27] Google's Chrome and Microsoft's Internet Explorer 10 browsers were the first to support <track> 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.[28] The feature had to be enabled in Firefox by going to the "about:config" page and setting the value of "media.webvtt.enabled" to true.[29] YouTube began supporting WebVTT in April, 2013.[30]

Text encoding

SubRip's default output encoding is configured as Windows-1252. However, output options are also given for many Windows code pages as well Unicode encodings, such as UTF-8 and UTF-16, with or without Byte Order Mark (BOM). Therefore, there is no de facto character encoding standard for .srt files, which means that any SubRip file parser must attempt to use Charset detection. Unicode Byte Order Mark (BOM) are typically used to aid detection.

gollark: Perhaps. Or input a code you get from using potatOS.
gollark: Like what?
gollark: Like what, exactly?
gollark: Sounds uninteresting as a mechanic.
gollark: Yes, I'm aware you can do it, but no.

See also

Notes

  1. Zuggy, DVD, November 6, 2006.
  2. SubRip Download on SourceForge
  3. Powers, Shelley (8 August 2011). HTML5 Media: Integrating Audio and Video with the Web. "O'Reilly Media, Inc.". pp. 82–83. ISBN 978-1-4493-1531-3.
  4. Rodriguez-Alsina, Aitor; Talavera, Guillermo; Orero, Pilar; Carrabina, Jordi (2012-06-26). "Subtitle Synchronization across Multiple Screens and Devices". Sensors. 12 (7): 8710–8731. doi:10.3390/s120708710. ISSN 1424-8220. PMC 3444071. PMID 23012513. Most subtitles distributed on the Internet are described in text files that follow the SubRip (.SRT) format
  5. Stanislav, Petr; Švec, Jan; Šmídl, Luboš (2012), Sojka, Petr; Horák, Aleš; Kopeček, Ivan; Pala, Karel (eds.), "Unsupervised Synchronization of Hidden Subtitles with Audio Track Using Keyword Spotting Algorithm", Text, Speech and Dialogue, Springer Berlin Heidelberg, 7499, pp. 422–430, doi:10.1007/978-3-642-32790-2_51, ISBN 978-3-642-32789-6, which is the most common subtitle format in the movie fans community
  6. Thaureaux 2007, pp. 131–134
  7. Zuggy, News, entry dated May 28, 2005.
  8. Thaureaux 2007, p. 132
  9. Thaureaux 2007, p. 136
  10. Zuggy, Guide.
  11. Thaureaux 2007, p. 137
  12. "SRT Subtitles". matroska.org. CoreCodec Inc. Retrieved 2010-08-19.
  13. SubRip (.SRT) subtitles support in players – ale5000.altervista.org
  14. https://superuser.com/questions/642265/moving-subtitle-text-up-in-srt-file-format
  15. 陈波, 杨涛 (2006). 实用工具软件玩家攻略. 清华大学出版社. pp. 75–76. ISBN 978-7-302-11994-4. Retrieved 2010-09-11.
  16. 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.
  17. Staff (September 2003). "A DivX Player for the Living Room" (Neuston Maestro DVX-1201). Review. hardwaremag.com; Singapore HWM.
  18. tokig (July 13, 2003). "Review of KiSS DP-500 – Playback". nordichardware.com; Nordic Hardware.
  19. Argosy Media Player HV335T HDD(HD1080p) Product page Archived 2010-02-08 at the Wayback Machine argosy.com; Argosy, 2009.
  20. Cericola, Rachel (2009-12-08). Western Digital WD TV Live HD Media Player Review. bigpicturebigsound.com; Big Picture Big Sound.
  21. Suerte Felipe, Carlo (February 16, 2009). Get stylish with Samsung DVD-F1080. Manila Bulletin Publications. Retrieved 2010-08-19.
  22. Chisholm and May: p. 82.
  23. "New Captions Feature For Videos". Official YouTube Blog. August 28, 2008.
  24. Understanding WebSRT format
  25. WebSRT, from the WHATWG HTML draft specification, retrieved 2010-10-14
  26. Kennedy, Antony; de Leon, Inayaili (2011). Pro CSS for High Traffic Websites. Apress. ISBN 978-1-4302-3288-9.
  27. Pfeiffer, Silvia (June 27, 2011). "Recent developments around WebVTT".
  28. "Firefox 31 Release Notes".
  29. "Implement the track element".
  30. "Caption File - YouTube Help".

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.