View previous topic :: View next topic |
Author |
Message |
Dottout l33t
Joined: 07 Mar 2006 Posts: 882
|
Posted: Fri Dec 14, 2007 2:19 pm Post subject: |
|
|
gr0x0rd wrote: | I used the resources in this thread to get sopcast up and running. All of the active gui's seem to use the qt libraries so I didn't bother with a GUI. There wasn't much out there in the way of a how-to once it was installed so I thought I'd post it here to save any new users some time...
Once the sp-sc is ready in your /usr/bin all you need is a sop:// url. Connect to the stream using the following commands:
Code: | $ sp-sc [url] 3908 8908 >/dev/null & |
This will return a processID. Next, open your favorite media viewer and open the following network stream:
http://127.0.0.1:8908
Enjoy the show. When you're done, don't forget to kill the process.
That's it. |
read some posts above, gsopcast with given ebuild is a gtk gui |
|
Back to top |
|
|
gr0x0rd Guru
Joined: 12 Aug 2006 Posts: 311
|
Posted: Fri Dec 14, 2007 7:35 pm Post subject: |
|
|
Haha yeah, the reason I didn't try your ebuild is because I'm a noob and haven't installed any 3rd party ebuilds before. Now that you've tempted me with it I had to try. Here's as far as I was able to get:
Added Code: | PORTDIR_OVERLAY="/usr/local/portage/" | to make.conf
Added Code: | =media-tv/sopcast-1.1.1
=media-tv/gsopcast-0.0.17g | to package.keywords
Created gsopcast-0.0.17g.ebuild and sopcast-1.1.1.ebuild from the info in this thread
Here is my /usr/local/portage/ directory structure Code: | media-tv
gsopcast-svn
gsopcast-0.0.17g.ebuild
sopcast
sopcast-1.1.1.ebuild |
When I try to digest the build, here's what I get Code: | teletran3 gsopcast-svn # ebuild gsopcast-0.0.17g.ebuild digest
Appending /usr/local/portage to PORTDIR_OVERLAY...
!!! /usr/local/portage does not seem to have a valid PORTDIR structure. |
I've looked through a few threads here and from what I've read this should be correct... any hints? _________________ ~g
emerge -FML... |
|
Back to top |
|
|
gimpel Advocate
Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Fri Dec 14, 2007 7:42 pm Post subject: |
|
|
gr0x0rd wrote: | Here is my /usr/local/portage/ directory structure Code: | media-tv
gsopcast-svn
gsopcast-0.0.17g.ebuild |
|
gsopcast-svn != gsopcast
_________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
|
gr0x0rd Guru
Joined: 12 Aug 2006 Posts: 311
|
Posted: Fri Dec 14, 2007 9:07 pm Post subject: |
|
|
Awww, nuts. I was following the advice in https://forums.gentoo.org/viewtopic-t-579085.html . After making that change I was able to digest both packages
I changed Code: |
DEPEND=">=media-tv/sp-sc-0.9.6 | to Code: | DEPEND=">=media-tv/sopcast-1.1.1 | in the gsopcast-0.0.17g.ebuild. I trust I was supposed to do this.
Emerged and up and running... thanks! _________________ ~g
emerge -FML... |
|
Back to top |
|
|
JohnerH Apprentice
Joined: 01 Mar 2004 Posts: 197 Location: Manchester,United Kingdom
|
Posted: Wed Feb 20, 2008 6:46 pm Post subject: |
|
|
Has this changed recently?
I can't get the ebuild(s) to digest...
J _________________ ------------------------------------------------------
I think I had a thought once but it Died of Lonelyness... |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Sun Feb 24, 2008 2:52 pm Post subject: |
|
|
hello, i am getting the dir structure error too
Code: | ebuild qsopcast-0.3.5.ebuild digest
!!! /usr/local/portage/media-tv/gsopcast/qsopcast-0.3.5.ebuild does not seem to have a valid PORTDIR structure.
|
cheers _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
pietia n00b
Joined: 24 Sep 2007 Posts: 13
|
|
Back to top |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Fri Apr 04, 2008 6:23 pm Post subject: |
|
|
How I'm not familiar with those arch's pkgs.
And what about that new 3.0.1 version released 28.03-08 (ebuilds ?), the download links doesn't work for GUI stuff ?
http://www3.myp2p.eu/softwareitem.php?softwareid=5&part=software# _________________ 1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread. |
|
Back to top |
|
|
pietia n00b
Joined: 24 Sep 2007 Posts: 13
|
|
Back to top |
|
|
thewtex Tux's lil' helper
Joined: 22 Jun 2007 Posts: 93
|
|
Back to top |
|
|
lbalan79 n00b
Joined: 12 Jun 2005 Posts: 56
|
Posted: Fri Oct 31, 2008 6:22 pm Post subject: Solved |
|
|
For future reference sopcast needs to be downloaded first and under media-tv/sopcast and then the ebuild of qsopcast works.
Still getting
Code: | ebuild qsopcast-0.3.5.ebuild digest
Appending /usr/local to PORTDIR_OVERLAY...
!!! /usr/local/portage/media-tv/qsopcast-0.3.5.ebuild does not seem to have a valid PORTDIR structure. |
Can someone please help and put a step by step tutorial on where to download those ebuild from the gentoo bug.
Thank you. |
|
Back to top |
|
|
thewtex Tux's lil' helper
Joined: 22 Jun 2007 Posts: 93
|
|
Back to top |
|
|
rjw8703 Apprentice
Joined: 14 Aug 2004 Posts: 246 Location: Auburn, Al
|
Posted: Wed Mar 04, 2009 5:06 pm Post subject: |
|
|
Can someone please help and put a step by step tutorial? |
|
Back to top |
|
|
Elleni Veteran
Joined: 23 May 2006 Posts: 1270
|
Posted: Wed Mar 04, 2009 6:13 pm Post subject: |
|
|
I found and emerged gsopcast here:
layman -a gentoo-china
emerge gsopcast
works for me
|
|
Back to top |
|
|
thom_raindog Guru
Joined: 16 May 2008 Posts: 400
|
Posted: Wed May 27, 2009 7:07 pm Post subject: |
|
|
Elleni wrote: | I found and emerged gsopcast here:
layman -a gentoo-china
emerge gsopcast
works for me
|
The overlay seems to not exist according to layman.. |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Mon Nov 30, 2009 8:38 am Post subject: |
|
|
Quote: | SopCast client version 3.2.6
Build time: 2009-11-09 15:09
Change log:
--Improve the data transfering performance.
--H.264 support |
Made an ebuild http://seblun.awardspace.us/gentoo/ (rename .source to .tar.gz). |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Thu Dec 24, 2009 6:38 pm Post subject: |
|
|
Found a sopcast script here: http://krischer.org/linux/special/sop
Modified a bit:
Code: |
#!/bin/bash
######################################################
# Startupscript for www.sopcast.com P2P Videostreams #
# Needs the sp-sc from Sopcast www.sopcast.com #
# #
# Published under the terms of the GNU GPL License #
######################################################
# Define some variables
# Which port to use
# default "8908"
LOCALPORT=8908
# Which Mediaplayer (vlc, mplayer, xine) (executable)
# default "vlc" / works best with x.264
MEDIAPLAYER=mplayer
# How long wait for buffer before we start the mediaplayer
# Time to Buffer depends on your connection and the channel
WAITTIME=10
#some more stuff
RED="\033[1;31m"
GREEN="\033[1;32m"
YELLOW="\033[1;33m"
BLUE="\033[1;34m"
RESET="\033[00m"
# set Channel from $1
CHANNEL=$1
# Which Brokerserver (broker, broker1, broker2)
# If given with sopcast-adress, this variable will be overwritten.
# default "broker"
BROKER=broker
#helper functions
HELP=$(echo -e "SOPCAST-Starter - the sopcast linux tool
calls the sopcast binary with complete parameterset
from your browser
\tUsage: $(basename $0) [channel] | [sopcast-url]\n")
#nice passivepopup for 3 seconds
user_info() {
kdialog --passivepopup "$1" --title "SOPCAST-Starter" 3
}
#Help output
if [[ $1 = "-h" || $1 = "" ]]; then
user_info "$HELP"
exit 1
fi
# check if sop is called with complete sopcast address (like a browser would)
if [[ "$1" =~ "sop://" ]]; then
# EXTRACT CHANNEL FROM ADDRESS
CHANNEL=$(echo $1 | grep .sopcast.com:3912/ | awk -F ".sopcast.com:3912/" '{ print Buffer $2 }')
# EXTRACT CALLED BROKERSERVER
BROKER=$(echo $1 | grep .sopcast.com:3912/ | awk -F ".sopcast.com:3912/" '{ print Buffer $1 }' | awk -F "sop://" '{ print Buffer $2 }')
fi
#start sopcast now
start_sopcast() {
# kill running instances first
if [[ $(ps -A | grep sp-sc) != "" ]]; then
killall -9 sp-sc >/dev/null
fi
# start sopcast in background, shrink the ouput to buffersize only (maybe use it later)
sp-sc sop://$BROKER.sopcast.com:3912/$CHANNEL 3908 $LOCALPORT | grep nblockAvailable= |awk -F "nblockAvailable=" '{ print Buffer $2 }' | tr -s "\n" "\r BUFFER: " &
kdialog --passivepopup "Sopcast started for channel $CHANNEL " --title "SOPCAST-Starter" 5
# wait for buffer to grow....
sleep $WAITTIME
#fire up mediaplayer
user_info "$MEDIAPLAYER ready to start..."
$MEDIAPLAYER http://localhost:$LOCALPORT/tv.asf >/dev/null
# if mediaplayer ends, check if sopcast runs
if [[ $(ps -A | grep sp-sc) != "" ]]; then
kdialog --yesno "Your Mediaplayer was terminated, do you want to re-run it (YES) or do you want to kill the sopcast process (NO)" --title "SOPCAST-Starter"
if [[ $? = "1" ]]; then
killall -9 sp-sc >/dev/null
elif [[ $? = "0" ]]; then
$MEDIAPLAYER http://localhost:$LOCALPORT/tv.asf >/dev/null
fi
fi
}
start_sopcast
#set Prompt to white again (change if your using black on white)
echo -e "$RESET"
|
And the sop protocol for KDE:
Code: |
[Protocol]
exec=path_to_sopcast_bash_script "%u"
protocol=sop
input=none
output=none
helper=true
listing=false
reading=false
writing=false
makedir=false
deleting=false
Icon=""
|
save it as /home/.kde4/share/kde4/services/sop.protocol.
It doesn't work with IP sopcast links. |
|
Back to top |
|
|
|