Revision as of 14:00, 11 September 2013 edit200.97.48.125 (talk) →Plain← Previous edit | Latest revision as of 00:12, 25 December 2024 edit undo98.128.167.46 (talk) Remove unreferenced obviously non-magic number. Multiple false assumptions have been made. The file could (per the article) start with a UTF-8 BOM (instead of 1). Line ending could be LF (instead of CRLF). The "00:" part assumes that there is at least one subtitle in the first hour of the content being subtitled, which could easily be false, e.g. for so called forced subtitles (where only foreign language is subtitled). | ||
(456 intermediate revisions by more than 100 users not shown) | |||
Line 1: | Line 1: | ||
{{short description|Program that extracts subtitles from video}} | |||
{{Infobox software | {{Infobox software | ||
| name = SubRip | | name = SubRip (software) | ||
| developer = Brain,<ref name="lycos-2003-subrip">{{cite web |title=SubRip & SubMagic |url=http://membres.lycos.fr/subrip/ |website=The Brain's Web |access-date=12 February 2022 |archive-url=https://web.archive.org/web/20030413232440/http://membres.lycos.fr/subrip/ |archive-date=13 April 2003}}</ref> T.V. Zuggy,<ref name="free-codecs-readme"/><ref name="ZugDVD"/> mrSHADOW,<ref name="free-codecs-readme"/> Yakov,<ref name="free-codecs-readme"/> ai4spam,<ref name="free-codecs-readme"/> Bloody,<ref name="free-codecs-readme"/> Roy Damman,<ref name="2018-11-14_1.57.1"/><ref name="zuggy.wz.cz-20200609">{{cite web |title=zuggy.wz.cz News |url=https://zuggy.wz.cz/ |website=zuggy.wz.cz |access-date=12 February 2022 |archive-url=https://web.archive.org/web/20200609201156/https://zuggy.wz.cz/ |archive-date=9 June 2020 |quote=Roy Damman released SubRip 1.57.1.}}</ref> | |||
| developer = Brain, Zuggy<ref name="ZugDVD"/> | |||
| released = {{start date and age|2000|03|03|df=yes}}<ref name="free-codecs-readme">{{cite web |title=SubRip 1.56.1 History |date=2015-10-13 |url=https://www.free-codecs.com/readmes/subrip_News.txt |website=Free Codecs}}</ref> | |||
| latest_release_version = 1.50b4 | |||
| latest_release_version = 1.57.1 | |||
| latest_release_date = {{release date|2006|11|07}}<ref name="Zughome">Zuggy, Home</ref> | |||
| latest_release_date = {{start date|2018|11|14}}<ref name="2018-11-14_1.57.1">{{cite web |last1=Damman |first1=Roy |title=Browse /subrip/SubRip 1.57.1 |url=https://sourceforge.net/projects/subrip/files/subrip/SubRip%201.57.1/ |website=SubRip |publisher=SourceForge.net |access-date=12 February 2022 |date=2018-11-14}}</ref> | |||
| latest preview version = 1.50b5 | |||
| latest preview version = | |||
| latest preview date = {{release date|2011|04|30}}<ref>Frogger13 (April 30, 2011). . Doom9.org.</ref> | |||
| latest preview date = | |||
| operating_system = ] | | operating_system = ] | ||
| genre = ] | | genre = ] | ||
| programming_language = ] | | programming_language = ] | ||
| license = ]<ref name="ZugDVD">Zuggy, DVD, November 6, 2006.</ref> | | license = ]<ref name="ZugDVD">Zuggy, DVD, November 6, 2006.</ref> | ||
| language = ] | | language = ] | ||
| website = {{URL|http://zuggy.wz.cz}}<!--HTTP only--><ref>{{cite web |url=https://zuggy.wz.cz/ |title=HTTPS není dostupné - Webzdarma.cz | Webzdarma.cz |website=zuggy.wz.cz |access-date=30 June 2022 |archive-url=https://archive.today/20220212024015/https://zuggy.wz.cz/ |archive-date=12 February 2022 |url-status=dead}}</ref><ref>{{cite web |url=http://zuggy.wz.cz/ |title=ZuggyWu:d |website=zuggy.wz.cz |access-date=22 February 2022 |archive-url=https://web.archive.org/web/20210610093210/http://zuggy.wz.cz/ |archive-date=10 June 2021 |url-status=dead}}</ref> | |||
| website = {{URL|zuggy.wz.cz}} | |||
| logo = | | logo = | ||
| screenshot = <!-- ]--> | | screenshot = <!-- ]--> | ||
| caption = | | caption = | ||
}} | }} | ||
{{Infobox file format | |||
| name = SubRip Text (file format) | |||
| icon = | |||
| screenshot = | |||
| screenshot_size = 200px | |||
| extension = .srt | |||
| mime = application/x-subrip<ref>Android 10 value. Not IANA-approved and in fact invalid due to "x-" no longer being unregulated.</ref> | |||
| owner = Brain, Zuggy | |||
| genre = ] | |||
| container_for = subtitles and their order and timings | |||
| contained_by = | |||
| extended_to = ] | |||
| website = {{URL|https://www.matroska.org/technical/subtitles.html#srt-subtitles}} | |||
| open = Yes | |||
| free = Yes | |||
| url = | |||
}} | |||
'''SubRip''' is a ] program for ] which extracts subtitles and their timings from various video formats to a text file. It is released under the ] ].<ref name="Powers2011">{{cite book|last=Powers|first=Shelley|url=https://books.google.com/books?id=GIm3iMzcHekC&pg=PA83|title=HTML5 Media: Integrating Audio and Video with the Web|date=8 August 2011|publisher="O'Reilly Media, Inc."|isbn=978-1-4493-1531-3|pages=82–83}}</ref> Its subtitle format's file extension is <code>.srt</code> and is widely supported. Each <code>.srt</code> 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.<ref>{{Cite journal|last1=Rodriguez-Alsina|first1=Aitor|last2=Talavera|first2=Guillermo|last3=Orero|first3=Pilar|last4=Carrabina|first4=Jordi|date=2012-06-26|title=Subtitle Synchronization across Multiple Screens and Devices|journal=]|language=en|volume=12|issue=7|pages=8710–8731|doi=10.3390/s120708710|issn=1424-8220|pmc=3444071|pmid=23012513|bibcode=2012Senso..12.8710R|quote=Most subtitles distributed on the Internet are described in text files that follow the SubRip (.SRT) format|doi-access=free}}</ref><ref>{{Citation|last1=Stanislav|first1=Petr|title=Unsupervised Synchronization of Hidden Subtitles with Audio Track Using Keyword Spotting Algorithm|date=2012|work=Text, Speech and Dialogue|volume=7499|pages=422–430|editor-last=Sojka|editor-first=Petr|publisher=Springer Berlin Heidelberg|doi=10.1007/978-3-642-32790-2_51|isbn=978-3-642-32789-6|quote=which is the most common subtitle format in the movie fans community|last2=Švec|first2=Jan|last3=Šmídl|first3=Luboš|editor2-last=Horák|editor2-first=Aleš|editor3-last=Kopeček|editor3-first=Ivan|editor4-last=Pala|editor4-first=Karel}}</ref> | |||
==Software== | |||
'''SubRip''' is a software program for ] which "]" (extracts) ] and their timings from video. It is ], released under the ] ]. ''SubRip'' is also the name of the widely used and broadly compatible subtitle text file format created by this software. | |||
==SubRip software== | |||
Using ], SubRip can extract from live video, video files and DVDs, then record the extracted subtitles and timings as a ''Subrip format'' ].<ref name="Thaureaux1">{{Harvnb|Thaureaux|2007| pp=131–134}}</ref> It can optionally save the recognized subtitles as bitmaps for later subtraction (erasure) from the source video.<ref>Zuggy, News, entry dated May 28, 2005.</ref><ref>{{Harvnb|Thaureaux|2007| p=132}}</ref> | Using ], SubRip can extract from live video, video files and DVDs, then record the extracted subtitles and timings as a ''Subrip format'' ].<ref name="Thaureaux1">{{Harvnb|Thaureaux|2007| pp=131–134}}</ref> It can optionally save the recognized subtitles as bitmaps for later subtraction (erasure) from the source video.<ref>Zuggy, News, entry dated May 28, 2005.</ref><ref>{{Harvnb|Thaureaux|2007| p=132}}</ref> | ||
In practice, SubRip is configured with the correct ] for the video source, then trained by the user on the specific text area, fonts, styles,<ref>{{Harvnb|Thaureaux|2007| p=136}}</ref> colors and video processing requirements<ref name="Zguide">Zuggy, Guide.</ref> to recognize subtitles. <!-- this is demystifying the process, not step-by-stepping it --> 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 <code>.srt</code> file.<ref>{{Harvnb |Thaureaux|2007|p=137}}</ref> | In practice, SubRip is configured with the correct ] for the video source, then trained by the user on the specific text area, fonts, styles,<ref>{{Harvnb|Thaureaux|2007| p=136}}</ref> colors and video processing requirements<ref name="Zguide">Zuggy, Guide.</ref> to recognize subtitles. <!-- this is demystifying the process, not step-by-stepping it --> 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 <code>.srt</code> file.<ref>{{Harvnb |Thaureaux|2007|p=137}}</ref> | ||
SubRip uses ] to extract video frames from source video, and can rip subtitles from all video files supported by that program. |
SubRip uses ] to extract video frames from source video, and can rip subtitles from all video files supported by that program. | ||
== Format {{anchor|Formatting}}== | |||
==SubRip text file format== | |||
The SubRip file format is described on the ] multimedia ] website as "perhaps the most basic of all subtitle formats."<ref name="Matroska">{{cite web|url=https://www.matroska.org/technical/subtitles.html#srt-subtitles |title=SRT Subtitles |publisher=CoreCodec Inc. |work=matroska.org |access-date=2020-10-24}}</ref> SubRip (SubRip Text) files are named with the ] <code>.srt</code>, and contain formatted lines of plain text in groups separated by a blank line. Subtitles are numbered sequentially, starting at 1. The ] 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 comma (,) is used for ]. | |||
{{Infobox file format | |||
| name = SubRip (format) | |||
| screenshot = | |||
| extension = .srt | |||
| genre = ] ] | |||
}} | |||
The SubRip file format, as reported on the ] multimedia ] website, is "perhaps the most basic of all subtitle formats."<ref name="Matroska">{{cite web|url=http://www.matroska.org/technical/specs/subtitles/srt.html |title=SRT Subtitles |publisher=CoreCodec Inc. |work=matroska.org |date= |accessdate=2010-08-19}}</ref> SubRip (SubRip Text) files are named with the ] <code>.srt</code>, and contain formatted lines of plain text in groups separated by a blank line. Subtitles are numbered sequentially, starting at 1. The ] 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 ] used is the ], since the program was written in ]. The subtitle separator, a blank line, is the double byte ] ] pair, though the ] single byte linefeed is also well supported.{{citation needed|date=July 2013}} | |||
# A numeric counter identifying each sequential subtitle | # A numeric counter identifying each sequential subtitle | ||
# The time that the subtitle should appear on the screen, followed by |
# The time that the subtitle should appear on the screen, followed by <code>--></code> and the time it should disappear | ||
# Subtitle text itself on one or more lines | # Subtitle text itself on one or more lines | ||
# A blank line containing no text indicating the end of this subtitle<ref name="Matroska"/> | # A blank line containing no text, indicating the end of this subtitle<ref name="Matroska"/> | ||
<!-- moved unsourced styling tags to Talk --><!-- C source code is not RS --><!-- X/Y not sourced --> | |||
Example for '']'': | |||
===SubRip (.srt) structure examples=== | |||
<pre> | |||
''' | |||
1 | |||
No começo eu tentava apenas gostar de você | |||
00:02:16,612 --> 00:02:19,376 | |||
, pois tudo era tão simples. | |||
Senator, we're making | |||
Não queria ficar com ninguém dizia isso não é para mim | |||
our final approach into Coruscant. | |||
,Gosto tanto de estar sozinho. | |||
.mas olha só onde vim parar lendo textos de amor | |||
e | |||
suspirando com cada um'''Bold text''' | |||
,me encontrando em cada parte | |||
, vendo um pedaço de mim em cada palavra um pedaço do meu sentimento | |||
que eu nem sabia que existia. | |||
O que estou sentindo realmente não se explica | |||
,quando verdadeiro,não há palavras | |||
q consigam expressá-lo | |||
,Dizer eu te amo | |||
passa a ser muito pouco | |||
e me vem a louca necessidade de querer provar oq sinte por voce. | |||
Ah como viver com voce | |||
e como viver sem voce! | |||
? Impossivel; | |||
2 | |||
====With specific positioning and styling==== | |||
00:02:19,482 --> 00:02:21,609 | |||
1 | |||
Very good, Lieutenant. | |||
00:00:10,500 --> 00:00:13,000 X1:63 X2:503 Y1:43 Y2:438 | |||
<nowiki><i></nowiki>Elephant's Dream<nowiki></i></nowiki> | |||
<br /><!-- blank line here --> | |||
2 | |||
00:00:15,000 --> 00:00:18,000 X1:503 X2:503 Y1:438 Y2:438 | |||
<nowiki><font color="cyan"></nowiki>At the left we can see...<nowiki></font></nowiki>{{Citation needed|date=July 2013}} | |||
<br /><!-- blank line here--> | |||
3 | |||
====WebVTT variant==== | |||
00:03:13,336 --> 00:03:15,167 | |||
WEBVTT | |||
We made it. | |||
<br /><!-- blank line here --> | |||
00:00.000 --> 00:14.999 | |||
4 | |||
Elephant's <nowiki><c.dream></nowiki>Dream<nowiki></c></nowiki> | |||
00:03:18,608 --> 00:03:20,371 | |||
<br /><!-- blank line here --> | |||
I guess I was wrong. | |||
NOTE | |||
CSS style to be defined later | |||
5 | |||
<br /><!-- blank line here --> | |||
00:03:20,476 --> 00:03:22,671 | |||
There was no danger at all. | |||
At the <nowiki><i></nowiki>left<nowiki></i></nowiki> we can <nowiki><b></nowiki>see<nowiki></b></nowiki>... | |||
</pre> | |||
<br /><!-- blank line here--> | |||
NOTE | |||
=== Markup === | |||
Relative and percentage based positioning | |||
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 ] tags for bold, italic, underline and color:<ref> – ale5000.altervista.org</ref> | |||
<br /><!-- blank line here --> | |||
* Bold – <code><b>…</b></code> | |||
00:18.167 --> 00:22.000 | |||
* Italic – <code><i>…</i></code> | |||
At the right <nowiki><00:20.000></nowiki>we can see the...<ref name=vttexample>{{cite book|last=Devlin|first=Ian |title=HTML 5 Multimedia |page=182 |url=http://books.google.com/books?id=27hIY9pW48YC&pg=PA182#v=onepage&q=&f=false |year=2012 |publisher=] |accessdate=May 11, 2013|isbn=9780321793935}}</ref> | |||
* Underline – <code><u>…</u></code> | |||
<br /><!-- blank line here--> | |||
* Font color – <code><font color="color name or #code">…</font></code> | |||
NOTE | |||
Karaoke style split line | |||
<br /><!-- blank line here--> | |||
=== Formatting === | |||
Very basic text formatting is usually handled correctly in .srt files, including bold, italic, underline and color, although this depends on the player:<ref> – ale5000.altervista.org{{dubious |reason=Personal web page, non-notable author| date=July 2013}}</ref>{{dubious |reason=Personal web page, non-notable author| date=July 2013}} | |||
* Bold – <nowiki>''' ... ''' or {b} ... {/b}</nowiki> | |||
* Italic – <nowiki>'' ... '' or {i} ... {/i}</nowiki> | |||
* Underline – <nowiki><u> ... </u> or {u} ... {/u}</nowiki> | |||
* Font color – <nowiki><font color="color name or #code"> ... </font></nowiki> (as in ]) | |||
Nested tags are allowed; some implementations prefer whole-line formatting only. | 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 <code>X1:… X2:… Y1:… Y2:…</code>.<ref>{{Cite web|title=Extended SRT spec (especially coordinate format) question - Doom9's Forum|url=http://forum.doom9.org/archive/index.php/t-86664.html|access-date=2021-03-10|website=forum.doom9.org}}</ref> | |||
===Compatibility=== | |||
The SubRip <code>.srt</code> file format is supported by most software video players listed in '']''. For ] software video players that do not support subtitle playback directly, the ] ] filter displays SubRip and other subtitle formats.<ref>{{cite book | title=实用工具软件玩家攻略 |author= 陈波, 杨涛 |publisher=清华大学出版社 |year=2006 | |||
== Compatibility == | |||
|isbn=978-7-302-11994-4 |pages=75–76 |url=http://books.google.com/?id=FjF2XragdYYC&pg=PA75#v=onepage&q |accessdate=2010-09-11}}</ref><!-- claim is also supported in VSFilter article. --> | |||
The SubRip <code>.srt</code> file format is supported by most software video players. For ] software video players that do not support subtitle playback directly, the ] ] filter displays SubRip and other subtitle formats.<ref>{{cite book | |||
The SubRip format is supported directly by many subtitle creation/editing tools,<ref>Martin, Chris (Dec 29, 2009). . ''aboutonlinetips.com''; Binary Head. All apps listed support SubRip(SRT), but the article is specific about 7 of 15.</ref> | |||
| title = 实用工具软件玩家攻略 | |||
and some hardware home media players.<ref>Staff (September 2003). . Review. ''hardwaremag.com''; Singapore HWM.</ref><ref>tokig (July 13, 2003). . ''nordichardware.com''; Nordic Hardware.</ref><ref> ''argosy.com''; Argosy, 2009.</ref><!--needs independent review--><ref>Cericola, Rachel (2009-12-08). Review. ''bigpicturebigsound.com''; Big Picture Big Sound.</ref><ref>Suerte Felipe, Carlo (February 16, 2009). . ] Publications. Retrieved 2010-08-19.</ref> | |||
| author1 = 陈波 | |||
In August 2008, YouTube added subtitle support to its ] video player under the "Closed Captioning" option - content producers can upload subtitles in SubRip format.<ref>Chisholm and May: p. 82.</ref> | |||
| author2 = 杨涛 | |||
| publisher = 清华大学出版社 | |||
| language = zh | |||
| year = 2006 | |||
| isbn = 9787302119944 | |||
| pages = 75–76 | |||
| url = https://books.google.com/books?id=FjF2XragdYYC&pg=PA75 | |||
| access-date = 2010-09-11 | |||
}}</ref><!-- claim is also supported in VSFilter article. --> | |||
The SubRip format is supported directly by many subtitle creation and editing tools,<ref>{{citation | |||
| last = Martin | |||
| first = Chris | |||
| date = 2009-12-29 | |||
| url = http://www.aboutonlinetips.com/best-subtitle-editor-tools/ | |||
| title = 15 Best Subtitle Editors for Movies or Videos | |||
| website = Binary Head | |||
| archive-url = https://web.archive.org/web/20101223154708/http://www.aboutonlinetips.com/best-subtitle-editor-tools/ | |||
| archive-date = 2010-12-23 | |||
}} All apps listed support SubRip (SRT), but the article is specific about 7 of 15.</ref> | |||
as well as some hardware home media players.<ref>{{citation | |||
| author = TechToyer | |||
| date = September 2003 | |||
| url = https://books.google.com/books?id=XeoDAAAAMBAJ&pg=PT67 | |||
| title = ''A DivX Player for the Living Room'' (Neuston Maestro DVX-1201) | |||
| magazine = HardwareMAG | |||
| publisher = SPH Magazines Pte Ltd. | |||
| publication-place = Singapore | |||
| page = 67 | |||
| issn = 0219-5607 | |||
}}</ref><ref>{{citation | |||
| author = Tokig | |||
| date = 2003-07-13 | |||
| url = http://www.nordichardware.com/test-lab/42-multimedia/11055-kiss-dp-500.html?start=3#content | |||
| title = Review of KiSS DP-500 – Playback | |||
| website = Nordic Hardware | |||
| access-date = 2010-07-21 | |||
| archive-date = 2012-03-01 | |||
| archive-url = https://web.archive.org/web/20120301122740/http://www.nordichardware.com/test-lab/42-multimedia/11055-kiss-dp-500.html?start=3#content | |||
| url-status = dead | |||
}}</ref><ref>{{citation | |||
| url = http://www.argosy.com.tw/product-detial.php?prod_id=154 | |||
| title = Argosy Media Player HV335T HDD (HD1080p) product page | |||
| year = 2009 | |||
| website = Argosy | |||
| archive-url = https://web.archive.org/web/20100208224243/http://www.argosy.com.tw/product-detial.php?prod_id=154 | |||
| archive-date = 2010-02-08 | |||
}}</ref><!--needs independent review--><ref>{{citation | |||
| last = Cericola | |||
| first = Rachel | |||
| date = 2009-12-08 | |||
| url = http://www.bigpicturebigsound.com/Western-Digital-WD-TV-Live-HD-Media-Player.shtml | |||
| title = Western Digital WD TV Live HD Media Player review | |||
| website = Big Picture Big Sound | |||
}}</ref><ref>{{citation | |||
| last = Suerte Felipe | |||
| first = Carlo | |||
| date = 2009-02-16 | |||
| url = http://www.mb.com.ph/node/196529 | |||
| title = Get stylish with Samsung DVD-F1080 | |||
| publisher = ] | |||
| access-date = 2010-08-19 | |||
}}</ref> | |||
In August 2008, ] added subtitle support to its ] video player under the "Closed Captioning" option – content producers can upload subtitles in SubRip format.<ref>{{cite book | |||
| first1 = Wendy | |||
| last1 = Chisholm | |||
| first2 = Matt | |||
| last2 = May | |||
| title = Universal Design for Web Applications: Web Applications that Reach Everyone | |||
| date = 2008-12-09 | |||
| page = 82 | |||
| edition = 1st | |||
| publisher = ] | |||
| isbn = 9780596518738 | |||
}}</ref><ref>{{cite web | |||
| url = https://youtube.googleblog.com/2008/08/new-captions-feature-for-videos.html | |||
| title = New Captions Feature for Videos | |||
| work = Official YouTube Blog | |||
| date = 2008-08-28 | |||
}}</ref> | |||
=== Text encoding === | |||
SubRip's default output encoding is configured as ]. However, output options are also given for many ]s as well ] encodings, such as ] and ], with or without ] (BOM). Therefore, there is no official character encoding standard for <code>.srt</code> files, which means that any SubRip file parser must attempt to use ]. Unicode BOMs are typically used to aid detection. | |||
] only supports UTF-8.<ref>{{Cite web |title=Supported subtitle and closed caption files - YouTube Help |author= |work=support.google.com |date= |access-date=14 August 2023 |url= https://support.google.com/youtube/answer/2734698?hl=en#zippy=%2Cbasic-file-formats}}</ref> The default encoding for subtitle files in ] is UTF-8.<ref>{{Cite web |title=FFmpeg Filters Documentation |author= |work=ffmpeg.org |date= |access-date=14 August 2023 |url= http://ffmpeg.org/ffmpeg-filters.html#subtitles-1 |quote=Set subtitles input character encoding. subtitles filter only. Only useful if not UTF-8. }}</ref> | |||
==SubViewer== | |||
In 1999, Brain created SubRip, and a friend, David Dolinski, created SubViewer, who offered it for download on his personal website.<ref name="dado.be/subviewer">{{cite web |title=SubViewer |url=http://www.dado.be/subviewer.Asp |website=Dado.be |access-date=12 February 2022 |archive-url=https://web.archive.org/web/20051105011243/http://www.dado.be/subviewer.Asp |archive-date=5 November 2005}}</ref><ref name="youtube-blog">{{cite web |title=New Captions Feature for Videos |url=https://www.youtube.com/blog?entry=mi8D3ntPgFQ |website=] Official Blog |access-date=12 February 2022 |language=en-us}}</ref><ref name="SubRip.wiki.videolan">{{cite web |title=SubRip |url=https://wiki.videolan.org/SubRip/ |website=] Wiki |access-date=12 February 2022}}</ref><ref name="SubViewer.wiki.videolan">{{cite web |title=SubViewer |url=https://wiki.videolan.org/SubViewer/ |website=] Wiki |access-date=12 February 2022}}</ref><ref name="divxstation-Subtitle-Formats">{{cite web |title=Subtitle Formats |url=http://divxstation.com/article.asp?aId=27 |website=Divxstation |access-date=12 February 2022 |archive-url=https://web.archive.org/web/20050209005304/http://divxstation.com/article.asp?aId=27 |archive-date=9 February 2005}}</ref><ref>{{cite web |title=SubViewer 4.0.6 |url=https://www.free-codecs.com/download/subviewer.htm |website=free-codecs.com |access-date=12 February 2022}}</ref> | |||
SubViewer was included in the ] media player. On August 28, 2008, ] included support for SubViewer and SubRip, allowing existing videos to be retroactively subtitled.<ref name="youtube-blog"/> | |||
== |
== WebVTT == | ||
{{Main article|WebVTT}} | |||
A format called WebSRT (Web Subtitle Resource Tracks) was as of October 2010 being specified by the ] for the proposed ] <code><track></code> element. It shared the <code>.srt</code> extension and was "broadly <!-- see Talk #2--> based on" (parts of) <!-- see Talk #3 --> the SubRip format, but was not fully compatible with SubRip.<ref></ref><ref>, from the WHATWG HTML draft specification, retrieved 2010-10-14</ref><!-- sources for whole paragraph --> | |||
A format originally called WebSRT (Web Subtitle Resource Tracks) was specified in 2010 by the ] for the proposed ] <code><track></code> element. It shared the <code>.srt</code> file extension and was based on parts of the SubRip format, but was not fully compatible with it.<ref></ref><ref>, from the WHATWG HTML draft specification, retrieved 2010-10-14</ref><!-- sources for whole paragraph --> | |||
The prospective format was later renamed ].<ref>{{cite book | |||
The prospective format was later renamed WebVTT (Web Video Text Track).<ref>{{cite book | |||
|url=http://books.google.com/books?id=9A6w3ZBDtysC&pg=PA168#v=onepage&f=false | |||
|url=https://books.google.com/books?id=9A6w3ZBDtysC&pg=PA168 | |||
|title=Pro CSS for High Traffic Websites | |title=Pro CSS for High Traffic Websites | ||
| |
|first1=Antony |last1=Kennedy |first2=Inayaili |last2=de Leon | ||
|publisher=] | |publisher=] | ||
|year=2011 | |year=2011 | ||
Line 125: | Line 196: | ||
|first=Silvia | |first=Silvia | ||
|last=Pfeiffer | |last=Pfeiffer | ||
}}</ref> |
}}</ref> | ||
Google's Chrome and Microsoft's Internet Explorer 10 browsers were the first to support {{tag|track|o}} 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.<ref>{{cite web|title=Firefox 31 Release Notes|url=https://www.mozilla.org/en-US/mobile/31.0/releasenotes/}}</ref> YouTube began supporting WebVTT in April, 2013.<ref>{{cite web|title=Caption File - YouTube Help|url=https://support.google.com/youtube/bin/answer.py?answer=2734698&topic=3014331&ctx=topic}}</ref> | |||
* WebVTT's first line starts with ''WEBVTT'' after the optional ] ] | |||
* there is space for optional header data between the first line and the first cue | |||
* ] fractional values are separated by a ] instead of a ] | |||
* ] hours are optional | |||
* The frame numbering/identification preceding the ] is optional | |||
* ] frames identified by the word ''NOTE'' can be added | |||
* Only supports extended characters as ] | |||
* ] 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 <code>.srt</code> file format really only supports the Microsoft Windows text encoding default of ] (commonly, but incorrectly referred to as ANSI). A ] ] can be added to support any Unicode encoding with ] 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 <code>.srt</code> subtitle files into video containers (avi, mkv, mp4, ...): | |||
* – FFmpgeg supports also the | |||
* | |||
* (MacOS) | |||
* ] – XMedia Recode is a free All-In-One video- and audio converter tool for Windows. | |||
* (works with the , e.g. ) | |||
==See also== | ==See also== | ||
* ] | |||
* ] | |||
* ] | |||
* {{format link|Comparison of video player software#Subtitle ability}} | |||
* ] | * ] | ||
* ] | |||
* ] | * ] | ||
* ] | * ] | ||
* ] | * ] | ||
* ] |
* ] – able to extract subtitles from a DVD without first extracting the files from it | ||
==Notes== | ==Notes== | ||
{{reflist |
{{reflist}} | ||
==References== | ==References== | ||
{{refbegin}} | |||
* {{cite book | last = Thaureaux | first = Thierry | authorlink = | coauthors = | title = DivX - Copiez vos vidéos sur CD (Nouvelle édition)| publisher = Editions ENI | year = 2007 | location = Herblain, FR | pages = 133–136 | language=French | url = http://books.google.com/?id=f2kmYyTs0lgC&lpg=PP1&dq=divx%20subrip&pg=PT126 | doi = | id = | isbn = 978-2-7460-3812-7 |ref=harv}} <!--http://www.amazon.fr/DivX-Nouvelle-édition-Copiez-vidéos/dp/2746038129/ref=sr_11_1?ie=UTF8&qid=1246523915&sr=11-1 --> | |||
* {{cite book | last = Thaureaux | first = Thierry | title = DivX - Copiez vos vidéos sur CD (Nouvelle édition)| publisher = Editions ENI | year = 2007 | location = Herblain, FR | pages = 133–136 | language=fr | url = https://books.google.com/books?id=f2kmYyTs0lgC&q=divx%20subrip&pg=PT126 | isbn = 978-2-7460-3812-7 }} <!--http://www.amazon.fr/DivX-Nouvelle-édition-Copiez-vidéos/dp/2746038129/ --> | |||
* {{cite web| author= Zuggy, T.V| title=SubRip home| url=http://zuggy.wz.cz| date=| work=zuggy.wz.cz | accessdate=2010-08-19 |ref=harv}} | |||
* {{cite web| author= Zuggy, T.V| title=SubRip 1.20/1.50b – DVD subtitles ripper| url=http://zuggy.wz.cz/dvd.php | date=December 8, 2005 | work=zuggy.wz.cz | |
* {{cite web| author= Zuggy, T.V| title=SubRip home| url=http://zuggy.wz.cz| work=zuggy.wz.cz | access-date=2010-08-19 }} | ||
* {{cite web| author= Zuggy, T.V| title=SubRip 1.20/1.50b – DVD subtitles ripper| url=http://zuggy.wz.cz/dvd.php | date=December 8, 2005 | work=zuggy.wz.cz | access-date=2010-01-10 }} (Software release page.)<!-- zuggy site is referenced in Thaureaux. See Discussion.--> | |||
* {{cite web| author= Zuggy, T.V| date = August 1, 2007 | title=News page| url=http://zuggy.wz.cz/news.php | work=zuggy.wz.cz | |
* {{cite web| author= Zuggy, T.V| date = August 1, 2007 | title=News page| url=http://zuggy.wz.cz/news.php | work=zuggy.wz.cz |access-date=2009-07-02 }} <!-- zuggy site is referenced in Thaureaux. See Discussion.--> | ||
* {{cite web| author= Zuggy, T.V| title=Guide: Ripping subtitles from video files using SubRip| url=http://zuggy.wz.cz/redir.php?co=101 | date = June 17, 2005 | work=zuggy.wz.cz | |
* {{cite web| author= Zuggy, T.V| title=Guide: Ripping subtitles from video files using SubRip| url=http://zuggy.wz.cz/redir.php?co=101 | date = June 17, 2005 | work=zuggy.wz.cz |access-date=2009-07-02}} <!-- zuggy site is referenced in Thaureaux. See Discussion.--> | ||
* {{Cite book| first= Han| last=Xiao |
* {{Cite book| first= Han| last=Xiao |author2=Wang, Xiaojie |contribution=Constructing Parallel Corpus from Movie Subtitles| title=Proc. Int. Conf. on Computer Processing of Oriental Languages| series=Lecture Notes in Computer Science | editor-last1=Li| publisher=Springer| place=Hong Kong| pages=329–336| date=March 27, 2009| volume=5459 | doi= 10.1007/978-3-642-00831-3_32| isbn=978-3-642-00830-6 | contribution-url=https://books.google.com/books?id=EqlV6gBmii8C&q=subrip%20subtitles&pg=PA330| access-date=2009-07-02| editor-first2=Diego |editor-last2=Mollá-Aliod | editor-first=Wenjie}} | ||
* {{Cite book | |
* {{Cite book |author1=Chisholm, Wendy |author2=May, Matt | title=Universal design for Web applications | publisher= ] | year=2008| access-date=2010-06-28 | url=https://archive.org/details/isbn_9780596518738 |url-access=registration |page= |quote=subrip subtitles youtube. | isbn=978-0-596-51873-8 }} | ||
* {{cite journal |title=Extraire les sous-titres d'un DVD vidéo |trans-title=Extract subtitles from video DVD |language=French |journal=DivX Magazine |series=Hors Série |volume=3 |page=17-19 |publisher=Image Publication Luxembourg |publication-date=2006 |url=https://download.abandonware.org/magazines/DIVX%20Magazine/divxmagazine_numerohs03.zip}}<!-- | |||
* {{cite book | last=Bruegmann | first =Ulrich | title = Divx R.t.f.m. – Divx 6 | publisher=Lulu.com | year=2006 | isbn=978-1-84728-676-5 | language=German | url=http://books.google.com/?id=_4j9S7hyiWkC&pg=PA303&dq=subrip+subtitles&q=subrip |ref=harv}} | |||
Original website magazine: https://web.archive.org/web/20071010095930/http://www.divxmag.com/default_hs3.asp | |||
DivX Magazine described in master thesis: http://fgimello.free.fr/documents/memoire_Wojnas.pdf | |||
Magazine: https://www.abandonware-magazines.org/affiche_mag.php?mag=279&page=1 --> | |||
* {{cite journal |title=Onmisbare divx-utilities |trans-title=Essential divx utilities |language=Dutch |journal=PCM |series=Gratis bijlage |date=July 2005 |first=Jeroen |last=Horlings |page=51}}<!-- Alles over Divx.pdf | |||
Personal Computer Magazine: www.pcmweb.nl --> | |||
{{refend}} | |||
==External links== | ==External links== | ||
* {{Commons-inline|list= | |||
* <!-- Note: zuggy site is referenced in Thaureaux. See Discussion. --> | |||
** ] | |||
* . Doom9.org. April 7, 2004. Derived from the SubRip source code in 2004.<!-- Keep per ]. Can't be a reference, but ok as link. --> | |||
** ] | |||
* | |||
}} | |||
* – comparison of .srt feature handling in a range of common players | |||
* {{official website|http://zuggy.wz.cz/}}<!-- Note: zuggy site is referenced in Thaureaux. See Discussion. --> | |||
* {{cite web |url= http://forum.doom9.org/showthread.php?p=470941#post470941 |title= .SRT SubRip file format specification |publisher= Doom9 |access-date= April 7, 2004 |quote= Derived from the SubRip source code}} <!-- Keep per ]. Can't be a reference, but ok as link. --> | |||
] | ] | ||
] | ] | ||
] | ] | ||
] | ] |
Latest revision as of 00:12, 25 December 2024
Program that extracts subtitles from videoDeveloper(s) | Brain, T.V. Zuggy, mrSHADOW, Yakov, ai4spam, Bloody, Roy Damman, |
---|---|
Initial release | 3 March 2000; 24 years ago (2000-03-03) |
Stable release | 1.57.1 / November 14, 2018 (2018-11-14) |
Written in | Delphi |
Operating system | Microsoft Windows |
Available in | English |
Type | Subtitle editor |
License | GPL |
Website | zuggy |
Filename extension | .srt |
---|---|
Internet media type | application/x-subrip |
Developed by | Brain, 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 |
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. 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.
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.
Format
The SubRip file format is described on the Matroska multimedia container format website as "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 comma (,) is used for fractional separator.
- 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
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:
- Bold –
<b>…</b>
- Italic –
<i>…</i>
- Underline –
<u>…</u>
- Font color –
<font color="color name or #code">…</font>
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:…
.
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.
The SubRip format is supported directly by many subtitle creation and editing tools,
as well as 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.
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. The default encoding for subtitle files in FFmpeg is UTF-8.
SubViewer
In 1999, Brain created SubRip, and a friend, David Dolinski, created SubViewer, who offered it for download on his personal website.
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.
WebVTT
Main article: WebVTTA 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.
The prospective format was later renamed WebVTT (Web Video Text Track).
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. YouTube began supporting WebVTT in April, 2013.
See also
- Closed captioning
- Timed text
- Comparison of video player software § Subtitle ability
- Avidemux
- List of free television software
- MicroDVD
- SubStation Alpha
- Universal Subtitle Format
- DirectVobSub – able to extract subtitles from a DVD without first extracting the files from it
Notes
- "SubRip & SubMagic". The Brain's Web. Archived from the original on 13 April 2003. Retrieved 12 February 2022.
- ^ "SubRip 1.56.1 History". Free Codecs. 2015-10-13.
- ^ Zuggy, DVD, November 6, 2006.
- ^ Damman, Roy (2018-11-14). "Browse /subrip/SubRip 1.57.1". SubRip. SourceForge.net. Retrieved 12 February 2022.
- "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.
- "HTTPS není dostupné - Webzdarma.cz | Webzdarma.cz". zuggy.wz.cz. Archived from the original on 12 February 2022. Retrieved 30 June 2022.
- "ZuggyWu:d". zuggy.wz.cz. Archived from the original on 10 June 2021. Retrieved 22 February 2022.
- Android 10 value. Not IANA-approved and in fact invalid due to "x-" no longer being unregulated.
- 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.
- 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
- 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
- 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 2020-10-24.
- SubRip (.SRT) subtitles support in players – ale5000.altervista.org
- "Extended SRT spec (especially coordinate format) question [Archive] - Doom9's Forum". forum.doom9.org. Retrieved 2021-03-10.
- 陈波; 杨涛 (2006). 实用工具软件玩家攻略 (in Chinese). 清华大学出版社. pp. 75–76. ISBN 9787302119944. Retrieved 2010-09-11.
- 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.
- 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
- Tokig (2003-07-13), "Review of KiSS DP-500 – Playback", Nordic Hardware, archived from the original on 2012-03-01, retrieved 2010-07-21
- "Argosy Media Player HV335T HDD (HD1080p) product page", Argosy, 2009, archived from the original on 2010-02-08
- Cericola, Rachel (2009-12-08), "Western Digital WD TV Live HD Media Player review", Big Picture Big Sound
- Suerte Felipe, Carlo (2009-02-16), Get stylish with Samsung DVD-F1080, Manila Bulletin Publications, retrieved 2010-08-19
- 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.
- "New Captions Feature for Videos". Official YouTube Blog. 2008-08-28.
- "Supported subtitle and closed caption files - YouTube Help". support.google.com. Retrieved 14 August 2023.
- "FFmpeg Filters Documentation". ffmpeg.org. Retrieved 14 August 2023.
Set subtitles input character encoding. subtitles filter only. Only useful if not UTF-8.
- "SubViewer". Dado.be. Archived from the original on 5 November 2005. Retrieved 12 February 2022.
- ^ "New Captions Feature for Videos". YouTube Official Blog. Retrieved 12 February 2022.
- "SubRip". VideoLAN Wiki. Retrieved 12 February 2022.
- "SubViewer". VideoLAN Wiki. Retrieved 12 February 2022.
- "Subtitle Formats". Divxstation. Archived from the original on 9 February 2005. Retrieved 12 February 2022.
- "SubViewer 4.0.6". free-codecs.com. Retrieved 12 February 2022.
- 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".
- "Firefox 31 Release Notes".
- "Caption File - YouTube Help".
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.
- Zuggy, T.V. "SubRip home". zuggy.wz.cz. Retrieved 2010-08-19.
- Zuggy, T.V (December 8, 2005). "SubRip 1.20/1.50b – DVD subtitles ripper". zuggy.wz.cz. Retrieved 2010-01-10. (Software release page.)
- Zuggy, T.V (August 1, 2007). "News page". zuggy.wz.cz. Retrieved 2009-07-02.
- Zuggy, T.V (June 17, 2005). "Guide: Ripping subtitles from video files using SubRip". zuggy.wz.cz. Retrieved 2009-07-02.
- Xiao, Han; Wang, Xiaojie (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. Lecture Notes in Computer Science. Vol. 5459. Hong Kong: Springer. pp. 329–336. doi:10.1007/978-3-642-00831-3_32. ISBN 978-3-642-00830-6. Retrieved 2009-07-02.
- Chisholm, Wendy; May, Matt (2008). Universal design for Web applications. O'Reilly Media. p. 82. ISBN 978-0-596-51873-8. Retrieved 2010-06-28.
subrip subtitles youtube.
- "Extraire les sous-titres d'un DVD vidéo" [Extract subtitles from video DVD]. DivX Magazine. Hors Série (in French). 3. Image Publication Luxembourg: 17-19. 2006.
- Horlings, Jeroen (July 2005). "Onmisbare divx-utilities" [Essential divx utilities]. PCM. Gratis bijlage (in Dutch): 51.
External links
- Related media at Wikimedia Commons:
- Official website
- ".SRT SubRip file format specification". Doom9. Retrieved April 7, 2004.
Derived from the SubRip source code