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 You should do 'make distclean' before re-compile with 'make dep;make'
|
|
17
|
|
18 If everything went fine, MPlayer will print a message like
|
|
19 LIRC init was successful.
|
|
20 on startup. If an error occurs it will tell you. If it doens't tell you
|
|
21 anything about LIRC there's no support compiled in. That's it :-)
|
|
22
|
|
23 The application name for MPlayer is - oh wonder - mplayer.
|
|
24 It understands the following commands:
|
|
25
|
|
26 PAUSE - pause playing. Any other keystroke will continue replay.
|
|
27 QUIT - exit mplayer
|
|
28 RWND - 10 secs back
|
|
29 FRWND - 60 secs back
|
|
30 FWD - skip 10 secs
|
|
31 FFWD - skip 60 secs
|
|
32
|
|
33 Don't forget to enable the repeat flag for RWND/FWD in .lircrc. Here's an
|
|
34 excerpt from my .lircrc:
|
|
35
|
|
36 begin
|
|
37 remote = CU-SX070
|
|
38 prog = mplayer
|
|
39 button = Tape_Play
|
|
40 repeat = 1
|
|
41 config = FFWD
|
|
42 end
|
|
43
|
|
44 begin
|
|
45 remote = CU-SX070
|
|
46 prog = mplayer
|
|
47 button = Tape_Stop
|
|
48 config = QUIT
|
|
49 end
|
|
50
|
|
51 Enjoy
|
|
52
|
|
53 -Andreas
|
|
54
|