# HG changeset patch # User arpi # Date 1019854158 0 # Node ID 1b1943b3d987cc28f3abd82dc0be03e515c2f22b # Parent 77a529bfc80eba0c33f02db23db680ffbee6a93c input/lirc/slavemode doc by Albeu diff -r 77a529bfc80e -r 1b1943b3d987 DOCS/documentation.html --- a/DOCS/documentation.html Fri Apr 26 20:32:03 2002 +0000 +++ b/DOCS/documentation.html Fri Apr 26 20:49:18 2002 +0000 @@ -198,16 +198,25 @@
MPlayer have a fully configurable, command driven, control layer which allow you +to control MPlayer using keyboard, mouse, joystick or remote control (using lirc).
+ + + +Keyboard
<- or -> | seek backward/forward 10 seconds | ||
f | toggle fullscreen | ||
o | toggle OSD: none / seek / seek+timer | ||
z or x | adjust subtitle delay by +/- 0.1 second | ||
r or t | adjust subtitle position | ||
> or < | go to next/previous playtree entry | ||
HOME or END | go to next/previous playtree entry in the parent list | ||
INSERT or DELETE | go to next/previous alternative source (only avaible in asx playlist) | ||
(the following keys are valid only when using | |||
7 or 8 | adjust saturation |
GUI keyboard control
+GUI
, and . | previous / next file | ||
m | toggle mute |
TV input control
+TV
h or l | select previous/next channel |
MPlayer allow you to bind any key/button to any MPlayer command using a simple config file. +The syntax consist of a key name followed by a command. The default config file location is +$HOME/.mplayer/input.conf but it can be overrided using the -input conf switch (relative path are relative to $HOME/.mplayer). +
+Example: +
+## +## MPlayer input control file +## + +RIGHT seek +10 +LEFT seek -10 +- audio_delay 0.100 ++ audio_delay -0.100 +q quit +> pt_step 1 +< pt_step -1 +ENTER pt_step 1 1 ++ + + + + +
You can have a full list by running "mplayer -input keylist"
+ +Keyboard
+ +Mouse
+ +Note : mouse is only supported under X
+ +Joystick
+ +Note : joystick support must be enabled at compile time
+ +You can have a full list of know commands by running "mplayer -input cmdlist"
+ ++
Seek to some place in the movie.
+ Type 0 is a relative seek of +/- val seconds.
+ Type 1 seek to val % in the movie.
Adjust the audio delay of val seconds
+Quit MPlayer
+Pause/unpause the playback
+Somebody know ?
+Go to next/prev entry in playtree. Val sign tell the direction.
+ If no other entry is avaible in the given direction it won't do anything unless force is non 0.
+
Like pt_step but it jump to next/prev in the parent list. It's useful to break innner loop in the playtree.
+When more than one source is avaible it select the next/previous one (only supported by asx playlist).
+Adjust the subtitles delay of +/- val seconds or set it to val seconds when abs is non zero.
+Toggle osd mode or set it to level when level > 0.
+Increase/decrease volume
+Set/Adjust video paramters. Val range from -100 to 100.
+Toggle/Set frame dropping mode.
+Adjust subtitles position.
+Switch fullscreen mode.
+Select next/previous tv channel.
+Change TV norm.
+Change channel list.
+GUI actions
+Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver, an (almost) arbitrary remote control and control your linux box with it! More about it at www.lirc.org.
-If you have installed the lirc-package, you can compile MPlayer with LIRC -support using ./configure --enable-lirc
- -If everything went fine, MPlayer will print a message like -LIRC init was successful. -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 :-)
+If you have installed the lirc-package, configure will autodetect it. If everything went fine, MPlayer 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 :-)
The application name for MPlayer is - oh wonder - 'mplayer'. -It understands the following commands:
- -PAUSE | pause playing. Any other keystroke will continue replay. | ||
QUIT | exit MPlayer | ||
RWND | 10 secs back | ||
FRWND | 60 secs back | ||
FWD | skip 10 secs | ||
FFWD | skip 60 secs | ||
INCVOL | increase volume one percent | ||
DECVOL | decrease volume one percent | ||
PCM | use pcm mixer channel | ||
Don't forget to enable the repeat flag for RWND/FWD in .lircrc. Here's an +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 excerpt from my .lircrc:
-begin - remote = CU-SX070 - prog = mplayer - button = Tape_Play - repeat = 1 - config = FFWD - end ++begin + button = VOLUME_PLUS + prog = mplayer + config = volume 1 + repeat = 1 +end - begin - remote = CU-SX070 - prog = mplayer - button = Tape_Stop - config = QUIT - end+begin + button = VOLUME_MINUS + prog = mplayer + config = volume -1 + repeat = 1 +end + +begin + button = CD_PLAY + prog = mplayer + config = pause +end + +begin + button = CD_STOP + prog = mplayer + config = seek 0 1\npause +end +
If you don't like the standard location for the lirc-config file (~/.lircrc) use the -lircconf <filename> switch to specify another file.
-3.4. Streaming from network or pipes
+ + +The slave mode allow you to build simple frontend to MPlayer. When enabled (with the -slave switch) MPlayer will read commands separeted by new line (\n) from stdin.
+ +
3.3. Streaming from network or pipes
MPlayer can play files from network, using the HTTP or MMS protocol.