View previous topic :: View next topic |
Author |
Message |
gr0x0rd Guru
Joined: 12 Aug 2006 Posts: 311
|
Posted: Tue Jan 01, 2008 11:26 pm Post subject: HOWTO Sopcast |
|
|
I created this thread ages ago and took you through a method of opening up sop:// links from firefox. I use a different method now, so I thought I'd share it with anyone who gives a stem.
So wtf is sopcast? It's a media streaming tool that is used commonly for live sports. If you're like me and have abandoned your local cable company, here's an easy way to keep up with your favorite team, wherever you are in the world.
First, you need to install a sopcast client. Ubuntu have a sopcast client and gui in their package manager, and sopcast and guis for sopcast used to exist in portage, but they don't anymore. No idea why, maybe lack of interest?
Visit http://download.sopcast.com/download/ and download the latest client. Extract the archive, navigate to where you extracted the files and Code: | sudo cp sp-sc-auth /usr/bin/
cd /usr/bin
sudo ln -s sp-sc-auth sp-sc
sudo ln -s sp-sc-auth sopcast | The next thing you'll need is to know the url's of the channels you will want to watch. I get most of mine from myp2p. Next, we'll create another nifty little bash script:Here's something to start with: Code: | #! /bin/bash
#
####################################
#
# sop: gr0x0rd's sopcast launcher
#
####################################
echo -n "Which port? (08-?)"
read -e PORT
echo 'Which channel?'
PS3='Choice: '
select channel in \
'NDSports1' \
'NDSports2' \
'DAZ Sports1' \
'AVJ Sports' \
'idfk'
do
case $REPLY in
1 ) SOP=sop://broker.sopcast.com:3912/75687 ;;
2 ) SOP=sop://broker.sopcast.com:3912/81914 ;;
3 ) SOP=sop://broker.sopcast.com:3912/65179 ;;
3 ) SOP=sop://broker.sopcast.com:3912/65179 ;;
4 ) SOP=sop://broker.sopcast.com:3912/79543 ;;
5 ) SOP=sop://broker.sopcast.com:3912/36451 ;;
* ) echo 'wtf?' ;;
esac
if [[ -n $channel ]]; then
exec sp-sc $SOP 39$PORT 89$PORT > /dev/null &
sleep 5;
export DISPLAY=:0.1 && exec vlc -f --aspect-ratio 16:9 http://$HOSTNAME:89$PORT &>/dev/null &
echo "...And a good day to you, sir!"
break
fi
done | This bash script will open the selected channel on the specified port in vlc fullscreen on the secondary display. You can changed the display it opens on and/or player used by editing the "export DISPLAY=:0.1 && exec vlc -f --aspect-ratio 16:9 http://$HOSTNAME:89$PORT &>/dev/null &" line. And of course, you can always add more channels by adding the right into to the select and case statements.
When you're done, don't forget to make your script executable and available for users! Code: | sudo chmod 755 sop
sudo chown root:users sop | Happy sopcasting! _________________ ~g
emerge -FML...
Last edited by gr0x0rd on Wed Jan 02, 2008 5:47 pm; edited 2 times in total |
|
Back to top |
|
|
Elleni Veteran
Joined: 23 May 2006 Posts: 1270
|
|
Back to top |
|
|
|
|
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 vote in polls in this forum
|
|