View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: mplayer lircrc question
PostPosted: Mon Jun 04, 2007 11:04 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
OK, dumb question here. I want to cycle the audio tracks in mplayer from my remote. The keyboard key for this is #. When I put this in the lircrc file it get's ignored (ie comment) I tried the # in quotes as in "#", reboot, still nothing. How do I get the # to be recognized in lircrc?

TIA


Top
 Profile  
 
PostPosted: Tue Jun 05, 2007 5:42 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
Too Many Secrets wrote:
OK, dumb question here. I want to cycle the audio tracks in mplayer from my remote. The keyboard key for this is #. When I put this in the lircrc file it get's ignored (ie comment) I tried the # in quotes as in "#", reboot, still nothing. How do I get the # to be recognized in lircrc?

TIA
For special characters to be taken literally by shell you need to escape them. Not sure if lircd works the same way, but try \# (backslash pound).


Top
 Profile  
 
PostPosted: Wed Jun 06, 2007 11:03 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
slowtolearn wrote:
Too Many Secrets wrote:
OK, dumb question here. I want to cycle the audio tracks in mplayer from my remote. The keyboard key for this is #. When I put this in the lircrc file it get's ignored (ie comment) I tried the # in quotes as in "#", reboot, still nothing. How do I get the # to be recognized in lircrc?

TIA
For special characters to be taken literally by shell you need to escape them. Not sure if lircd works the same way, but try \# (backslash pound).


Well I've tried \# , '#' and "#" still nothing.

Been reading here, but still can't figure this out. Still looking...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 12:21 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
The lirc documentation has the answers: http://www.lirc.org/html/configure.html#lircrc_format See the bit under the "config" keyword. For button names there is no reason to use special characters, simply a description like "Star" or "Pound".


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 03, 2007 6:34 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
I'm getting back into this and I still can't make this work. I want to be able to cycle the audio tracks in a .vob file from my remote. Using a keyboard I can press <Shift + 3> making the # but I can't translate this into the lircrc file. I just need the "config = xxxx" line. I've read all the above pages and it's still not making it thru to my brain how to do this. If any kind soul could take pity?

Code:
begin
        prog = mplayer
        button = BLUE
        #cycle audio tracks
        config =
end


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 03, 2007 7:47 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Running:
Code:
man ascii

will show you the numeric values values for various ASCII characters. Pound sign '#' is 043 octal (0x23 hexadecimal). Therefore to get that character you would use the backslash '\' "escape convention" described in the LIRC file format page like this:
Code:
begin
        prog = mplayer
        button = BLUE
        #cycle audio tracks
        config = \043
end

They describe a lot of shortcuts for common control characters (for example \r \M \x0d and \015 all mean the same thing) but octal is the most general form.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu