comparison DOCS/documentation.html @ 5850:1b1943b3d987

input/lirc/slavemode doc by Albeu
author arpi
date Fri, 26 Apr 2002 20:49:18 +0000
parents eb147cb5040e
children 959a17673fc9
comparison
equal deleted inserted replaced
5849:77a529bfc80e 5850:1b1943b3d987
196 <LI><A HREF=#2.6.7>2.6.7 Format</A></LI> 196 <LI><A HREF=#2.6.7>2.6.7 Format</A></LI>
197 <LI><A HREF=#2.6.8>2.6.8 Postprocess</A></LI> 197 <LI><A HREF=#2.6.8>2.6.8 Postprocess</A></LI>
198 <LI><A HREF=#2.6.9>2.6.9 RGB2BGR</A></LI> 198 <LI><A HREF=#2.6.9>2.6.9 RGB2BGR</A></LI>
199 <LI><A HREF=#2.6.10>2.6.10 Rotate</A></LI> 199 <LI><A HREF=#2.6.10>2.6.10 Rotate</A></LI>
200 <LI><A HREF=#2.6.11>2.6.11 Scale</A></LI> 200 <LI><A HREF=#2.6.11>2.6.11 Scale</A></LI>
201 <LI><A HREF=#2.6.12>2.6.12 VO/A></LI> 201 <LI><A HREF=#2.6.12>2.6.12 VO</A></LI>
202 <LI><A HREF=#2.6.13>2.6.13 YUY2</A></LI> 202 <LI><A HREF=#2.6.13>2.6.13 YUY2</A></LI>
203 </UL> 203 </UL>
204 </UL> 204 </UL>
205 <LI><A HREF="#3">3. Usage</A></LI> 205 <LI><A HREF="#3">3. Usage</A></LI>
206 <UL> 206 <UL>
207 <LI><A HREF="#3.1">3.1 Command line</A></LI> 207 <LI><A HREF="#3.1">3.1 Command line</A></LI>
208 <LI><A HREF="#3.2">3.2 Control from keyboard</A></LI> 208 <LI><A HREF="#3.2">3.2 Control</A></LI>
209 <LI><A HREF="#3.3">3.3 Control from LIRC (Linux Infrared Remote Control)</A></LI> 209 <UL>
210 <LI><A HREF="#3.4">3.4 Streaming from network or pipes</A></LI> 210 <LI><A HREF="#3.2.1">3.2.1 Default controls</A></LI>
211 <LI><A HREF="#3.2.2">3.2.2 Controls configuration</A></LI>
212 <UL>
213 <LI><A HREF="#3.2.2.1">3.2.2.1 Key names</A></LI>
214 <LI><A HREF="#3.2.2.2">3.2.2.2. Commands</A></LI>
215 </UL>
216 <LI><A HREF="#3.2.3">3.2.3 Control from LIRC</A></LI>
217 <LI><A HREF="#3.2.4">3.2.4. Slave mode</A></LI>
218 </UL>
219 <LI><A HREF="#3.3">3.3 Streaming from network or pipes</A></LI>
211 </UL> 220 </UL>
212 <LI><A HREF="cd-dvd.html#4">4. CD/DVD section</A></LI> 221 <LI><A HREF="cd-dvd.html#4">4. CD/DVD section</A></LI>
213 <UL> 222 <UL>
214 <LI><A HREF="cd-dvd.html#4.1">4.1 CD drives</A></LI> 223 <LI><A HREF="cd-dvd.html#4.1">4.1 CD drives</A></LI>
215 <LI><A HREF="cd-dvd.html#4.2">4.2 DVD playback</A></LI> 224 <LI><A HREF="cd-dvd.html#4.2">4.2 DVD playback</A></LI>
1155 mplayer -vcd 2 1164 mplayer -vcd 2
1156 mplayer -afm 3 /mnt/DVDtrailers/alien4.vob 1165 mplayer -afm 3 /mnt/DVDtrailers/alien4.vob
1157 mplayer -dvd 1 -dvd-device /dev/hdc 1166 mplayer -dvd 1 -dvd-device /dev/hdc
1158 mplayer -abs 65536 -delay -0.4 -nobps ~/movies/test.avi</PRE></P> 1167 mplayer -abs 65536 -delay -0.4 -nobps ~/movies/test.avi</PRE></P>
1159 1168
1160 1169 <P><B><A NAME=3.2>3.2. Control</A></B></P>
1161 <P><B><A NAME=3.2>3.2. Control from keyboard</A></B></P> 1170
1171 <P><B>MPlayer</B> have a fully configurable, command driven, control layer which allow you
1172 to control <B>MPlayer</B> using keyboard, mouse, joystick or remote control (using lirc).</P>
1173
1174 <P><B><A NAME=3.2.1>3.2.1. Default controls</A></B></P>
1175
1176 <P><B>Keyboard</B></P>
1162 1177
1163 <P><TABLE BORDER=0> 1178 <P><TABLE BORDER=0>
1164 <TR><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">&lt;- or -&gt;</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">seek backward/forward 10 seconds</TD></TR> 1179 <TR><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">&lt;- or -&gt;</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">seek backward/forward 10 seconds</TD></TR>
1165 <TR><TD></TD><TD><FONT CLASS="text">up or down</TD><TD></TD><TD><FONT CLASS="text">seek backward/forward 1 minute</TD></TR> 1180 <TR><TD></TD><TD><FONT CLASS="text">up or down</TD><TD></TD><TD><FONT CLASS="text">seek backward/forward 1 minute</TD></TR>
1166 <TR><TD></TD><TD><FONT CLASS="text">pgup/pgdown</TD><TD></TD><TD><FONT CLASS="text">seek backward/forward 10 minutes</TD></TR> 1181 <TR><TD></TD><TD><FONT CLASS="text">pgup/pgdown</TD><TD></TD><TD><FONT CLASS="text">seek backward/forward 10 minutes</TD></TR>
1170 <TR><TD></TD><TD><FONT CLASS="text">+ or -</TD><TD></TD><TD><FONT CLASS="text">adjust audio delay by +/- 0.1 second</TD></TR> 1185 <TR><TD></TD><TD><FONT CLASS="text">+ or -</TD><TD></TD><TD><FONT CLASS="text">adjust audio delay by +/- 0.1 second</TD></TR>
1171 <TR><TD></TD><TD><FONT CLASS="text">/ or *</TD><TD></TD><TD><FONT CLASS="text">decrease/increase volume</TD></TR> 1186 <TR><TD></TD><TD><FONT CLASS="text">/ or *</TD><TD></TD><TD><FONT CLASS="text">decrease/increase volume</TD></TR>
1172 <TR><TD></TD><TD><FONT CLASS="text">f</TD><TD></TD><TD><FONT CLASS="text">toggle fullscreen</TD></TR> 1187 <TR><TD></TD><TD><FONT CLASS="text">f</TD><TD></TD><TD><FONT CLASS="text">toggle fullscreen</TD></TR>
1173 <TR><TD></TD><TD><FONT CLASS="text">o</TD><TD></TD><TD><FONT CLASS="text">toggle OSD: none / seek / seek+timer</TD></TR> 1188 <TR><TD></TD><TD><FONT CLASS="text">o</TD><TD></TD><TD><FONT CLASS="text">toggle OSD: none / seek / seek+timer</TD></TR>
1174 <TR><TD></TD><TD><FONT CLASS="text">z or x</TD><TD></TD><TD><FONT CLASS="text">adjust subtitle delay by +/- 0.1 second</TD></TR> 1189 <TR><TD></TD><TD><FONT CLASS="text">z or x</TD><TD></TD><TD><FONT CLASS="text">adjust subtitle delay by +/- 0.1 second</TD></TR>
1190 <TR><TD></TD><TD><FONT CLASS="text">r or t</TD><TD></TD><TD><FONT CLASS="text">adjust subtitle position</TD></TR>
1191 <TR><TD></TD><TD><FONT CLASS="text">&gt; or &lt;</TD><TD></TD><TD><FONT CLASS="text">go to next/previous playtree entry</TD></TR>
1192 <TR><TD></TD><TD><FONT CLASS="text">HOME or END</TD><TD></TD><TD><FONT CLASS="text">go to next/previous playtree entry in the parent list</TD></TR>
1193 <TR><TD></TD><TD><FONT CLASS="text">INSERT or DELETE</TD><TD></TD><TD><FONT CLASS="text">go to next/previous alternative source (only avaible in asx playlist)</TD></TR>
1175 1194
1176 <TR><TD COLSPAN=4><P><I><FONT CLASS="text">(the following keys are valid only when using <CODE>-vo xv</CODE>)</I></P></TD></TR> 1195 <TR><TD COLSPAN=4><P><I><FONT CLASS="text">(the following keys are valid only when using <CODE>-vo xv</CODE>)</I></P></TD></TR>
1177 1196
1178 <TR><TD></TD><TD><FONT CLASS="text">1 or 2</TD><TD></TD><TD><FONT CLASS="text">adjust contrast</TD></TR> 1197 <TR><TD></TD><TD><FONT CLASS="text">1 or 2</TD><TD></TD><TD><FONT CLASS="text">adjust contrast</TD></TR>
1179 <TR><TD></TD><TD><FONT CLASS="text">3 or 4</TD><TD></TD><TD><FONT CLASS="text">adjust brightness</TD></TR> 1198 <TR><TD></TD><TD><FONT CLASS="text">3 or 4</TD><TD></TD><TD><FONT CLASS="text">adjust brightness</TD></TR>
1180 <TR><TD></TD><TD><FONT CLASS="text">5 or 6</TD><TD></TD><TD><FONT CLASS="text">adjust hue</TD></TR> 1199 <TR><TD></TD><TD><FONT CLASS="text">5 or 6</TD><TD></TD><TD><FONT CLASS="text">adjust hue</TD></TR>
1181 <TR><TD></TD><TD><FONT CLASS="text">7 or 8</TD><TD></TD><TD><FONT CLASS="text">adjust saturation</TD></TR> 1200 <TR><TD></TD><TD><FONT CLASS="text">7 or 8</TD><TD></TD><TD><FONT CLASS="text">adjust saturation</TD></TR>
1182 </TABLE></P> 1201 </TABLE></P>
1183 1202
1184 <P><B>GUI keyboard control</B></P> 1203 <P><B>GUI</B></P>
1185 1204
1186 <P><TABLE BORDER=0> 1205 <P><TABLE BORDER=0>
1187 <TR><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">, and .</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">previous / next file</TD></TR> 1206 <TR><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">, and .</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">previous / next file</TD></TR>
1188 <TR><TD></TD><TD><FONT CLASS="text">gray - or +</TD><TD></TD><TD><FONT CLASS="text">decrease / increase volume</TD></TR> 1207 <TR><TD></TD><TD><FONT CLASS="text">gray - or +</TD><TD></TD><TD><FONT CLASS="text">decrease / increase volume</TD></TR>
1189 <TR><TD></TD><TD><FONT CLASS="text">enter</TD><TD></TD><TD><FONT CLASS="text">start playing</TD></TR> 1208 <TR><TD></TD><TD><FONT CLASS="text">enter</TD><TD></TD><TD><FONT CLASS="text">start playing</TD></TR>
1196 <TR><TD></TD><TD><FONT CLASS="text">p</TD><TD></TD><TD><FONT CLASS="text">toggle playlist</TD></TR> 1215 <TR><TD></TD><TD><FONT CLASS="text">p</TD><TD></TD><TD><FONT CLASS="text">toggle playlist</TD></TR>
1197 <TR><TD></TD><TD><FONT CLASS="text">f</TD><TD></TD><TD><FONT CLASS="text">toggle fullscreen</TD></TR> 1216 <TR><TD></TD><TD><FONT CLASS="text">f</TD><TD></TD><TD><FONT CLASS="text">toggle fullscreen</TD></TR>
1198 <TR><TD></TD><TD><FONT CLASS="text">m</TD><TD></TD><TD><FONT CLASS="text">toggle mute</TD> 1217 <TR><TD></TD><TD><FONT CLASS="text">m</TD><TD></TD><TD><FONT CLASS="text">toggle mute</TD>
1199 </TABLE></P> 1218 </TABLE></P>
1200 1219
1201 <P><B>TV input control</B></P> 1220 <P><B>TV</B></P>
1202 1221
1203 <P><TABLE BORDER=0> 1222 <P><TABLE BORDER=0>
1204 <TR><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">h or l</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">select previous/next channel</TD></TR> 1223 <TR><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">h or l</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">select previous/next channel</TD></TR>
1205 <TR><TD></TD><TD><FONT CLASS="text">n</TD><TD></TD><TD><FONT CLASS="text">change norm</TD></TR> 1224 <TR><TD></TD><TD><FONT CLASS="text">n</TD><TD></TD><TD><FONT CLASS="text">change norm</TD></TR>
1206 <TR><TD></TD><TD><FONT CLASS="text">b</TD><TD></TD><TD><FONT CLASS="text">change channel list</TD></TR> 1225 <TR><TD></TD><TD><FONT CLASS="text">b</TD><TD></TD><TD><FONT CLASS="text">change channel list</TD></TR>
1207 1226
1208 </TABLE></P> 1227 </TABLE></P>
1209 1228
1210 <P><B><A NAME=3.3>3.3. Control from LIRC</A></B></P> 1229 <P><B><A NAME=3.2.2>3.2.2. Controls configuration</A></B></P>
1230
1231 <P>MPlayer allow you to bind any key/button to any MPlayer command using a simple config file.
1232 The syntax consist of a key name followed by a command. The default config file location is
1233 $HOME/.mplayer/input.conf but it can be overrided using the -input conf switch (relative path are relative to $HOME/.mplayer).
1234 <P>
1235 Example:
1236 <PRE>
1237 ##
1238 ## MPlayer input control file
1239 ##
1240
1241 RIGHT seek +10
1242 LEFT seek -10
1243 - audio_delay 0.100
1244 + audio_delay -0.100
1245 q quit
1246 > pt_step 1
1247 < pt_step -1
1248 ENTER pt_step 1 1
1249 </PRE></P>
1250
1251 </P>
1252
1253 <P><B><A NAME=3.2.2.1>3.2.2.1. Key names</A></B></P>
1254
1255 <P>You can have a full list by running "mplayer -input keylist"</P>
1256
1257 <P><B>Keyboard</B></P>
1258
1259 <P><UL>
1260 <LI>Any printable character</LI>
1261 <LI>SPACE</LI>
1262 <LI>ENTER</LI>
1263 <LI>TAB</LI>
1264 <LI>CTRL</LI>
1265 <LI>BS</LI>
1266 <LI>DEL</LI>
1267 <LI>INS</LI>
1268 <LI>HOME</LI>
1269 <LI>END</LI>
1270 <LI>PGUP</LI>
1271 <LI>PGDWN</LI>
1272 <LI>ESC</LI>
1273 <LI>RIGHT</LI>
1274 <LI>LEFT</LI>
1275 <LI>UP</LI>
1276 <LI>DOWN</LI>
1277 </UL></P>
1278
1279 <P><B>Mouse</B></P>
1280
1281 <P>Note : mouse is only supported under X</P>
1282
1283 <P><UL>
1284 <LI>MOUSE_BTN0 (Left button)</LI>
1285 <LI>MOUSE_BTN1 (Rigth button)</LI>
1286 <LI>MOUSE_BTN2 (Middle button)</LI>
1287 <LI>MOUSE_BTN3 (Whell)</LI>
1288 <LI>MOUSE_BTN4 (Whell)</LI>
1289 <LI>...</LI>
1290 <LI>MOUSE_BTN9</LI>
1291 </UL></P>
1292
1293 <P><B>Joystick</B></P>
1294
1295 <P>Note : joystick support must be enabled at compile time</P>
1296
1297 <P><UL>
1298 <LI>JOY_RIGHT or JOY_AXIS0_PLUS</LI>
1299 <LI>JOY_LEFT or JOY_AXIS0_MINUS</LI>
1300 <LI>JOY_UP or JOY_AXIS1_MINUS</LI>
1301 <LI>JOY_DOWN or JOY_AXIS1_PLUS</LI>
1302 <LI>JOY_AXIS2_PLUS</LI>
1303 <LI>JOY_AXIS2_MINUS</LI>
1304 <LI>....</LI>
1305 <LI>JOY_AXIS9_PLUS</LI>
1306 <LI>JOY_AXIS9_MINUS</LI>
1307 </UL></P>
1308
1309
1310 <P><B><A NAME=3.2.2.2>3.2.2.2. Commands</A></B></P>
1311
1312 <P>You can have a full list of know commands by running "mplayer -input cmdlist"</P>
1313
1314 <P>
1315 <UL>
1316 <LI><B>seek</B> (int) val [(int) type=0]
1317 <P>Seek to some place in the movie.<BR>
1318 Type 0 is a relative seek of +/- val seconds.<BR>
1319 Type 1 seek to val % in the movie. </P>
1320 </LI>
1321 <LI><B>audio_delay</B> (float) val
1322 <P>Adjust the audio delay of val seconds</P>
1323 </LI>
1324 <LI><B>quit</B>
1325 <P>Quit <B>MPlayer</B></P>
1326 </LI>
1327 <LI><B>pause</B>
1328 <P>Pause/unpause the playback</P>
1329 </LI>
1330 <LI><B>grap_frames</B>
1331 <P>Somebody know ?</P>
1332 </LI>
1333 <LI><B>pt_step</B> (int) val [(int) force=0]
1334 <P>Go to next/prev entry in playtree. Val sign tell the direction.<BR>
1335 If no other entry is avaible in the given direction it won't do anything unless force is non 0.
1336 </P>
1337 </LI>
1338 <LI><B>pt_up_step</B> (int) val [(int) force=0]
1339 <P>Like pt_step but it jump to next/prev in the parent list. It's useful to break innner loop in the playtree.</P>
1340 </LI>
1341 <LI><B>alt_src_step</B> (int) val
1342 <P>When more than one source is avaible it select the next/previous one (only supported by asx playlist).</P>
1343 </LI>
1344 <LI><B>sub_delay</B> (float) val [(int) abs=0]
1345 <P>Adjust the subtitles delay of +/- val seconds or set it to val seconds when abs is non zero.</P>
1346 </LI>
1347 <LI><B>osd</B> [(int) level=-1]
1348 <P>Toggle osd mode or set it to level when level > 0.</P>
1349 </LI>
1350 <LI><B>volume</B> (int) dir
1351 <P>Increase/decrease volume</P>
1352 </LI>
1353 <LI><B>contrast</B> (int) val [(int) abs=0]</LI>
1354 <LI><B>brightness</B> (int) val [(int) abs=0]</LI>
1355 <LI><B>hue</B> (int) val [(int) abs=0]</LI>
1356 <LI><B>saturation</B> (int) val [(int) abs=0]
1357 <P>Set/Adjust video paramters. Val range from -100 to 100.</P>
1358 </LI>
1359 <LI><B>frame_drop</B> [(int) type=-1]
1360 <P>Toggle/Set frame dropping mode.</P>
1361 </LI>
1362 <LI><B>sub_pos</B> (int) val
1363 <P>Adjust subtitles position.</P>
1364 </LI>
1365 <LI><B>vo_fullscreen</B>
1366 <P>Switch fullscreen mode.</P>
1367 </LI>
1368 <LI><B>tv_step_channel</B> (int) dir
1369 <P>Select next/previous tv channel.</P>
1370 </LI>
1371 <LI><B>tv_step_norm</B>
1372 <P>Change TV norm.</P>
1373 </LI>
1374 <LI><B>tv_step_chanlist</B>
1375 <P>Change channel list.</P>
1376 </LI>
1377 <LI><B>gui_loadfile</B></LI>
1378 <LI><B>gui_loadsubtitle</B></LI>
1379 <LI><B>gui_about</B></LI>
1380 <LI><B>gui_play</B></LI>
1381 <LI><B>gui_stop</B></LI>
1382 <LI><B>gui_playlist</B></LI>
1383 <LI><B>gui_preferences</B></LI>
1384 <LI><B>gui_skinbrowser</B></LI>
1385 <P>GUI actions</P>
1386 </UL>
1387 </P>
1388
1389 <P><B><A NAME=3.2.3>3.2.3. Control from LIRC</A></B></P>
1211 1390
1212 <P>Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver, 1391 <P>Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver,
1213 an (almost) arbitrary remote control and control your linux box with it! 1392 an (almost) arbitrary remote control and control your linux box with it!
1214 More about it at <A HREF="http://www.lirc.org">www.lirc.org</A>.</P> 1393 More about it at <A HREF="http://www.lirc.org">www.lirc.org</A>.</P>
1215 1394
1216 <P>If you have installed the lirc-package, you can compile <B>MPlayer</B> with LIRC 1395 <P>If you have installed the lirc-package, configure will autodetect it. If everything went fine, <B>MPlayer</B> will print a message like "Setting up lirc support..." on startup. If an error occurs it will tell you. If it doesn't tell you anything about LIRC there's no support compiled in. That's it :-)</P>
1217 support using ./configure --enable-lirc</P>
1218
1219 <P>If everything went fine, <B>MPlayer</B> will print a message like
1220 LIRC init was successful.
1221 on startup. If an error occurs it will tell you. If it doesn't tell you
1222 anything about LIRC there's no support compiled in. That's it :-)</P>
1223 1396
1224 <P>The application name for <B>MPlayer</B> is - oh wonder - 'mplayer'. 1397 <P>The application name for <B>MPlayer</B> is - oh wonder - 'mplayer'.
1225 It understands the following commands:</P> 1398 You can use any mplayer commands and even pass more than one command by separating them with \n. Don't forget to enable the repeat flag in .lircrc when it make sense (seek, volume, etc). Here's an
1226
1227 <P><TABLE BORDER=0>
1228 <TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">PAUSE</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">pause playing. Any other keystroke will continue replay.</TD><TR>
1229 <TD></TD><TD><FONT CLASS="text">QUIT</TD><TD></TD><TD><FONT CLASS="text">exit MPlayer</TD><TR>
1230 <TD></TD><TD><FONT CLASS="text">RWND</TD><TD></TD><TD><FONT CLASS="text">10 secs back</TD><TR>
1231 <TD></TD><TD><FONT CLASS="text">FRWND</TD><TD></TD><TD><FONT CLASS="text">60 secs back</TD><TR>
1232 <TD></TD><TD><FONT CLASS="text">FWD</TD><TD></TD><TD><FONT CLASS="text">skip 10 secs</TD><TR>
1233 <TD></TD><TD><FONT CLASS="text">FFWD</TD><TD></TD><TD><FONT CLASS="text">skip 60 secs</TD><TR>
1234 <TD></TD><TD><FONT CLASS="text">INCVOL</TD><TD></TD><TD><FONT CLASS="text">increase volume one percent</TD><TR>
1235 <TD></TD><TD><FONT CLASS="text">DECVOL</TD><TD></TD><TD><FONT CLASS="text">decrease volume one percent</TD><TR>
1236 <TD></TD><TD><FONT CLASS="text">PCM</TD><TD></TD><TD><FONT CLASS="text">use pcm mixer channel</TD><TR>
1237 </TABLE></P>
1238
1239 <P> Don't forget to enable the repeat flag for RWND/FWD in .lircrc. Here's an
1240 excerpt from my .lircrc:</P> 1399 excerpt from my .lircrc:</P>
1241 1400
1242 <P><PRE> begin 1401 <P><PRE>
1243 remote = CU-SX070 1402 begin
1244 prog = mplayer 1403 button = VOLUME_PLUS
1245 button = Tape_Play 1404 prog = mplayer
1246 repeat = 1 1405 config = volume 1
1247 config = FFWD 1406 repeat = 1
1248 end 1407 end
1249 1408
1250 begin 1409 begin
1251 remote = CU-SX070 1410 button = VOLUME_MINUS
1252 prog = mplayer 1411 prog = mplayer
1253 button = Tape_Stop 1412 config = volume -1
1254 config = QUIT 1413 repeat = 1
1255 end</PRE></P> 1414 end
1415
1416 begin
1417 button = CD_PLAY
1418 prog = mplayer
1419 config = pause
1420 end
1421
1422 begin
1423 button = CD_STOP
1424 prog = mplayer
1425 config = seek 0 1\npause
1426 end
1427 </PRE></P>
1256 1428
1257 <P>If you don't like the standard location for the lirc-config file (~/.lircrc) 1429 <P>If you don't like the standard location for the lirc-config file (~/.lircrc)
1258 use the -lircconf &lt;filename&gt; switch to specify another file.</P> 1430 use the -lircconf &lt;filename&gt; switch to specify another file.</P>
1259 1431
1260 <P><B><A NAME=3.4>3.4. Streaming from network or pipes</A></B></P> 1432 <P><B><A NAME=3.2.4>3.2.4. Slave mode</A></B></P>
1433
1434 <P>The slave mode allow you to build simple frontend to <B>MPlayer</B>. When enabled (with the -slave switch) <B>MPlayer</B> will read commands separeted by new line (\n) from stdin.<P>
1435
1436 <P><B><A NAME=3.3>3.3. Streaming from network or pipes</A></B></P>
1261 1437
1262 <P><B>MPlayer</B> can play files from network, using the HTTP or MMS protocol.</P> 1438 <P><B>MPlayer</B> can play files from network, using the HTTP or MMS protocol.</P>
1263 1439
1264 <P>Playing goes by simply using adding the URL to the command line. <B>MPlayer</B> 1440 <P>Playing goes by simply using adding the URL to the command line. <B>MPlayer</B>
1265 also honours the HTTP_PROXY environment variable, and uses proxy if available. 1441 also honours the HTTP_PROXY environment variable, and uses proxy if available.