Difference between revisions of "SubRip"

From VideoLAN Wiki
Jump to navigation Jump to search
(→‎See also: New section: SongSubtitles.org (now defunct))
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Wikipedia|Subrip|SubRip}}
+
{{Mux|id=subrip|mod=subtitle}}
 +
{{Wikipedia|SubRip}}
  
'''SubRip''' is the native subtitle format of the [http://zuggy.wz.cz/ SubRip program].
+
'''SubRip''' is the native subtitle format of the [http://zuggy.wz.cz/ SubRip program], developed by a friend of the creator of [[SubViewer]]. It is one of the most used formats for [[subtitles]].
It is one of the most used formats for subtitles.
 
  
It may have the [[file extension]] .srt. It can be embedded in [[Matroska|mkv]] files
+
It may have the [[file extension]] <code>.srt</code>. It can be embedded in [[Matroska|mkv]] files.
  
==Specification==
+
== Specification ==
 
=== Format ===
 
=== Format ===
Each frame of a subtitle is formatted as follows:<br>
+
Each frame of a subtitle is formatted as follows:
:n<br>
+
<!--Begin format code-->
:h1:m1:s1,d1 --> h2:m2:s2,d2<br>
+
<var>n</var>
:Line 1<br>
+
h1:m1:s1,d1 --> h2:m2:s2,d2
:Line 2<br>
+
Line 1
:...<br>
+
Line 2
::(blank line between subtitle frames)<br>
+
&hellip;
 +
 +
<!--End format code-->
 +
Note the last line is a blank line between subtitle frames, and the decimal separator is a comma (per French-style).
  
'''n''' = sequential number.  This may also appear on the same line as start/stop times.<br>
+
;<var>n</var>
'''h1:m1:s1,d1''' = start time of this frame, in hours minutes and seconds to three decimal places.<br>
+
:sequential number.  This may also appear on the same line as start/stop times
'''h2:m2:s2,d2''' = stop time.<br>
+
;<nowiki>h1:m1:s1,d1</nowiki>
::Note the French-style comma for the decimal delimiter.
+
:start time of this frame, in hours minutes and seconds to three decimal places
 +
;<nowiki>h2:m2:s2,d2</nowiki>
 +
:stop time
  
''' Example: ''' a 2 frame subtitle
+
==== Example ====
 +
A 2-frame subtitle:
 +
<!--Begin example code-->
 
  1
 
  1
 
  00:00:20,000 --> 00:00:24,400
 
  00:00:20,000 --> 00:00:24,400
 
  a bla bla ble a bla bla ble
 
  a bla bla ble a bla bla ble
 
  a bla bla ble
 
  a bla bla ble
  &nbsp;
+
   
  2  
+
  2
  00:00:24,600 --> 00:00:27,800  
+
  00:00:24,600 --> 00:00:27,800
  a bla bla ble...
+
  a bla bla ble&hellip;
 +
<!--End example code-->
  
You can opt for a http://www.earlshop.com/ traditional purse. Maybe the most logical definition for a "classic" purse can be a bag that may be worn year right after 12 months by females, becomes iconic in the style world, and never goes http://www.sonbags.com/ out of style. Obtaining a traditional purse which will never go out of type is tough to uncover. Women often flock to your handbags that every girl desires, or http://www.earlshop.com/Watches-Tag-Heuer.html that have been in model for years. Some handbags that you never ever must fear of being outdated are the: Chanel Basic Flap Bag; Chanel Significant Buying bag; Hermes Birkin; Louis Vuitton Alma; Louis http://www.sonbags.com/coach.html Vuitton Speedy; and the YSL Large Tribute. Some men and women may perhaps not think about Marc Jacobs to be a traditional handbag designer, but I beg to differ. When Marc Jacobs http://www.earlshop.com/Watches-Tag-Heuer.html introduced the "Stam" purse he provoked girls across the globe to update their wish lists and dream about yet another gorgeous bag. Ladies, you also need to know how you http://www.sonbags.com/gucci-wallet.html can pick the appropriate purse for your entire body. When it comes to the http://www.earlshop.com/Watches-Armani.html selection procedure, however, numerous girls do not take into consideration how the purse might impact their overall appearance. The truth with the matter is the incorrect handbag can http://www.sonbags.com/chanel.html totally break an outfit. Pairing the best design of with your body sort can be just as flattering as a pair of perfectly-cut jeans.
+
=== Extensions ===
 +
Some subtitles feature html tags inside the SubRip text:
 +
* {{Tag pair|b}}: bold
 +
* {{Tag pair|s}}: strikethrough
 +
* {{Tag pair|u}}: underline
 +
* {{Tag pair|i}}: italic
 +
* <code><nowiki>&lt;font color=&hellip; face=&hellip;&gt;</nowiki></code>: font attributes
 +
 
 +
== See also ==
 +
* [[SongSubtitles.org]] (now defunct)
 +
 
 +
[[Category:Subtitles]]

Latest revision as of 05:45, 28 April 2019

subrip
VLC can decode this container.
The module name to use at the command line is subtitle.

SubRip is the native subtitle format of the SubRip program, developed by a friend of the creator of SubViewer. It is one of the most used formats for subtitles.

It may have the file extension .srt. It can be embedded in mkv files.

Specification

Format

Each frame of a subtitle is formatted as follows:

n
h1:m1:s1,d1 --> h2:m2:s2,d2
Line 1
Line 2
…

Note the last line is a blank line between subtitle frames, and the decimal separator is a comma (per French-style).

n
sequential number. This may also appear on the same line as start/stop times
h1:m1:s1,d1
start time of this frame, in hours minutes and seconds to three decimal places
h2:m2:s2,d2
stop time

Example

A 2-frame subtitle:

1
00:00:20,000 --> 00:00:24,400
a bla bla ble a bla bla ble
a bla bla ble

2
00:00:24,600 --> 00:00:27,800
a bla bla ble…

Extensions

Some subtitles feature html tags inside the SubRip text:

  • <b>…</b>: bold
  • <s>…</s>: strikethrough
  • <u>…</u>: underline
  • <i>…</i>: italic
  • <font color=… face=…>: font attributes

See also