Difference between revisions of "SubRip"
Jump to navigation
Jump to search
(→See also: New section: SongSubtitles.org (now defunct)) |
|||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Wikipedia | + | {{Mux|id=subrip|mod=subtitle}} |
+ | {{Wikipedia|SubRip}} | ||
− | '''SubRip''' is the native subtitle format of the | + | '''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]]. |
− | ==Specification== | + | It may have the [[file extension]] <code>.srt</code>. It can be embedded in [[Matroska|mkv]] files. |
+ | |||
+ | == Specification == | ||
=== Format === | === Format === | ||
− | + | Each frame of a subtitle is formatted as follows: | |
− | + | <!--Begin format code--> | |
− | + | <var>n</var> | |
− | + | h1:m1:s1,d1 --> h2:m2:s2,d2 | |
− | + | Line 1 | |
− | + | Line 2 | |
− | + | … | |
+ | |||
+ | <!--End format code--> | ||
+ | Note the last line is a blank line between subtitle frames, and the decimal separator is a comma (per French-style). | ||
− | + | ;<var>n</var> | |
− | + | :sequential number. This may also appear on the same line as start/stop times | |
− | + | ;<nowiki>h1:m1:s1,d1</nowiki> | |
+ | :start time of this frame, in hours minutes and seconds to three decimal places | ||
+ | ;<nowiki>h2:m2:s2,d2</nowiki> | ||
+ | :stop time | ||
− | === Example === | + | ==== 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 | ||
− | + | ||
− | 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… |
+ | <!--End example code--> | ||
=== Extensions === | === Extensions === | ||
− | Some subtitles feature | + | 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 |
− | * <font color= | + | * <code><nowiki><font color=… face=…></nowiki></code>: font attributes |
+ | |||
+ | == See also == | ||
+ | * [[SongSubtitles.org]] (now defunct) | ||
[[Category:Subtitles]] | [[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
- SongSubtitles.org (now defunct)