lirc-list

Hi all, I'm trying to set up my remote (MCEUSB remote that comes with
Hauppauge PVR-150 MCE tuner) to launch video files, for example a movie,
with mplayer or vlc. Mplayer does not seem to respond to irexec, does anyone
know how to launch mplayer on its own with the remote?
VLC responds to irexec but I can't get the desired command working. Here's
what I have for this in my ~/.lircrc currently:
begin
button = DVD
prog = irexec
config = vlc /media/seagate/dvd/seen/Batman\ Begins\ \(2005\)\
\[720p\]/Batman.Begins.2005.720p.HDDVD.DTS.x264.mkv
repeat = 0
When I try that, I get no response. If I run that vlc command as is on its
own, the video loads fine (not a path or naming error). And I have killed
the irexec process and restarted my lircd daemon, all else works as it
should.
Any help would be appreciated, I have a few videos I watch time to time I'd
like to set to specific buttons on the remote, this would make things real
convenient.
TIA, Bob :)
P.S. In case I have forgotten any needed info please ask, and my remote
works great with mythfrontend, amarok, vlc, mplayer, etc. currently.

Hi all, I sent this out recently but received no replies, just wondering if
it didn't get through to the list or something, if no one has an answer
that's fine, just wanted to be sure it got out there (apologies if
resending):
"Hi all, I'm trying to set up my remote (MCEUSB remote that comes with
Hauppauge PVR-150 MCE tuner) to launch video files, for example a movie,
with mplayer or vlc. Mplayer does not seem to respond to irexec, does anyone
know how to launch mplayer on its own with the remote?
VLC responds to irexec but I can't get the desired command working. Here's
what I have for this in my ~/.lircrc currently:
begin
button = DVD
prog = irexec
config = vlc /media/seagate/dvd/seen/Batman\ Begins\ \(2005\)\
\[720p\]/Batman.Begins.2005.720p.HDDVD.DTS.x264.mkv
repeat = 0
When I try that, I get no response. If I run that vlc command as is on its
own, the video loads fine (not a path or naming error). And I have killed
the irexec process and restarted my lircd daemon, all else works as it
should.
Any help would be appreciated, I have a few videos I watch time to time I'd
like to set to specific buttons on the remote, this would make things real
convenient.
TIA, Bob :)
P.S. In case I have forgotten any needed info please ask, and my remote
works great with mythfrontend, amarok, vlc, mplayer, etc. currently."

On Sat, 2008-07-26 at 17:02 -0400, Bobby Gill wrote:
> Hi all, I sent this out recently but received no replies, just
> wondering if it didn't get through to the list or something, if no one
> has an answer that's fine, just wanted to be sure it got out there
> (apologies if resending):
>
> "Hi all, I'm trying to set up my remote (MCEUSB remote that comes with
> Hauppauge PVR-150 MCE tuner) to launch video files, for example a
> movie, with mplayer or vlc. Mplayer does not seem to respond to
> irexec, does anyone know how to launch mplayer on its own with the
> remote?
>
> VLC responds to irexec but I can't get the desired command working.
> Here's what I have for this in my ~/.lircrc currently:
>
> begin
> button = DVD
> prog = irexec
> config = vlc /media/seagate/dvd/seen/Batman\ Begins\ \(2005\)\ \[720p
> \]/Batman.Begins.2005.720p.HDDVD.DTS.x264.mkv
> repeat = 0
>
> When I try that, I get no response. If I run that vlc command as is on
> its own, the video loads fine (not a path or naming error). And I have
> killed the irexec process and restarted my lircd daemon, all else
> works as it should.
>
> Any help would be appreciated, I have a few videos I watch time to
> time I'd like to set to specific buttons on the remote, this would
> make things real convenient.
>
> TIA, Bob :)
>
>
> P.S. In case I have forgotten any needed info please ask, and my
> remote works great with mythfrontend, amarok, vlc, mplayer, etc.
> currently."
Hi Bob,
I find irexec doesn't always pick up the current PATH, so you might have
to hardcode the full path to /usr/bin/vlc (or similar).
You could also try config = /home/bob/launch-vlc.sh or something and put
an echo statement before a VLC line so you can see if it tries to run.
Matthew

Hmm, I believe I've determined the culprit here, it appears to be any spaces
in the folder\filename. Wtih VLC, it's able to play if the path contains
spaces, but not brackets or any parentheses characters. Mplayer however
won't play at all if there's any spaces. I renamed the path of my video to
Batman\BatmanBegins.mkv and it plays fine now. Here's what was happening
with vlc:
~ # irexec
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `vlc /media/stuff/dvd/seen/Batman Begins (2005)
[720p]/Batman.Begins.2005.720p.HDDVD.DTS.x264.mkv'
^C
~ #
Similar errors with mplayers. I guess I have to change the folder names,
hopefully anyone in the future trying to do this can save time and just
change the path names :) Thanks for the help Matthew!
Bobby
On Mon, Jul 28, 2008 at 2:38 AM, Matthew Bodkin <lists@...>wrote:
> On Sat, 2008-07-26 at 17:02 -0400, Bobby Gill wrote:
> > Hi all, I sent this out recently but received no replies, just
> > wondering if it didn't get through to the list or something, if no one
> > has an answer that's fine, just wanted to be sure it got out there
> > (apologies if resending):
> >
> > "Hi all, I'm trying to set up my remote (MCEUSB remote that comes with
> > Hauppauge PVR-150 MCE tuner) to launch video files, for example a
> > movie, with mplayer or vlc. Mplayer does not seem to respond to
> > irexec, does anyone know how to launch mplayer on its own with the
> > remote?
> >
> > VLC responds to irexec but I can't get the desired command working.
> > Here's what I have for this in my ~/.lircrc currently:
> >
> > begin
> > button = DVD
> > prog = irexec
> > config = vlc /media/seagate/dvd/seen/Batman\ Begins\ \(2005\)\ \[720p
> > \]/Batman.Begins.2005.720p.HDDVD.DTS.x264.mkv
> > repeat = 0
> >
> > When I try that, I get no response. If I run that vlc command as is on
> > its own, the video loads fine (not a path or naming error). And I have
> > killed the irexec process and restarted my lircd daemon, all else
> > works as it should.
> >
> > Any help would be appreciated, I have a few videos I watch time to
> > time I'd like to set to specific buttons on the remote, this would
> > make things real convenient.
> >
> > TIA, Bob :)
> >
> >
> > P.S. In case I have forgotten any needed info please ask, and my
> > remote works great with mythfrontend, amarok, vlc, mplayer, etc.
> > currently."
>
> Hi Bob,
>
> I find irexec doesn't always pick up the current PATH, so you might have
> to hardcode the full path to /usr/bin/vlc (or similar).
>
> You could also try config = /home/bob/launch-vlc.sh or something and put
> an echo statement before a VLC line so you can see if it tries to run.
>
> Matthew
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>

Okay I just noticed your mention of a script Matthew, great idea and it
solves the whole thing! Simple as this:
#!/bin/bash
mplayer /media/stuff/dvd/seen/Batman\ Begins\ \(2005\)\
\[720p\]/Batman.Begins.2005.720p.HDDVD.DTS.x264.mkv
exit 0
I put that as "batman.sh" and then the ~/.lircrc config for it looks like
this:
begin
button = DVD
prog = irexec
config = sh /media/stuff/dvd/seen/batman.sh
repeat = 0
end
Thanks again Matthew, hope it helps someone else!
Bobby
On Mon, Jul 28, 2008 at 2:48 PM, Bobby Gill <bobbygill@...> wrote:
> Hmm, I believe I've determined the culprit here, it appears to be any
> spaces in the folder\filename. Wtih VLC, it's able to play if the path
> contains spaces, but not brackets or any parentheses characters. Mplayer
> however won't play at all if there's any spaces. I renamed the path of my
> video to Batman\BatmanBegins.mkv and it plays fine now. Here's what was
> happening with vlc:
>
> ~ # irexec
> sh: -c: line 0: syntax error near unexpected token `('
> sh: -c: line 0: `vlc /media/stuff/dvd/seen/Batman Begins (2005)
> [720p]/Batman.Begins.2005.720p.HDDVD.DTS.x264.mkv'
> ^C
> ~ #
>
> Similar errors with mplayers. I guess I have to change the folder names,
> hopefully anyone in the future trying to do this can save time and just
> change the path names :) Thanks for the help Matthew!
>
> Bobby
>
> On Mon, Jul 28, 2008 at 2:38 AM, Matthew Bodkin <lists@...>wrote:
>
>> On Sat, 2008-07-26 at 17:02 -0400, Bobby Gill wrote:
>> > Hi all, I sent this out recently but received no replies, just
>> > wondering if it didn't get through to the list or something, if no one
>> > has an answer that's fine, just wanted to be sure it got out there
>> > (apologies if resending):
>> >
>> > "Hi all, I'm trying to set up my remote (MCEUSB remote that comes with
>> > Hauppauge PVR-150 MCE tuner) to launch video files, for example a
>> > movie, with mplayer or vlc. Mplayer does not seem to respond to
>> > irexec, does anyone know how to launch mplayer on its own with the
>> > remote?
>> >
>> > VLC responds to irexec but I can't get the desired command working.
>> > Here's what I have for this in my ~/.lircrc currently:
>> >
>> > begin
>> > button = DVD
>> > prog = irexec
>> > config = vlc /media/seagate/dvd/seen/Batman\ Begins\ \(2005\)\ \[720p
>> > \]/Batman.Begins.2005.720p.HDDVD.DTS.x264.mkv
>> > repeat = 0
>> >
>> > When I try that, I get no response. If I run that vlc command as is on
>> > its own, the video loads fine (not a path or naming error). And I have
>> > killed the irexec process and restarted my lircd daemon, all else
>> > works as it should.
>> >
>> > Any help would be appreciated, I have a few videos I watch time to
>> > time I'd like to set to specific buttons on the remote, this would
>> > make things real convenient.
>> >
>> > TIA, Bob :)
>> >
>> >
>> > P.S. In case I have forgotten any needed info please ask, and my
>> > remote works great with mythfrontend, amarok, vlc, mplayer, etc.
>> > currently."
>>
>> Hi Bob,
>>
>> I find irexec doesn't always pick up the current PATH, so you might have
>> to hardcode the full path to /usr/bin/vlc (or similar).
>>
>> You could also try config = /home/bob/launch-vlc.sh or something and put
>> an echo statement before a VLC line so you can see if it tries to run.
>>
>> Matthew
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>
>
>