SubRip

Last updated
SubRip (software)
Developer(s) Brain, [1] T.V. Zuggy, [2] [3] mrSHADOW, [2] Yakov, [2] ai4spam, [2] Bloody, [2] Roy Damman, [4] [5]
Initial release3 March 2000;24 years ago (2000-03-03) [2]
Stable release
1.57.1 / November 14, 2018 (2018-11-14) [4]
Written in Delphi
Operating system Microsoft Windows
Available in English
Type Subtitle editor
License GPL [3]
Website zuggy.wz.cz [6] [7]
SubRip Text (file format)
Filename extension
.srt
Internet media type
application/x-subrip [8]
Magic number 31 0D 0A 30 30 3A (ASCII: "1↵00:")
Developed byBrain, Zuggy
Type of format Timed text
Container for subtitles and their order and timings
Extended to WebVTT
Open format?Yes
Free format?Yes
Website www.matroska.org/technical/subtitles.html#srt-subtitles

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

Contents

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

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, [15] colors and video processing requirements [16] 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. [17]

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

Format

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

Example for Star Wars: Episode II – Attack of the Clones :

1 00:02:16,612 --> 00:02:19,376 Senator, we're making our final approach into Coruscant.  2 00:02:19,482 --> 00:02:21,609 Very good, Lieutenant.  3 00:03:13,336 --> 00:03:15,167 We made it.  4 00:03:18,608 --> 00:03:20,371 I guess I was wrong.  5 00:03:20,476 --> 00:03:22,671 There was no danger at all. 

Markup

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: [19]

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

Also unofficially, text coordinates can be specified at the end of the timestamp line as X1:… X2:… Y1:… Y2:…. [20]

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. [21] The SubRip format is supported directly by many subtitle creation and editing tools, [22] as well as some hardware home media players. [23] [24] [25] [26] [27] 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. [28] [29]

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 official character encoding standard for .srt files, which means that any SubRip file parser must attempt to use Charset detection. Unicode BOMs are typically used to aid detection.

YouTube only supports UTF-8. [30] The default encoding for subtitle files in FFmpeg is UTF-8. [31]

SubViewer

In 1999, Brain created SubRip, and a friend, David Dolinski, created SubViewer, who offered it for download on his personal website. [32] [33] [34] [35] [36] [37]

SubViewer was included in the DivX media player. On August 28, 2008, YouTube included support for SubViewer and SubRip, allowing existing videos to be retroactively subtitled. [33]

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. [38] [39] The prospective format was later renamed WebVTT (Web Video Text Track). [40] [41] 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. [42] YouTube began supporting WebVTT in April, 2013. [43]

See also

Notes

  1. "SubRip & SubMagic". The Brain's Web. Archived from the original on 13 April 2003. Retrieved 12 February 2022.
  2. 1 2 3 4 5 6 "SubRip 1.56.1 History". Free Codecs. 2015-10-13.
  3. 1 2 Zuggy, DVD, November 6, 2006.
  4. 1 2 Damman, Roy (2018-11-14). "Browse /subrip/SubRip 1.57.1". SubRip. SourceForge.net. Retrieved 12 February 2022.
  5. "zuggy.wz.cz News". zuggy.wz.cz. Archived from the original on 9 June 2020. Retrieved 12 February 2022. Roy Damman released SubRip 1.57.1.
  6. "HTTPS není dostupné - Webzdarma.cz | Webzdarma.cz". zuggy.wz.cz. Archived from the original on 12 February 2022. Retrieved 30 June 2022.
  7. "ZuggyWu:d". zuggy.wz.cz. Archived from the original on 10 June 2021. Retrieved 22 February 2022.
  8. Android 10 value. Not IANA-approved and in fact invalid due to "x-" no longer being unregulated.
  9. 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.
  10. Rodriguez-Alsina, Aitor; Talavera, Guillermo; Orero, Pilar; Carrabina, Jordi (2012-06-26). "Subtitle Synchronization across Multiple Screens and Devices". Sensors . 12 (7): 8710–8731. Bibcode:2012Senso..12.8710R. 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
  11. 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, vol. 7499, Springer Berlin Heidelberg, 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
  12. Thaureaux 2007 , pp. 131–134
  13. Zuggy, News, entry dated May 28, 2005.
  14. Thaureaux 2007 , p. 132
  15. Thaureaux 2007 , p. 136
  16. Zuggy, Guide.
  17. Thaureaux 2007 , p. 137
  18. 1 2 "SRT Subtitles". matroska.org. CoreCodec Inc. Retrieved 2020-10-24.
  19. SubRip (.SRT) subtitles support in players – ale5000.altervista.org
  20. "Extended SRT spec (especially coordinate format) question [Archive] - Doom9's Forum". forum.doom9.org. Retrieved 2021-03-10.
  21. 陈波; 杨涛 (2006). 实用工具软件玩家攻略 (in Chinese). 清华大学出版社. pp. 75–76. ISBN   9787302119944 . Retrieved 2010-09-11.
  22. Martin, Chris (2009-12-29), "15 Best Subtitle Editors for Movies or Videos", Binary Head, archived from the original on 2010-12-23 All apps listed support SubRip (SRT), but the article is specific about 7 of 15.
  23. TechToyer (September 2003), "A DivX Player for the Living Room (Neuston Maestro DVX-1201)", HardwareMAG, Singapore: SPH Magazines Pte Ltd., p. 67, ISSN   0219-5607
  24. Tokig (2003-07-13), "Review of KiSS DP-500 – Playback", Nordic Hardware, archived from the original on 2012-03-01, retrieved 2010-07-21
  25. "Argosy Media Player HV335T HDD (HD1080p) product page", Argosy, 2009, archived from the original on 2010-02-08
  26. Cericola, Rachel (2009-12-08), "Western Digital WD TV Live HD Media Player review", Big Picture Big Sound
  27. Suerte Felipe, Carlo (2009-02-16), Get stylish with Samsung DVD-F1080, Manila Bulletin Publications , retrieved 2010-08-19
  28. Chisholm, Wendy; May, Matt (2008-12-09). Universal Design for Web Applications: Web Applications that Reach Everyone (1st ed.). O'Reilly Media. p. 82. ISBN   9780596518738.
  29. "New Captions Feature for Videos". Official YouTube Blog. 2008-08-28.
  30. "Supported subtitle and closed caption files - YouTube Help". support.google.com. Retrieved 14 August 2023.
  31. "FFmpeg Filters Documentation". ffmpeg.org. Retrieved 14 August 2023. Set subtitles input character encoding. subtitles filter only. Only useful if not UTF-8.
  32. "SubViewer". Dado.be. Archived from the original on 5 November 2005. Retrieved 12 February 2022.
  33. 1 2 "New Captions Feature for Videos". YouTube Official Blog. Retrieved 12 February 2022.
  34. "SubRip". VideoLAN Wiki. Retrieved 12 February 2022.
  35. "SubViewer". VideoLAN Wiki. Retrieved 12 February 2022.
  36. "Subtitle Formats". Divxstation. Archived from the original on 9 February 2005. Retrieved 12 February 2022.
  37. "SubViewer 4.0.6". free-codecs.com. Retrieved 12 February 2022.
  38. Understanding WebSRT format
  39. WebSRT, from the WHATWG HTML draft specification, retrieved 2010-10-14
  40. Kennedy, Antony; de Leon, Inayaili (2011). Pro CSS for High Traffic Websites. Apress. ISBN   978-1-4302-3288-9.
  41. Pfeiffer, Silvia (June 27, 2011). "Recent developments around WebVTT".
  42. "Firefox 31 Release Notes".
  43. "Caption File - YouTube Help".

Related Research Articles

<span class="mw-page-title-main">Closed captioning</span> Process of displaying interpretive texts to screens

Closed captioning (CC) and subtitling are both processes of displaying text on a television, video screen, or other visual display to provide additional or interpretive information. Both are typically used as a transcription of the audio portion of a program as it occurs, sometimes including descriptions of non-speech elements. Other uses have included providing a textual alternative language translation of a presentation's primary audio language that is usually burned-in to the video and unselectable.

Matroska is a project to create a container format that can hold an unlimited number of video, audio, picture, or subtitle tracks in one file. The Matroska Multimedia Container is similar in concept to other containers like AVI, MP4, or Advanced Systems Format (ASF), but is an open standard.

<span class="mw-page-title-main">WinDVD</span> Video and music player software

WinDVD is a commercial DVD video player software for Microsoft Windows.

Media Player Classic (MPC), Media Player Classic - Home Cinema (MPC-HC), and Media Player Classic - Black Edition (MPC-BE) are a family of free and open-source, compact, lightweight, and customizable media players for 32-bit and 64-bit Microsoft Windows. The original MPC, along with the MPC-HC fork, mimic the simplistic look and feel of Windows Media Player 6.4, but provide most options and features available in modern media players. Variations of the original MPC and its forks are standard media players in the K-Lite Codec Pack and the Combined Community Codec Pack.

Nero Digital is a brand name applied to a suite of MPEG-4-compatible video and audio compression codecs developed by Nero AG of Germany and Ateme of France. The audio codecs are integrated into the Nero Digital Audio+ audio encoding tool for Microsoft Windows, and the audio & video codecs are integrated into Nero's Recode DVD ripping software.

