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
|
456
|
32 INCVOL - increase volume one percent
|
|
33 DECVOL - decrease volmue one percent
|
|
34 MASTER - use master mixer channel
|
|
35 PCM - use pcm mixer channel
|
1
|
36
|
|
37 Don't forget to enable the repeat flag for RWND/FWD in .lircrc. Here's an
|
|
38 excerpt from my .lircrc:
|
|
39
|
|
40 begin
|
|
41 remote = CU-SX070
|
|
42 prog = mplayer
|
|
43 button = Tape_Play
|
|
44 repeat = 1
|
|
45 config = FFWD
|
|
46 end
|
|
47
|
|
48 begin
|
|
49 remote = CU-SX070
|
|
50 prog = mplayer
|
|
51 button = Tape_Stop
|
|
52 config = QUIT
|
|
53 end
|
|
54
|
|
55 Enjoy
|
|
56
|
|
57 -Andreas
|
|
58
|