annotate DOCS/xml/en/usage.xml @ 10755:8ec62402a8a3

sync
author diego
date Sun, 31 Aug 2003 22:10:52 +0000
parents ec69923456d1
children 49b1a67e7381
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"?>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
2 <chapter id="usage">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 <title>Usage</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
4
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
5 <sect1 id="commandline">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 <title>Command line</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
7
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 <application>MPlayer</application> utilizes a complex playtree. It consists
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
10 of global options written as first, for example
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
11
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 <screen>mplayer -vfm 5</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
13
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 and options written after filenames, that apply only to the given
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
15 filename/URL/whatever, for example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
16
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
17 <screen>mplayer -vfm 5 movie1.avi movie2.avi -vfm 4</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
18 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
19
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
20 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 You can group filenames/URLs together using <literal>{</literal> and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
22 <literal>}</literal>. It's useful with option <option>-loop</option>:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
23
10643
ec69923456d1 Fix '- loop' to '-loop' option into example
nauj27
parents: 10184
diff changeset
24 <screen>mplayer { 1.avi -loop 2 2.avi } -loop 3</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
25
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
26 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
27 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
28
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
30 Playing a file:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
32 <command>mplayer</command><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
33 --> [<replaceable>options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 --> [<replaceable>path</replaceable>/]<replaceable>filename</replaceable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
35 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
37
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
38 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
39 Playing more files:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
40 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
41 <command>mplayer</command><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
42 --> [<replaceable>default options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
43 --> [<replaceable>path</replaceable>/]<replaceable>filename1</replaceable><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
44 --> [<replaceable>options for filename1</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
45 --> <replaceable>filename2</replaceable><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
46 --> [<replaceable>options for filename2</replaceable>] ...
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
47 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
49
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
50 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
51 Playing VCD:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
52 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
53 <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
54 --> vcd://<replaceable>trackno</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
55 --> [-cdrom-device <replaceable>/dev/cdrom</replaceable>]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
56 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
57 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
58
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
59 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
60 Playing DVD:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
61 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
62 <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
63 --> dvd://<replaceable>titleno</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
64 --> [-dvd-device <replaceable>/dev/dvd</replaceable>]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
65 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
66 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
67
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
68 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
69 Playing from the WWW:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
70 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
71 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
72 --> http://<replaceable>site.com/file.asf</replaceable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
73 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
74 (playlists can be used, too)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
75 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
76
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
77 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
78 Playing from RTSP:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
79 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
80 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
81 --> rtsp://<replaceable>server.example.com/streamName</replaceable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
82 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
83 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
84
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
85 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
86 Latest versions of <application>MPlayer</application> also accepts VCD and
10144
6b2c6ced772a no capital X in xine's name
nicolas
parents: 9969
diff changeset
87 DVD tracks in URL style, just like <application>xine</application> does:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
88 <screen>mplayer dvd://1</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
89 or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
90 <screen>mplayer vcd://1</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
91 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
92
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
93 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
94 Examples:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
95 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
96 mplayer -vo x11 /mnt/Films/Contact/contact2.mpg
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10144
diff changeset
97 mplayer vcd://2 -cd-rom-device /dev/hdc
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
98 mplayer -afm 3 /mnt/DVDtrailers/alien4.vob
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10144
diff changeset
99 mplayer dvd://1 -dvd-device /dev/hdc
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
100 mplayer -abs 65536 -delay -0.4 -nobps ~/movies/test.avi<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
101 --></screen>
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 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
104
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
105
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 <sect1 id="control">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
107 <title>Control</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
108
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
109 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
110 <application>MPlayer</application> has a fully configurable, command
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
111 driven, control layer which lets you control
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
112 <application>MPlayer</application> with keyboard, mouse, joystick or remote
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
113 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
114 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
115
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
116
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
117 <sect2 id="ctrl-cfg">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
118 <title>Controls configuration</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
119
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 <application>MPlayer</application> allows you bind any key/button to any
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
122 MPlayer command using a simple config file. The syntax consist of a key
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
123 name followed by a command. The default config file location is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
124 <filename>$HOME/.mplayer/input.conf</filename> but it can be overridden
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
125 using the <option>-input <replaceable>conf</replaceable></option> option
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
126 (relative path are relative to <filename>$HOME/.mplayer</filename>).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
127 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
128
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
129 <example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
130 <title>A simple input control file</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
131 <programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
132 ##
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
133 ## MPlayer input control file
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
134 ##
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
135
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
136 RIGHT seek +10
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
137 LEFT seek -10
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
138 - audio_delay 0.100
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
139 + audio_delay -0.100
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
140 q quit
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
141 &gt; pt_step 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
142 &lt; pt_step -1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
143 ENTER pt_step 1 1<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
144 --></programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
145 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
146
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
147
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
148 <sect3 id="ctrl-cfg-keys">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
149 <title>Key names</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
150
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
151 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
152 You can have a full list by running
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
153 <command>mplayer -input keylist</command>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
154 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
155
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
156 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
157 <title>Keyboard</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 <listitem><simpara>Any printable character</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
159 <listitem><simpara><literal>SPACE</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
160 <listitem><simpara><literal>ENTER</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
161 <listitem><simpara><literal>TAB</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
162 <listitem><simpara><literal>CTRL</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
163 <listitem><simpara><literal>BS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
164 <listitem><simpara><literal>DEL</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
165 <listitem><simpara><literal>INS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
166 <listitem><simpara><literal>HOME</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
167 <listitem><simpara><literal>END</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
168 <listitem><simpara><literal>PGUP</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
169 <listitem><simpara><literal>PGDWN</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
170 <listitem><simpara><literal>ESC</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
171 <listitem><simpara><literal>RIGHT</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
172 <listitem><simpara><literal>LEFT</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
173 <listitem><simpara><literal>UP</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
174 <listitem><simpara><literal>DOWN</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
175 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
176
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
177 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 <title>Mouse (only supported under X)</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
179 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
180 <literal>MOUSE_BTN0</literal> (Left button)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
181 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
182 <literal>MOUSE_BTN1</literal> (Right button)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
183 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
184 <literal>MOUSE_BTN2</literal> (Middle button)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
185 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
186 <literal>MOUSE_BTN3</literal> (Wheel)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
187 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
188 <literal>MOUSE_BTN4</literal> (Wheel)</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
189 <listitem><simpara>...</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
190 <listitem><simpara><literal>MOUSE_BTN9</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
191 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
192
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 <title>Joystick (support must be enabled at compile time)</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
195 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
196 <literal>JOY_RIGHT</literal> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
197 <literal>JOY_AXIS0_PLUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
198 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
199 <literal>JOY_LEFT</literal> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
200 <literal>JOY_AXIS0_MINUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
201 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
202 <literal>JOY_UP</literal> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
203 <literal>JOY_AXIS1_MINUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
204 <listitem><simpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
205 <literal>JOY_DOWN</literal> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
206 <literal>JOY_AXIS1_PLUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
207 <listitem><simpara><literal>JOY_AXIS2_PLUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
208 <listitem><simpara><literal>JOY_AXIS2_MINUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
209 <listitem><simpara>...</simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
210 <listitem><simpara><literal>JOY_AXIS9_PLUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
211 <listitem><simpara><literal>JOY_AXIS9_MINUS</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
212 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
213 </sect3>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
214
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
215
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
216 <sect3 id="ctrl-cfg-commands">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
217 <title>Commands</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
218
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 You can have a full list of known commands by running
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
221 <command>mplayer -input cmdlist</command>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
222 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
223
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
224 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
225 <listitem><para><literal>seek</literal> (int) val [(int) type=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
226 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
227 Seek to some place in the movie.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
228 Type <literal>0</literal> is a relative seek of +/- val seconds.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
229 Type <literal>1</literal> seek to val % in the movie.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
230 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
231 <listitem><para><literal>audio_delay</literal> (float) val</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
232 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
233 Adjust the audio delay of val seconds
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
234 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
235 <listitem><para><literal>quit</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
236 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
237 Quit <application>MPlayer</application>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
238 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
239 <listitem><para><literal>pause</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
240 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
241 Pause/unpause the playback
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
242 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
243 <listitem><para><literal>grap_frames</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
244 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
245 Somebody know ?
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
246 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
247 <listitem><para><literal>pt_step</literal> (int) val [(int) force=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
248 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
249 Go to next/previous entry in playtree. Val sign tell the direction. If
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
250 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
251 unless force is non 0.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
252 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
253 <listitem><para><literal>pt_up_step</literal> (int) val [(int) force=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
254 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
255 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
256 to break inner loop in the playtree.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
257 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
258 <listitem><para><literal>alt_src_step</literal> (int) val</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
259 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
260 When more than one source is available it select the next/previous one
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
261 (only supported by asx playlist).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
262 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
263 <listitem><para><literal>sub_delay</literal> (float) val [(int) abs=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
264 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
265 Adjust the subtitles delay of +/- val seconds or set it to val seconds
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
266 when abs is non zero.
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><para><literal>osd</literal> [(int) level=-1]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
269 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
270 Toggle osd mode or set it to level when level &gt; 0.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
271 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
272 <listitem><para><literal>volume</literal> (int) dir</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
273 <para>Increase/decrease volume
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
274 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
275 <listitem><simpara><literal>contrast</literal> (int) val [(int) abs=0]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
276 </simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
277 <listitem><simpara><literal>brightness</literal> (int) val [(int) abs=0]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
278 </simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
279 <listitem><simpara><literal>hue</literal> (int) val [(int) abs=0]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
280 </simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
281 <listitem><para><literal>saturation</literal> (int) val [(int) abs=0]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
282 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
283 Set/Adjust video parameters. Val range from -100 to 100.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
284 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
285 <listitem><para><literal>frame_drop</literal> [(int) type=-1]</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
286 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
287 Toggle/Set frame dropping mode.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
288 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
289 <listitem><para><literal>sub_visibility</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
290 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
291 Adjust subtitles visibility.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
292 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
293 <listitem><para><literal>sub_pos</literal> (int) val</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
294 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
295 Adjust subtitles position.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
296 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
297 <listitem><para><literal>vobsub_lang</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
298 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
299 Change the language of VobSub subtitles.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
300 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
301 <listitem><para><literal>vo_fullscreen</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
302 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
303 Switch fullscreen mode.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
304 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
305 <listitem><para><literal>tv_step_channel</literal> (int) dir</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
306 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
307 Select next/previous tv channel.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
308 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
309 <listitem><para><literal>tv_step_norm</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
310 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
311 Change TV norm.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
312 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
313 <listitem><para><literal>tv_step_chanlist</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
314 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
315 Change channel list.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
316 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
317 <listitem><simpara><literal>gui_loadfile</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
318 <listitem><simpara><literal>gui_loadsubtitle</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319 <listitem><simpara><literal>gui_about</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 <listitem><simpara><literal>gui_play</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
321 <listitem><simpara><literal>gui_stop</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
322 <listitem><simpara><literal>gui_playlist</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
323 <listitem><simpara><literal>gui_preferences</literal></simpara></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
324 <listitem><para><literal>gui_skinbrowser</literal></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
325 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
326 GUI actions
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
327 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329 </sect3>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
330 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
333 <sect2 id="lirc">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
334 <title>Control from LIRC</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
335
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
336 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
337 Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
338 an (almost) arbitrary remote control and control your linux box with it!
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
339 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
340 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
341
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
342 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 If you have installed the lirc-package, configure will autodetect it. If
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
344 everything went fine, <application>MPlayer</application> will print a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
345 message like "<computeroutput>Setting up lirc support...</computeroutput>"
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
346 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
347 anything about LIRC there's no support compiled in. That's it :-)
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
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
350 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
351 The application name for <application>MPlayer</application> is - oh wonder
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
352 - <filename>mplayer</filename>. You can use any mplayer commands and even
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
353 pass more than one command by separating them with <literal>\n</literal>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
354 Don't forget to enable the repeat flag in <filename>.lircrc</filename> when
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
355 it make sense (seek, volume, etc). Here's an excerpt from my
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
356 <filename>.lircrc</filename>:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
357 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
358
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
359 <programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
361 button = VOLUME_PLUS
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
362 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
363 config = volume 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
364 repeat = 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
365 end
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
366
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
367 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
368 button = VOLUME_MINUS
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
369 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
370 config = volume -1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
371 repeat = 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
372 end
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
373
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
374 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
375 button = CD_PLAY
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
376 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
377 config = pause
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
378 end
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
379
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
380 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
381 button = CD_STOP
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
382 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
383 config = seek 0 1\npause
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
384 end<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
385 --></programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
386
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
387 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
388 If you don't like the standard location for the lirc-config file
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
389 (<filename>~/.lircrc</filename>) use the <option>-lircconf
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
390 <replaceable>filename</replaceable></option> switch to specify another
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
391 file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
392 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
393 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
394
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
395
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
396 <sect2 id="slave-mode">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
397 <title>Slave mode</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
398 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
399 The slave mode allow you to build simple frontend to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
400 <application>MPlayer</application>. When enabled (with the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
401 <option>-slave</option> option) <application>MPlayer</application> will
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
402 read commands separated by new line (\n) from stdin.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
403 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
404 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
405 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
406
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
407
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
408 <sect1 id="streaming">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
409 <title>Streaming from network or pipes</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
410
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
411 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
412 <application>MPlayer</application> can play files from network, using the
10755
diego
parents: 10643
diff changeset
413 HTTP, FTP, MMS or RTSP/RTP protocol.
9675
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
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
416 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
417 Playing goes by simply using adding the URL to the command line.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
418 <application>MPlayer</application> also honors the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
419 <envar>http_proxy</envar> environment variable, and uses proxy if
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
420 available. Proxy usage can also be forced:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
421 <screen>mplayer http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf</screen>
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
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
424 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
425 <application>MPlayer</application> can read from stdin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
426 (<emphasis>not</emphasis> named pipes). This can be for example used to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
427 play from FTP:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
428 <screen>wget ftp://micorsops.com/something.avi -O - | mplayer -</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
429 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
430
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
431 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
432 Note: it's also recommended to enable CACHE when playback from network:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
433 <screen>wget ftp://micorsops.com/something.avi -O - | mplayer -cache 8192 -</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
434 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
435 </sect1>
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
436
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
437 <sect1 id="mpst" xreflabel="Remote streams">
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
438 <title>Remote streams</title>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
439
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
440 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
441 Remote streams allow you to access most <application>MPlayer</application>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
442 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
443 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
444 network (provided you have the required bandwidth). On the downside some
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
445 stream type (currently TV and MF) are not useable remotely because they are
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
446 implemented at the demuxer level. It's sad for MF but TV stream would anyway
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
447 require an insane amount of bandwith.
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
448 </para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
449
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
450 <sect2 id="compile_mpst_server">
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
451 <title>Compiling the server</title>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
452 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
453 After having compiled <application>MPlayer</application> go to the
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
454 <filename>TOOLS/netstream</filename> directory and enter
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
455 <application>make</application> to build the server binary.
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
456 You can then copy the <application>netstream</application> binary
9969
nicolas
parents: 9966
diff changeset
457 to the right place on your system (usually
nicolas
parents: 9966
diff changeset
458 <filename class="directory">/usr/local/bin</filename> on Linux).
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
459 </para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
460 </sect2>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
461
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
462 <sect2 id="use_mpst">
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
463 <title>Using remote streams</title>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
464 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
465 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
466 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
467 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
468 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
469 <screen>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
470 mplayer -cache 5000 mpst://servername/vcd://2
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
471 </screen>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
472 You can also access files on this server :
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
473 <screen>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
474 mplayer -cache 5000 mpst://servername//usr/local/movies/lol.avi
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
475 </screen>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
476 Note that paths wich aren't starting with a / will be relative to
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
477 the directory where the server is running. The cache option is not
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
478 needed but highly recommended.
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
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
481 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
482 Be aware that currently the server is not secure at all. So don't complain
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
483 about the numerous exploits wich are possible through this. Instead send
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
484 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
485 </para>
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 </sect2>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
488
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
489 </sect1>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
490 </chapter>