1
|
1
|
|
2 LIRC support for MPlayer
|
|
3 written by Andreas Ackermann in 2/2001
|
|
4 contact: acki@acki-netz.de
|
|
5
|
|
6 o What is LIRC?
|
|
7
|
|
8 Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver,
|
|
9 an (almost) arbitrary remote control and control your linux box with it!
|
|
10 More about it at www.lirc.org.
|
|
11
|
|
12 o MPlayer and LIRC
|
|
13
|
|
14 If you have installed the lirc-package, you can compile MPlayer with LIRC
|
|
15 support using ./configure --enable-lirc
|
|
16
|
|
17 If everything went fine, MPlayer will print a message like
|
|
18 LIRC init was successful.
|
|
19 on startup. If an error occurs it will tell you. If it doens't tell you
|
|
20 anything about LIRC there's no support compiled in. That's it :-)
|
|
21
|
592
|
22 The application name for MPlayer is - oh wonder - mplayer_lirc.
|
1
|
23 It understands the following commands:
|
|
24
|
|
25 PAUSE - pause playing. Any other keystroke will continue replay.
|
|
26 QUIT - exit mplayer
|
|
27 RWND - 10 secs back
|
|
28 FRWND - 60 secs back
|
|
29 FWD - skip 10 secs
|
|
30 FFWD - skip 60 secs
|
456
|
31 INCVOL - increase volume one percent
|
|
32 DECVOL - decrease volmue one percent
|
|
33 MASTER - use master mixer channel
|
|
34 PCM - use pcm mixer channel
|
1
|
35
|
|
36 Don't forget to enable the repeat flag for RWND/FWD in .lircrc. Here's an
|
|
37 excerpt from my .lircrc:
|
|
38
|
|
39 begin
|
|
40 remote = CU-SX070
|
592
|
41 prog = mplayer_lirc
|
1
|
42 button = Tape_Play
|
|
43 repeat = 1
|
|
44 config = FFWD
|
|
45 end
|
|
46
|
|
47 begin
|
|
48 remote = CU-SX070
|
592
|
49 prog = mplayer_lirc
|
1
|
50 button = Tape_Stop
|
|
51 config = QUIT
|
|
52 end
|
1153
|
53
|
|
54 I you don't like the standard location for the lirc-config file (~/.lircrc)
|
|
55 use the -lircconf <filename> the switch to specify another file.
|
|
56
|
1
|
57 Enjoy
|
|
58
|
|
59 -Andreas
|
|
60
|