LinHES Forums
http://forum.linhes.org/

Lirc and Mplayer control [SOLVED]
http://forum.linhes.org/viewtopic.php?f=6&t=19093
Page 1 of 1

Author:  ethernut [ Sat Oct 11, 2008 12:55 pm ]
Post subject:  Lirc and Mplayer control [SOLVED]

I'm using mplayer-resumer which works well. I have a few AVI's with multiple audio tracks. The problem I have is that I need to use alternate audio tracks on some of them instead of the default audio track. I can hit the "#" on my keyboard and the track will switch just fine. See the excerpt below from the Mplayer Manual

# (DVD, MPEG, Matroska, AVI and libavformat only)
Cycle through the available audio tracks.

According to the irw command, the # key on my remote is correctly recognized:


root@mythtv:~# irw
000000000000178e 00 # Hauppauge_350
000000000000178e 01 # Hauppauge_350
000000000000178e 02 # Hauppauge_350


I edited my /home/mythtv/.lircrc and added the following entry:

begin
prog = mplayer
button = #
config = #
repeat = 3
end


This does not seem to work though and I have no idea why.

Any help would be appreicated...

Ether..

Author:  tjc [ Sat Oct 11, 2008 7:08 pm ]
Post subject: 

Well /home/mythtv/.lircrc should be a symlink to /home/mythtv/.mythtv/lircrc and you shouldn't edit the file via the link as too many editors will get that wrong. Check that it is a symlink and that you've actually modified the right file rather than creating a divergent copy.

Oh and since # is the comment character so you may need to quote it or something.

Author:  Too Many Secrets [ Sat Oct 11, 2008 7:53 pm ]
Post subject: 

Might look here. But frankly, I couldn't get it to work no matter what I tried.

Author:  ghede [ Sat Oct 11, 2008 10:59 pm ]
Post subject: 

Some searching around and I get the feeling from looking at the files that you might need to use the name from the
Code:
mplayer -input cmdlist

The lirc file seems to use all the cmdlist names for mplayer with any respective [value] for the action.

Try this:

Change your 'config = #' to 'config = switch_audio'


Jim

Author:  ethernut [ Sat Oct 25, 2008 10:30 am ]
Post subject: 

Ghede, your suggestion worked! # on my remote now switches the audio tracks! Thanks!!!

Too Many.. there ya go!

Ether..

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/