~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to DOCS/HTML/en/control.html

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>3.3. Control</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"><link rel="start" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="usage.html" title="Chapter 3. Usage"><link rel="prev" href="subosd.html" title="3.2. Subtitles and OSD"><link rel="next" href="streaming.html" title="3.4. Streaming from network or pipes"><link rel="preface" href="howtoread.html" title="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter 1. Introduction"><link rel="chapter" href="install.html" title="Chapter 2. Installation"><link rel="chapter" href="usage.html" title="Chapter 3. Usage"><link rel="chapter" href="cd-dvd.html" title="Chapter 4. CD/DVD usage"><link rel="chapter" href="faq.html" title="Chapter 5. Frequently Asked Questions"><link rel="chapter" href="containers.html" title="Chapter 6. Containers"><link rel="chapter" href="codecs.html" title="Chapter 7. Codecs"><link rel="chapter" href="video.html" title="Chapter 8. Video output devices"><link rel="chapter" href="audio.html" title="Chapter 9. Audio output devices"><link rel="chapter" href="tv.html" title="Chapter 10. TV"><link rel="chapter" href="radio.html" title="Chapter 11. Radio"><link rel="chapter" href="ports.html" title="Chapter 12. Ports"><link rel="chapter" href="mencoder.html" title="Chapter 13. Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter 14. Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="Appendix A. How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix B. Known bugs"><link rel="appendix" href="skin.html" title="Appendix C. MPlayer skin format"><link rel="appendix" href="history.html" title="Appendix D. History"><link rel="subsection" href="control.html#ctrl-cfg" title="3.3.1. Controls configuration"><link rel="subsection" href="control.html#lirc" title="3.3.2. Control from LIRC"><link rel="subsection" href="control.html#slave-mode" title="3.3.3. Slave mode"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">3.3. Control</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="subosd.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Usage</th><td width="20%" align="right"> <a accesskey="n" href="streaming.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="control"></a>3.3. Control</h2></div></div></div><p>
2
 
<span class="application">MPlayer</span> has a fully configurable, command
3
 
driven, control layer which lets you control
4
 
<span class="application">MPlayer</span> with keyboard, mouse, joystick or remote
5
 
control (using LIRC). See the man page for the complete list of keyboard controls.
6
 
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ctrl-cfg"></a>3.3.1. Controls configuration</h3></div></div></div><p>
7
 
<span class="application">MPlayer</span> allows you bind any key/button to any
8
 
<span class="application">MPlayer</span> command using a simple config file.
9
 
The syntax consist of a key name followed by a command. The default config file location is
10
 
<tt class="filename">$HOME/.mplayer/input.conf</tt> but it can be overridden
11
 
using the <tt class="option">-input <em class="replaceable"><code>conf</code></em></tt> option
12
 
(relative path are relative to <tt class="filename">$HOME/.mplayer</tt>).
13
 
</p><p>
14
 
You can get a full list of supported key names by running
15
 
<span><strong class="command">mplayer -input keylist</strong></span>
16
 
and a full list of available commands by running
17
 
<span><strong class="command">mplayer -input cmdlist</strong></span>.
18
 
</p><div class="example"><a name="input_control_file"></a><p class="title"><b>Example 3.1. A simple input control file</b></p><div class="example-contents"><pre class="programlisting">
19
 
##
20
 
## MPlayer input control file
21
 
##
22
 
 
23
 
RIGHT seek +10
24
 
LEFT seek -10
25
 
- audio_delay 0.100
26
 
+ audio_delay -0.100
27
 
q quit
28
 
&gt; pt_step 1
29
 
&lt; pt_step -1
30
 
ENTER pt_step 1 1</pre></div></div><br class="example-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="lirc"></a>3.3.2. Control from LIRC</h3></div></div></div><p>
31
 
Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver,
32
 
an (almost) arbitrary remote control and control your Linux box with it!
33
 
More about it on the <a href="http://www.lirc.org" target="_top">LIRC homepage</a>.
34
 
</p><p>
35
 
If you have the LIRC package installed, <tt class="filename">configure</tt> will
36
 
autodetect it. If everything went fine, <span class="application">MPlayer</span>
37
 
will print "<code class="systemitem">Setting up LIRC support...</code>"
38
 
on startup. If an error occurs it will tell you. If there is no message about
39
 
LIRC there is no support compiled in. That's it :-)
40
 
</p><p>
41
 
The application name for <span class="application">MPlayer</span> is - surprise -
42
 
<tt class="filename">mplayer</tt>. You can use any <span class="application">MPlayer</span>
43
 
commands and even pass more than one command by separating them with
44
 
<code class="literal">\n</code>.
45
 
Do not forget to enable the repeat flag in <tt class="filename">.lircrc</tt> when
46
 
it makes sense (seek, volume, etc). Here is an excerpt from a sample
47
 
<tt class="filename">.lircrc</tt>:
48
 
</p><pre class="programlisting">
49
 
begin
50
 
     button = VOLUME_PLUS
51
 
     prog = mplayer
52
 
     config = volume 1
53
 
     repeat = 1
54
 
end
55
 
 
56
 
begin
57
 
    button = VOLUME_MINUS
58
 
    prog = mplayer
59
 
    config = volume -1
60
 
    repeat = 1
61
 
end
62
 
 
63
 
begin
64
 
    button = CD_PLAY
65
 
    prog = mplayer
66
 
    config = pause
67
 
end
68
 
 
69
 
begin
70
 
    button = CD_STOP
71
 
    prog = mplayer
72
 
    config = seek 0 1\npause
73
 
end</pre><p>
74
 
If you do not like the standard location for the lirc-config file
75
 
(<tt class="filename">~/.lircrc</tt>) use the <tt class="option">-lircconf
76
 
<em class="replaceable"><code>filename</code></em></tt> switch to specify another
77
 
file.
78
 
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="slave-mode"></a>3.3.3. Slave mode</h3></div></div></div><p>
79
 
The slave mode allows you to build simple frontends to
80
 
<span class="application">MPlayer</span>. When run with the
81
 
<tt class="option">-slave</tt> option <span class="application">MPlayer</span> will
82
 
read commands separated by a newline (\n) from stdin.
83
 
The commands are documented in the
84
 
<a href="../../tech/slave.txt" target="_top">slave.txt</a> file.
85
 
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="subosd.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="usage.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="streaming.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">3.2. Subtitles and OSD </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 3.4. Streaming from network or pipes</td></tr></table></div></body></html>