109
<title>Subtitles and OSD</title>
112
<application>MPlayer</application> can display subtitles along with movie files.
113
Currently the following formats are supported:
115
<listitem><para>VOBsub</para></listitem>
116
<listitem><para>OGM</para></listitem>
117
<listitem><para>CC (closed caption)</para></listitem>
118
<listitem><para>MicroDVD</para></listitem>
119
<listitem><para>SubRip</para></listitem>
120
<listitem><para>SubViewer</para></listitem>
121
<listitem><para>Sami</para></listitem>
122
<listitem><para>VPlayer</para></listitem>
123
<listitem><para>RT</para></listitem>
124
<listitem><para>SSA</para></listitem>
125
<listitem><para>PJS (Phoenix Japanimation Society)</para></listitem>
126
<listitem><para>MPsub</para></listitem>
127
<listitem><para>AQTitle</para></listitem>
128
<listitem><para><ulink url="http://unicorn.us.com/jacosub/">JACOsub</ulink></para></listitem>
133
<application>MPlayer</application> can dump the previously listed subtitle formats
134
(<emphasis role="bold">except the three first</emphasis>) into the following
135
destination formats, with the given options:
137
<listitem><para>MPsub: <option>-dumpmpsub</option></para></listitem>
138
<listitem><para>SubRip: <option>-dumpsrtsub</option></para></listitem>
139
<listitem><para>MicroDVD: <option>-dumpmicrodvdsub</option></para></listitem>
140
<listitem><para>JACOsub: <option>-dumpjacosub</option></para></listitem>
141
<listitem><para>Sami: <option>-dumpsami</option></para></listitem>
146
<application>MEncoder</application> can dump DVD subtitles into
147
<link linkend="menc-feat-extractsub">VOBsub</link> format.
151
The command line options differ slightly for the different formats:
155
<title>VOBsub subtitles</title>
157
VOBsub subtitles consist of a big (some megabytes) <filename>.SUB</filename> file,
158
and optional <filename>.IDX</filename> and/or <filename>.IFO</filename>
159
files. If you have files like
160
<filename><replaceable>sample.sub</replaceable></filename>,
161
<filename><replaceable>sample.ifo</replaceable></filename> (optional),
162
<filename><replaceable>sample.idx</replaceable></filename> - you have to pass
163
<application>MPlayer</application> the <option>-vobsub sample
164
[-vobsubid <replaceable>id</replaceable>]</option> options
165
(full path optional). The <option>-vobsubid</option> option is like
166
<option>-sid</option> for DVDs, you can choose between subtitle tracks
167
(languages) with it. In case that <option>-vobsubid</option> is omitted,
168
<application>MPLayer</application> will try to use the languages given by the
169
<option>-slang</option> option and fall back to the <systemitem>langidx</systemitem>
170
in the <filename>.IDX</filename> file to set the subtitle language. If it fails,
171
there will be no subtitles.
176
<title>Other subtitles</title>
178
The other formats consist of a single text file containing timing,
179
placement and text information. Usage: If you have a file like
180
<filename><replaceable>sample.txt</replaceable></filename>,
181
you have to pass the option <option>-sub
182
<replaceable>sample.txt</replaceable></option> (full path optional).
187
<title>Adjusting subtitle timing and placement:</title>
189
<term><option>-subdelay <replaceable>sec</replaceable></option></term>
191
Delays subtitles by <option><replaceable>sec</replaceable></option> seconds.
192
Can be negative. The value is added to movie's time position counter.
193
</simpara></listitem>
196
<term><option>-subfps <replaceable>RATE</replaceable></option></term>
198
Specify frame/sec rate of subtitle file (float number).
199
</simpara></listitem>
202
<term><option>-subpos <replaceable>0-100</replaceable></option></term>
204
Specify the position of subtitles.
205
</simpara></listitem>
210
If you experience a growing delay between the movie and the subtitles when
211
using a MicroDVD subtitle file, most likely the framerate of the movie and
212
the subtitle file are different. Please note that the MicroDVD subtitle
213
format uses absolute frame numbers for its timing, but there is no fps
214
information in it, and therefore the <option>-subfps</option> option should
215
be used with this format. If you like to solve this problem permanently,
216
you have to manually convert the subtitle file framerate.
217
<application>MPlayer</application> can do this
220
<screen>mplayer -dumpmicrodvdsub -fps <replaceable>subtitles_fps</replaceable> -subfps <replaceable>avi_fps</replaceable> -sub <replaceable>subtitle_filename</replaceable> <replaceable>dummy.avi</replaceable></screen>
224
About DVD subtitles, read the <link linkend="dvd">DVD</link> section.
108
229
<sect1 id="control">
109
230
<title>Control</title>