View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Aug 28, 2007 8:46 am 
Offline
Joined: Thu Sep 30, 2004 12:26 pm
Posts: 468
Location: Canada
Hi,

I have an odd request, not sure if there's a way to make it work or not. When I listen to internet streams I almost always listen to the same shoutcast stream. But it takes too long to find the stream through the menus. I would love it if I could setup a button on my remote, to automatically switch to Internet streams, and start playing a specific stream. It would also allow me to not have to turn on the TV just to find the stream. I could just push the button, and it would be playing.

Is there any way I can hack this into working?

Thanks.

_________________
"The amount of time needed to solve a problem is inversely proportionate to the complexity of the solution" -- Me

KM: R5.5
CPU: Athlon 3800+
Vid: nvidia 7300GT
Snd: Chaintech av-710
Tuner: PVR150
HD: 1000gb sata + 750gb sata + 500gb usb


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 28, 2007 12:29 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
Well, I suppose mplayer can play the stream so a script like:
Code:
#!/bin/bash
mplayer http://shoutcast.com/blahblah/playlist.pls
Or something like that... I'd have a start stream and stop stream on the menu. If you search the forum, you'll find info on making a menu entry. To stop the stream, simply kill mplayer.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 28, 2007 12:44 pm 
Offline
Joined: Thu Sep 30, 2004 12:26 pm
Posts: 468
Location: Canada
That would work...not ideal, but it would work.

Thanks.

_________________
"The amount of time needed to solve a problem is inversely proportionate to the complexity of the solution" -- Me

KM: R5.5
CPU: Athlon 3800+
Vid: nvidia 7300GT
Snd: Chaintech av-710
Tuner: PVR150
HD: 1000gb sata + 750gb sata + 500gb usb


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 27, 2007 12:11 am 
Offline
Joined: Thu Sep 30, 2004 12:26 pm
Posts: 468
Location: Canada
So I whipped up a little script and bound it to a button on my remote.

Code:
#!/bin/bash

pidfile=~/playChronix.pid

if [ ! -e "$pidfile" ]
then
        prog="mplayer http://www.chronixradio.com/chronixaggression/listen/listen.pls"
        $prog &
        PID=$!
        echo $PID > "$pidfile"
else
        pid2kill=`cat $pidfile`
        kill -9 $pid2kill
        rm $pidfile
fi

exit 0


added it to /home/mythtv/scripts/.lircrc as
Code:
# Play Shoutcast Stream
begin
prog = mythtv
button = blue
config = /home/mythtv/scripts/playChronix.sh
end


...but it doesn't work, if I just run the script on the command line, it's perfect. Not sure where to look to see what's wrong.

_________________
"The amount of time needed to solve a problem is inversely proportionate to the complexity of the solution" -- Me

KM: R5.5
CPU: Athlon 3800+
Vid: nvidia 7300GT
Snd: Chaintech av-710
Tuner: PVR150
HD: 1000gb sata + 750gb sata + 500gb usb


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu