Search:  
Gentoo Wiki

MPlayer/LIRC

Be sure, you have compiled MPlayer with LIRC support. This can be done by setting the USE flag lirc.

For a list of all commands that can be used with LIRC and mplayer, run mplayer -input cmdlist, you will get a list that contains commands and appropriate value format descriptors:

Code: MPlayer input commands (incomplete)
seek                 Float [Integer]
audio_delay          Float
speed_incr           Float
speed_mult           Float
speed_set            Float
quit                 [Integer]
pause
[...]

This commands listed here can be used in the config = <command> lines!

We need to configure ~/.lircrc, here an example:

File: ~/.lircrc
begin
     button = Up
     prog = mplayer
     config = volume 1
     repeat = 1
end

begin
    button = Down
    prog = mplayer
    config = volume -1
    repeat = 1
end

begin
    button = Circle
    prog = mplayer
    config = pause
end

begin
    button = Cross
    prog = mplayer
    config = quit 0
end

begin
    button = Right
    prog = mplayer
    config = pt_step 1
    repeat = 0
end

begin
    button = Left
    prog = mplayer
    config = pt_step -1
    repeat = 0
end

begin
   button = Square
   prog = mplayer
   config = mute
end
Retrieved from "http://www.gentoo-wiki.info/MPlayer/LIRC"

Last modified: Tue, 19 Aug 2008 21:46:00 +0000 Hits: 865