Page 1 of 1

Enhanced VLC lirc control

Posted: 07 Jan 2007 23:18
by Albert
Hello,

I needed to use VLC + lirc + rc interface commad (goto X), because I needed to press a button 5 and jump into position 5 in my playlist :-)

I use irexec + netcat to control VLC with IR remote

the idea:

Code: Select all

vlc -I rc --rc-host localhost:12345 /home/ondra/playlist.m3u and cat play1.sh #!/bin/bash echo "goto 0" | netcat localhost 12345 -q 1 and .lircrc ... begin prog = irexec button = 1 config = /home/ondra/.vlc/play1.sh &\n end ...
I wrote a short howto http://www.natur.cuni.cz/~kuda/howtos/vlc_lirc.html
One can use any of vlc rc commands this way. I hope someone will find it helpful.
Albert

Posted: 08 Jan 2007 01:14
by Jean-Baptiste Kempf
Can you put that in the Wiki ? In VLC howto section ?

Re: Enhanced VLC lirc control

Posted: 08 Jan 2007 21:47
by v1rtu0s1ty
Hi Albert,

I've been using lirc in mythtv, xine and mplayer. I saw your .lircrc however, I noticed that you don't have a pause, stop. Do you know what those matches in vlc?

Thanks!
Hello,

I needed to use VLC + lirc + rc interface commad (goto X), because I needed to press a button 5 and jump into position 5 in my playlist :-)

I use irexec + netcat to control VLC with IR remote

the idea:

Code: Select all

vlc -I rc --rc-host localhost:12345 /home/ondra/playlist.m3u and cat play1.sh #!/bin/bash echo "goto 0" | netcat localhost 12345 -q 1 and .lircrc ... begin prog = irexec button = 1 config = /home/ondra/.vlc/play1.sh &\n end ...
I wrote a short howto http://www.natur.cuni.cz/~kuda/howtos/vlc_lirc.html
One can use any of vlc rc commands this way. I hope someone will find it helpful.
Albert

Posted: 08 Jan 2007 22:11
by v1rtu0s1ty
Looking more closely to your .lircrc, I found out that you are just using a work around. :o

I was under the impression that vlc really had lirc support. I just recompiled vlc 3 days ago with --enable-lirc. So I assumed that we can directly use vlc rather than irexec and echo commands.

something like this would be the ideal way.

begin
prog = vlc
button = stop
config = quit
end

Hopefully someone can share the config buttons in vlc.

Posted: 08 Jan 2007 23:31
by v1rtu0s1ty
BAM!

I found what I need at http://gentoo-wiki.com/HOWTO_LIRC#Using ... dia_player

begin
prog = vlc
button = Pause
config = key-play
end
begin
prog = vlc
button = Stop
config = key-pause
end
# Use this target if you have a combined play/pause button
begin
prog = vlc
button = Ok
config = key-play-pause
repeat = 0
end
begin
prog = vlc
button = 8
config = key-stop
end
begin
prog = vlc
button = Quit
config = key-quit
end
begin
prog = vlc
button = Channel+
config = key-next
repeat = 0
end
begin
prog = vlc
button = Channel-
config = key-prev
repeat = 0
end
begin
prog = vlc
button = Up
config = key-fullscreen
end
begin
prog = vlc
button = Red
config = key-slower
end
begin
prog = vlc
button = Green
config = key-faster
end
begin
prog = vlc
button = Left
config = key-jump-3sec
repeat = 1
end
begin
prog = vlc
button = Right
config = key-jump+3sec
repeat = 1
end
begin
prog = vlc
button = Chan-Stop
config = key-jump-1min
end
begin
prog = vlc
button = Chan+Play
config = key-jump+1min
end

#Audio controls
begin
prog = vlc
button = Vol-
config = key-vol-down
repeat = 1
end
begin
prog = vlc
button = Vol+
config = key-vol-up
repeat = 1
end
begin
prog = vlc
button = SOMEBUTTON
config = key-audio-track
end
begin
prog = vlc
button = Mute
config = key-vol-mute
end