Enhanced VLC lirc control

*nix specific usage questions
Albert
Cone that earned his stripes
Cone that earned his stripes
Posts: 102
Joined: 15 Mar 2006 08:17

Enhanced VLC lirc control

Postby Albert » 07 Jan 2007 23:18

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 08 Jan 2007 01:14

Can you put that in the Wiki ? In VLC howto section ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

v1rtu0s1ty
Blank Cone
Blank Cone
Posts: 16
Joined: 01 Jan 2007 10:26

Re: Enhanced VLC lirc control

Postby v1rtu0s1ty » 08 Jan 2007 21:47

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

v1rtu0s1ty
Blank Cone
Blank Cone
Posts: 16
Joined: 01 Jan 2007 10:26

Postby v1rtu0s1ty » 08 Jan 2007 22:11

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.

v1rtu0s1ty
Blank Cone
Blank Cone
Posts: 16
Joined: 01 Jan 2007 10:26

Postby v1rtu0s1ty » 08 Jan 2007 23:31

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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests