Saturday, October 11, 2008

lircrc for mplayer

Ok, time to beable to control mplayer with the remote control. In the mythtv users home directory add this to the .lircrc file (or create it if it doesn't exist):

#mplayer
begin
prog = mplayer
button = Back
config = quit
end

begin
prog = mplayer
button = Mute
config mute
end

begin
prog = mplayer
button = Rewind
config = seek -10
repeat = 2
end

begin
prog = mplayer
button = Forward
config = seek -10
repeat = 2
end

begin
prog = mplayer
button = Pause
config = pause
end

begin
prog = mplayer
button = Right
config = seek +100
end

begin
prog = mplayer
button = Left
config = seek -100
end

begin
prog = mplayer
button = Up
config = audio_delay 0.100
end

begin
prog = mplayer
button = Down
config = audio_delay -0.100
end

No comments: