annotate DOCS/xml/en/usage.xml @ 12615:84e078fd64b4

uniform VOBsub spelling
author diego
date Mon, 21 Jun 2004 12:47:41 +0000
parents 06474b60be53
children 96a19fe69062
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 <?xml version="1.0" encoding="iso-8859-1"?>
10913
49b1a67e7381 Add revision keyword to english xml files, to ease translation synchronization
lumag
parents: 10755
diff changeset
2 <!-- $Revision$ -->
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 <chapter id="usage">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
4 <title>Usage</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
5
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 <sect1 id="commandline">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
7 <title>Command line</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
8
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
10 <application>MPlayer</application> utilizes a complex playtree. It consists
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
11 of global options written as first, for example
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
12
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 <screen>mplayer -vfm 5</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
14
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
15 and options written after filenames, that apply only to the given
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
16 filename/URL/whatever, for example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
17
11737
0d5f9340f983 missing <replaceable> tag
paszczi
parents: 11713
diff changeset
18 <screen>mplayer -vfm 5 <replaceable>movie1.avi</replaceable> <replaceable>movie2.avi</replaceable> -vfm 4</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
19 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
20
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
22 You can group filenames/URLs together using <literal>{</literal> and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
23 <literal>}</literal>. It's useful with option <option>-loop</option>:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
24
10643
ec69923456d1 Fix '- loop' to '-loop' option into example
nauj27
parents: 10184
diff changeset
25 <screen>mplayer { 1.avi -loop 2 2.avi } -loop 3</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
26
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
27 The above command will play files in this order: 1, 1, 2, 1, 1, 2, 1, 1, 2.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
28 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
29
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
30 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 Playing a file:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
32 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
33 <command>mplayer</command><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 --> [<replaceable>options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
35 --> [<replaceable>path</replaceable>/]<replaceable>filename</replaceable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
37 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
38
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
39 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
40 Playing more files:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
41 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
42 <command>mplayer</command><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
43 --> [<replaceable>default options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
44 --> [<replaceable>path</replaceable>/]<replaceable>filename1</replaceable><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
45 --> [<replaceable>options for filename1</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
46 --> <replaceable>filename2</replaceable><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
47 --> [<replaceable>options for filename2</replaceable>] ...
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
49 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
50
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
51 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
52 Playing VCD:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
53 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
54 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10144
diff changeset
55 --> vcd://<replaceable>trackno</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
56 --> [-cdrom-device <replaceable>/dev/cdrom</replaceable>]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
57 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
59
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
60 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
61 Playing DVD:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
62 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
63 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10144
diff changeset
64 --> dvd://<replaceable>titleno</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
65 --> [-dvd-device <replaceable>/dev/dvd</replaceable>]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
66 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
67 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
68
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
69 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
70 Playing from the WWW:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
71 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
72 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
73 --> http://<replaceable>site.com/file.asf</replaceable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
74 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
75 (playlists can be used, too)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
76 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
77
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
78 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
79 Playing from RTSP:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
80 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
81 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
82 --> rtsp://<replaceable>server.example.com/streamName</replaceable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
83 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
84 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
85
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
86 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
87 Examples:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
88 <screen>
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
89 mplayer -vo x11 <replaceable>/mnt/Films/Contact/contact2.mpg</replaceable>
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
90 mplayer vcd://<replaceable>2</replaceable> -cd-rom-device <replaceable>/dev/hdc</replaceable>
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
91 mplayer -afm 3 <replaceable>/mnt/DVDtrailers/alien4.vob</replaceable>
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
92 mplayer dvd://<replaceable>1</replaceable> -dvd-device <replaceable>/dev/hdc</replaceable>
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
93 mplayer -abs 65536 -delay -0.4 -nobps <replaceable>~/movies/test.avi</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
94 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
95 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
96 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
97
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
98
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
99 <sect1 id="control">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
100 <title>Control</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
101
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
102 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
103 <application>MPlayer</application> has a fully configurable, command
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
104 driven, control layer which lets you control
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
105 <application>MPlayer</application> with keyboard, mouse, joystick or remote
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 control (using LIRC). See the man page for the complete list of keyboard controls.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
107 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
108
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
109
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
110 <sect2 id="ctrl-cfg">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
111 <title>Controls configuration</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
112
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
113 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
114 <application>MPlayer</application> allows you bind any key/button to any
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
115 <application>MPlayer</application> command using a simple config file.
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
116 The syntax consist of a key name followed by a command. The default config file location is
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
117 <filename>$HOME/.mplayer/input.conf</filename> but it can be overridden
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
118 using the <option>-input <replaceable>conf</replaceable></option> option
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
119 (relative path are relative to <filename>$HOME/.mplayer</filename>).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
120 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
121
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
122 <example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
123 <title>A simple input control file</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
124 <programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
125 ##
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
126 ## MPlayer input control file
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
127 ##
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
128
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
129 RIGHT seek +10
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
130 LEFT seek -10
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
131 - audio_delay 0.100
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
132 + audio_delay -0.100
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
133 q quit
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
134 &gt; pt_step 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
135 &lt; pt_step -1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
136 ENTER pt_step 1 1<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
137 --></programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
138 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
139
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
140
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
141 <sect3 id="ctrl-cfg-keys">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
142 <title>Key names</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
143
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
144 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
145 You can have a full list by running
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
146 <command>mplayer -input keylist</command>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
147 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
148
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
149 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
150 <title>Keyboard</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
151 <listitem><simpara>Any printable character</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
152 <listitem><simpara><literal>SPACE</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
153 <listitem><simpara><literal>ENTER</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
154 <listitem><simpara><literal>TAB</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
155 <listitem><simpara><literal>CTRL</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
156 <listitem><simpara><literal>BS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
157 <listitem><simpara><literal>DEL</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 <listitem><simpara><literal>INS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
159 <listitem><simpara><literal>HOME</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
160 <listitem><simpara><literal>END</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
161 <listitem><simpara><literal>PGUP</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
162 <listitem><simpara><literal>PGDWN</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
163 <listitem><simpara><literal>ESC</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
164 <listitem><simpara><literal>RIGHT</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
165 <listitem><simpara><literal>LEFT</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
166 <listitem><simpara><literal>UP</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
167 <listitem><simpara><literal>DOWN</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
168 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
169
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
170 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
171 <title>Mouse (only supported under X)</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
172 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
173 <literal>MOUSE_BTN0</literal> (Left button)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
174 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
175 <literal>MOUSE_BTN1</literal> (Right button)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
176 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
177 <literal>MOUSE_BTN2</literal> (Middle button)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
179 <literal>MOUSE_BTN3</literal> (Wheel)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
180 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
181 <literal>MOUSE_BTN4</literal> (Wheel)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
182 <listitem><simpara>...</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
183 <listitem><simpara><literal>MOUSE_BTN9</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
184 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
185
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
186 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
187 <title>Joystick (support must be enabled at compile time)</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
188 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
189 <literal>JOY_RIGHT</literal> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
190 <literal>JOY_AXIS0_PLUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
191 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
192 <literal>JOY_LEFT</literal> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 <literal>JOY_AXIS0_MINUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
195 <literal>JOY_UP</literal> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
196 <literal>JOY_AXIS1_MINUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
197 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
198 <literal>JOY_DOWN</literal> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
199 <literal>JOY_AXIS1_PLUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
200 <listitem><simpara><literal>JOY_AXIS2_PLUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
201 <listitem><simpara><literal>JOY_AXIS2_MINUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
202 <listitem><simpara>...</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
203 <listitem><simpara><literal>JOY_AXIS9_PLUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
204 <listitem><simpara><literal>JOY_AXIS9_MINUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
205 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
206 </sect3>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
207
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
208
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
209 <sect3 id="ctrl-cfg-commands">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
210 <title>Commands</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
211
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
212 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
213 You can have a full list of known commands by running
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
214 <command>mplayer -input cmdlist</command>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
215 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
216
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
217 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
218 <listitem><para><literal>seek</literal> (int) val [(int) type=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
219 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
220 Seek to some place in the movie.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
221 Type <literal>0</literal> is a relative seek of +/- val seconds.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
222 Type <literal>1</literal> seek to val % in the movie.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
223 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
224 <listitem><para><literal>audio_delay</literal> (float) val</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
225 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
226 Adjust the audio delay of val seconds
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
227 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
228 <listitem><para><literal>quit</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
229 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
230 Quit <application>MPlayer</application>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
231 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
232 <listitem><para><literal>pause</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
233 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
234 Pause/unpause the playback
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
235 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
236 <listitem><para><literal>grap_frames</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
237 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
238 Somebody know ?
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
239 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
240 <listitem><para><literal>pt_step</literal> (int) val [(int) force=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
241 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
242 Go to next/previous entry in playtree. Val sign tell the direction. If
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
243 no other entry is available in the given direction it won't do anything
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
244 unless force is non 0.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
245 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
246 <listitem><para><literal>pt_up_step</literal> (int) val [(int) force=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
247 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
248 Like pt_step but it jump to next/previous in the parent list. It's useful
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
249 to break inner loop in the playtree.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
250 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
251 <listitem><para><literal>alt_src_step</literal> (int) val</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
252 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
253 When more than one source is available it select the next/previous one
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
254 (only supported by asx playlist).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
255 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
256 <listitem><para><literal>sub_delay</literal> (float) val [(int) abs=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
257 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
258 Adjust the subtitles delay of +/- val seconds or set it to val seconds
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
259 when abs is non zero.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
260 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
261 <listitem><para><literal>osd</literal> [(int) level=-1]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
262 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
263 Toggle osd mode or set it to level when level &gt; 0.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
264 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
265 <listitem><para><literal>volume</literal> (int) dir</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
266 <para>Increase/decrease volume
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
267 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
268 <listitem><simpara><literal>contrast</literal> (int) val [(int) abs=0]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
269 </simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
270 <listitem><simpara><literal>brightness</literal> (int) val [(int) abs=0]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
271 </simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
272 <listitem><simpara><literal>hue</literal> (int) val [(int) abs=0]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
273 </simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
274 <listitem><para><literal>saturation</literal> (int) val [(int) abs=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
275 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
276 Set/Adjust video parameters. Val range from -100 to 100.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
277 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
278 <listitem><para><literal>frame_drop</literal> [(int) type=-1]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
279 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
280 Toggle/Set frame dropping mode.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
281 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
282 <listitem><para><literal>sub_visibility</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
283 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
284 Adjust subtitles visibility.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
285 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
286 <listitem><para><literal>sub_pos</literal> (int) val</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
287 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
288 Adjust subtitles position.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
289 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
290 <listitem><para><literal>vobsub_lang</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
291 <para>
12615
84e078fd64b4 uniform VOBsub spelling
diego
parents: 11786
diff changeset
292 Change the language of VOBsub subtitles.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
293 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
294 <listitem><para><literal>vo_fullscreen</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
295 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
296 Switch fullscreen mode.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
297 </para></listitem>
11542
85e503ddf65f runtime 'stay-on-top' functionality
joey
parents: 11540
diff changeset
298 <listitem><para><literal>vo_ontop</literal></para>
85e503ddf65f runtime 'stay-on-top' functionality
joey
parents: 11540
diff changeset
299 <para>
85e503ddf65f runtime 'stay-on-top' functionality
joey
parents: 11540
diff changeset
300 Toggle stay-on-top. Supported by drivers which use X11, except SDL,
85e503ddf65f runtime 'stay-on-top' functionality
joey
parents: 11540
diff changeset
301 as well as directx and gl2 under Windows.
85e503ddf65f runtime 'stay-on-top' functionality
joey
parents: 11540
diff changeset
302 </para></listitem>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
303 <listitem><para><literal>tv_step_channel</literal> (int) dir</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
304 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
305 Select next/previous tv channel.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
306 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
307 <listitem><para><literal>tv_step_norm</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
308 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
309 Change TV norm.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
310 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
311 <listitem><para><literal>tv_step_chanlist</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
312 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
313 Change channel list.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
314 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
315 <listitem><simpara><literal>gui_loadfile</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
316 <listitem><simpara><literal>gui_loadsubtitle</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
317 <listitem><simpara><literal>gui_about</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
318 <listitem><simpara><literal>gui_play</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319 <listitem><simpara><literal>gui_stop</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 <listitem><simpara><literal>gui_playlist</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
321 <listitem><simpara><literal>gui_preferences</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
322 <listitem><para><literal>gui_skinbrowser</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
323 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
324 GUI actions
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
325 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
326 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
327 </sect3>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
330
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331 <sect2 id="lirc">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332 <title>Control from LIRC</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
333
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
334 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
335 Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
336 an (almost) arbitrary remote control and control your linux box with it!
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
337 More about it at <ulink url="http://www.lirc.org">www.lirc.org</ulink>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
338 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
339
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
340 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
341 If you have installed the lirc-package, configure will autodetect it. If
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
342 everything went fine, <application>MPlayer</application> will print a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 message like "<computeroutput>Setting up lirc support...</computeroutput>"
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
344 on startup. If an error occurs it will tell you. If it doesn't tell you
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
345 anything about LIRC there's no support compiled in. That's it :-)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
346 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
347
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
348 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
349 The application name for <application>MPlayer</application> is - oh wonder
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
350 - <filename>mplayer</filename>. You can use any mplayer commands and even
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
351 pass more than one command by separating them with <literal>\n</literal>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
352 Don't forget to enable the repeat flag in <filename>.lircrc</filename> when
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
353 it make sense (seek, volume, etc). Here's an excerpt from my
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
354 <filename>.lircrc</filename>:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
355 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
356
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
357 <programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
358 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
359 button = VOLUME_PLUS
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
361 config = volume 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
362 repeat = 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
363 end
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
364
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
365 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
366 button = VOLUME_MINUS
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
367 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
368 config = volume -1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
369 repeat = 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
370 end
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
371
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
372 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
373 button = CD_PLAY
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
374 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
375 config = pause
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
376 end
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
377
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
378 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
379 button = CD_STOP
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
380 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
381 config = seek 0 1\npause
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
382 end<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
383 --></programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
384
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
385 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
386 If you don't like the standard location for the lirc-config file
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
387 (<filename>~/.lircrc</filename>) use the <option>-lircconf
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
388 <replaceable>filename</replaceable></option> switch to specify another
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
389 file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
390 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
391 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
392
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
393
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
394 <sect2 id="slave-mode">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
395 <title>Slave mode</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
396 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
397 The slave mode allow you to build simple frontend to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
398 <application>MPlayer</application>. When enabled (with the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
399 <option>-slave</option> option) <application>MPlayer</application> will
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
400 read commands separated by new line (\n) from stdin.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
401 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
402 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
403 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
404
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
405
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
406 <sect1 id="streaming">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
407 <title>Streaming from network or pipes</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
408
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
409 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
410 <application>MPlayer</application> can play files from network, using the
10755
diego
parents: 10643
diff changeset
411 HTTP, FTP, MMS or RTSP/RTP protocol.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
412 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
413
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
414 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
415 Playing goes by simply using adding the URL to the command line.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
416 <application>MPlayer</application> also honors the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
417 <envar>http_proxy</envar> environment variable, and uses proxy if
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
418 available. Proxy usage can also be forced:
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
419 <screen>mplayer <replaceable>http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf</replaceable></screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
420 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
421
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
422 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
423 <application>MPlayer</application> can read from stdin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
424 (<emphasis>not</emphasis> named pipes). This can be for example used to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
425 play from FTP:
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
426 <screen>wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
427 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
428
11035
094e0838e5a7 <para>Note:.... </para> really should be <note><para>....</para></note>
lumag
parents: 10968
diff changeset
429 <note><para>
11143
ebf702420f9b Add some missing <option> tags, patch by Torinthiel.
diego
parents: 11035
diff changeset
430 Note: it's also recommended to enable <option>-cache</option> when playback from network:
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
431 <screen>wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -cache 8192 -</screen>
11035
094e0838e5a7 <para>Note:.... </para> really should be <note><para>....</para></note>
lumag
parents: 10968
diff changeset
432 </para></note>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
433 </sect1>
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
434
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
435 <sect1 id="mpst" xreflabel="Remote streams">
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
436 <title>Remote streams</title>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
437
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
438 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
439 Remote streams allow you to access most <application>MPlayer</application>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
440 stream type from a remote host. The main purpose of this feature is to make
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
441 it possible to directly use the CD or DVD drive of another computer on the
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
442 network (provided you have the required bandwidth). On the downside some
11271
252fb0cf331a spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents: 11143
diff changeset
443 stream type (currently TV and MF) are not usable remotely because they are
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
444 implemented at the demuxer level. It's sad for MF but TV stream would anyway
11271
252fb0cf331a spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents: 11143
diff changeset
445 require an insane amount of bandwidth.
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
446 </para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
447
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
448 <sect2 id="compile_mpst_server">
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
449 <title>Compiling the server</title>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
450 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
451 After having compiled <application>MPlayer</application> go to the
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
452 <filename>TOOLS/netstream</filename> directory and enter
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
453 <application>make</application> to build the server binary.
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
454 You can then copy the <application>netstream</application> binary
9969
nicolas
parents: 9966
diff changeset
455 to the right place on your system (usually
nicolas
parents: 9966
diff changeset
456 <filename class="directory">/usr/local/bin</filename> on Linux).
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
457 </para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
458 </sect2>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
459
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
460 <sect2 id="use_mpst">
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
461 <title>Using remote streams</title>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
462 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
463 First you have to start the server on the computer you intend to remotely
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
464 access. Currently the server is very basic and doesn't have any commands
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
465 line arguments so just enter <filename>netstream</filename>. Now you can
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
466 for example play the second track of a VCD on the server with :
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
467 <screen>
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
468 mplayer -cache 5000 <replaceable>mpst://servername/vcd://2</replaceable>
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
469 </screen>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
470 You can also access files on this server :
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
471 <screen>
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
472 mplayer -cache 5000 <replaceable>mpst://servername//usr/local/movies/lol.avi</replaceable>
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
473 </screen>
11271
252fb0cf331a spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents: 11143
diff changeset
474 Note that paths which aren't starting with a / will be relative to
11143
ebf702420f9b Add some missing <option> tags, patch by Torinthiel.
diego
parents: 11035
diff changeset
475 the directory where the server is running. The <option>-cache</option> option is not
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
476 needed but highly recommended.
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
477 </para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
478
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
479 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
480 Be aware that currently the server is not secure at all. So don't complain
11271
252fb0cf331a spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents: 11143
diff changeset
481 about the numerous exploits which are possible through this. Instead send
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
482 some (good) patch to make it better or start writing your own server.
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
483 </para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
484
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
485 </sect2>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
486
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
487 </sect1>
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
488
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
489 <sect1 id="edl" xreflabel="Edit Decision Lists (EDL)">
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
490 <title>Edit Decision Lists (EDL)</title>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
491
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
492 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
493 The edit decision list (EDL) system allows you to automatically skip
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
494 or mute sections of videos during playback, based on a movie specific
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
495 EDL configuration file.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
496 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
497
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
498 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
499 This is useful for those who may want to watch a film in "family-friendly"
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
500 mode. You can cut out any violence, profanity, Jar-Jar Binks .. from a movie
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
501 according to your own personal preferences. Aside from this, there are other
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
502 uses, like automatically skipping over commercials in video files you watch.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
503 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
504
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
505 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
506 The EDL file format is pretty bare-bones. Once the EDL system has reached a
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
507 certain level of maturity, an XML-based file format will probably be implemented
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
508 (keeping backwards compatibility with previous EDL formats).
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
509 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
510
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
511 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
512 The maximum number of EDL entries for the current incarnation of EDL is 1000.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
513 If you happen to need more, change the <systemitem>#define MAX_EDL_ENTRIES</systemitem>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
514 in the <filename>edl.h</filename> file.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
515 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
516
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
517 <sect2 id="edl_using">
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
518 <title>Using an EDL file</title>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
519 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
520 Include the <option>-edl &lt;filename&gt;</option> flag when you run
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
521 <application>MPlayer</application>, with the name of the EDL file you
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
522 want applied to the video.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
523 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
524 </sect2>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
525
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
526 <sect2 id="edl_making">
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
527 <title>Making an EDL file</title>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
528 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
529 The current EDL file format is:
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
530 <programlisting>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
531 [begin second] [end second] [action]
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
532 </programlisting>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
533 Where the seconds are floating-point numbers and the action is either
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
534 <literal>0</literal> for skip or <literal>1</literal> for mute. Example:
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
535 <programlisting>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
536 5.3 7.1 0
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
537 15 16.7 1
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
538 420 422 0
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
539 </programlisting>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
540 This will skip from second 5.3 to second 7.1 of the video, then mute at
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
541 15 seconds, unmute at 16.7 seconds and skip from second 420 to second 422
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
542 of the video. These actions will be performed when the playback timer
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
543 reaches the times given in the file.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
544 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
545
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
546 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
547 To create an EDL file to work from, use the <option>-edlout &lt;filename&gt;</option>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
548 flag. During playback, when you want to mark the previous two seconds to skip over,
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
549 hit <keycap>i</keycap>. A corresponding entry will be written to the file for
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
550 that time. You can then go back and fine-tune the generated EDL file.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
551 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
552 </sect2>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
553
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
554 </sect1>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
555
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
556 </chapter>