The following comparison of video players compares general and technical information for notable software media player programs.

VOB is the container format in DVD-Video media. VOB can contain digital video, digital audio, subtitles, DVD menus and navigation contents multiplexed together into a stream form. Files in VOB format may be encrypted.

MPEG-4 Part 17, or MPEG-4 Timed Text (MP4TT), or MPEG-4 Streaming text format is the text-based subtitle format for MPEG-4, published as ISO/IEC 14496-17 in 2006. It was developed in response to the need for a generic method for coding of text as one of the multimedia components within audiovisual presentations.

These tables compare features of multimedia container formats, most often used for storing or streaming digital video or digital audio content. To see which multimedia players support which container format, look at comparison of media players.

<span class="mw-page-title-main">Avidemux</span> Free and open-source transcoding and video editing software

Avidemux is a free and open-source software application for non-linear video editing and transcoding multimedia files. The developers intend it as "a simple tool for simple video processing tasks" and to allow users "to do elementary things in a very straightforward way". It is written in C++ and uses Qt for its graphical user interface, and FFmpeg for its multimedia functions. Starting with version 2.4, Avidemux also offers a command-line interface, and since version 2.6, the original GTK port has not been maintained and is now discontinued.

DirectVobSub is a software add-on for Microsoft Windows that is able to read external subtitle files and superimposes them on a playing video file.

Timed text is the presentation of text media in synchrony with other media, such as audio and video.

<span class="mw-page-title-main">KMPlayer</span> Freeware media player for Microsoft Windows

K-Multimedia Player is an Adware-supported media player for Windows and iOS that can play most current audio and video formats, including VCD, HDML, DVD, AVI, MKV, Ogg, OGM, 3GP, MPEG-1/2/4, AAC, WMA 7, 8, WMV, RealMedia, FLV and QuickTime.

<span class="mw-page-title-main">GOM Player</span> Media player

GOM Player is a media player for Windows, developed by GOM & Company. With more than 100 million downloads, it is also known as the most used player in South Korea. Its main features include the ability to play some broken media files and find missing codecs using a codec finder service.

<span class="mw-page-title-main">Subtitles</span> Textual representation of events and speech in motion imagery

Subtitles are texts representing the contents of the audio in a film, television show, opera or other audiovisual media. Subtitles might provide a transcription or translation of spoken dialogue. Although naming conventions can vary, captions are subtitles that include written descriptions of other elements of the audio ,like music or sound effects. Captions are thus especially helpful to people who are deaf or hard-of-hearing. Subtitles may also add information that is not present in the audio. Localizing subtitles provide cultural context to viewers. For example, a subtitle could be used to explain to an audience unfamiliar with sake that it is a type of Japanese wine. Lastly, subtitles are sometimes used for humor, as in Annie Hall, where subtitles show the characters' inner thoughts, which contradict what they were saying in the audio.

<span class="mw-page-title-main">DVD Flick</span>

DVD Flick is an open source DVD authoring application for Windows developed by Dennis Meuwissen and released under the GNU General Public License. DVD Flick is capable of importing audio tracks, video files and subtitles, composing a DVD-Video movie and burning it to a disc – or creating an ISO image for later burning.

A subtitle editor is a type of software used to create and edit subtitles to be superimposed over, and synchronized with, video. Such editors usually provide video preview, easy entering/editing of text, start, and end times, and control over text formatting and positioning. Subtitle editors are available as standalone applications, as components of many video editing software suites, and as web applications.

<span class="mw-page-title-main">GNOME Videos</span> Media player software of the desktop environment GNOME

GNOME Videos, formerly known as Totem, is a media player for the GNOME computer desktop environment. GNOME Videos uses the Clutter and GTK+ toolkits. It is officially included in GNOME starting from version 2.10, but de facto it was already included in most GNOME environments. Totem utilizes the GStreamer framework for playback, though until version 2.27.1, it could alternatively be configured to use the Xine libraries instead of GStreamer.

WebVTT is a World Wide Web Consortium (W3C) standard for displaying timed text in connection with the HTML5 <track> element.

Timed Text Markup Language (TTML), previously referred to as Distribution Format Exchange Profile (DFXP), is an XML-based W3C standard for timed text in online media and was designed to be used for the purpose of authoring, transcoding or exchanging timed text information presently in use primarily for subtitling and captioning functions. TTML2, the second major revision of the language, was finalized on November 8, 2018. It has been adopted widely in the television industry, including by Society of Motion Picture and Television Engineers (SMPTE), European Broadcasting Union (EBU), ATSC, DVB, HbbTV and MPEG CMAF and several profiles and extensions for the language exist nowadays.

References