Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pplive and sopcast in linux
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Dottout
l33t
l33t


Joined: 07 Mar 2006
Posts: 882

PostPosted: Fri Dec 14, 2007 2:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
gr0x0rd
Apprentice
Apprentice


Joined: 12 Aug 2006
Posts: 294

PostPosted: Fri Dec 14, 2007 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Fri Dec 14, 2007 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
gr0x0rd
Apprentice
Apprentice


Joined: 12 Aug 2006
Posts: 294

PostPosted: Fri Dec 14, 2007 9:07 pm    Post subject: Reply with quote

Awww, nuts. I was following the advice in http://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
View user's profile Send private message
JohnerH
Apprentice
Apprentice


Joined: 01 Mar 2004
Posts: 197
Location: Manchester,United Kingdom

PostPosted: Wed Feb 20, 2008 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Sun Feb 24, 2008 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
pietia
n00b
n00b


Joined: 24 Sep 2007
Posts: 13

PostPosted: Tue Feb 26, 2008 6:26 pm    Post subject: Reply with quote

hej !
you can also try to use binary packages from arch:
http://ftp.iasi.roedu.net/mirrors/archlinux.org/community/os/i686/
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 692
Location: Hellsinki

PostPosted: Fri Apr 04, 2008 6:23 pm    Post subject: Reply with quote

pietia wrote:
hej !
you can also try to use binary packages from arch:
http://ftp.iasi.roedu.net/mirrors/archlinux.org/community/os/i686/


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
View user's profile Send private message
pietia
n00b
n00b


Joined: 24 Sep 2007
Posts: 13

PostPosted: Fri Apr 04, 2008 8:28 pm    Post subject: Reply with quote

hi, just extract arch package to the root path "/" :)

In summary:
1) download sopcast linux version http://download.sopcast.cn/download/sp-auth.tgz
2) extract package
3) sudo mv sp-sc-auth /usr/bin/sopcast
4) download gui frontend from arch mirror http://ftp.iasi.roedu.net/mirrors/archlinux.org/community/os/i686/qsopcast-0.3.5-3.pkg.tar.gz
5) extract package to '/' path
6) enjoy :)

3.0.1 version works without any issues
Back to top
View user's profile Send private message
thewtex
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2007
Posts: 93

PostPosted: Thu Jun 12, 2008 8:59 pm    Post subject: Reply with quote

There is a sopcast and qsopcast build here
http://bugs.gentoo.org/show_bug.cgi?id=181134

But you must change the default Channel URL to
http://www.sopcast.com/chlist.xml
In Config-->Config
and restart the app.
Back to top
View user's profile Send private message
lbalan79
n00b
n00b


Joined: 12 Jun 2005
Posts: 55

PostPosted: Fri Oct 31, 2008 6:22 pm    Post subject: Solved Reply with quote

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
View user's profile Send private message
thewtex
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2007
Posts: 93

PostPosted: Fri Oct 31, 2008 7:27 pm    Post subject: Reply with quote

Sounds like you are having general overlay problems. You may want to look at
http://www.gentoo.org/proj/en/overlays/userguide.xml
Back to top
View user's profile Send private message
rjw8703
Apprentice
Apprentice


Joined: 14 Aug 2004
Posts: 246
Location: Auburn, Al

PostPosted: Wed Mar 04, 2009 5:06 pm    Post subject: Reply with quote

Can someone please help and put a step by step tutorial?
Back to top
View user's profile Send private message
Elleni
Apprentice
Apprentice


Joined: 23 May 2006
Posts: 220

PostPosted: Wed Mar 04, 2009 6:13 pm    Post subject: Reply with quote

I found and emerged gsopcast here:

layman -a gentoo-china
emerge gsopcast

works for me

:)
Back to top
View user's profile Send private message
thom_raindog
Guru
Guru


Joined: 16 May 2008
Posts: 400

PostPosted: Wed May 27, 2009 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1028
Location: Romania

PostPosted: Mon Nov 30, 2009 8:38 am    Post subject: Reply with quote

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).
_________________
My Smooth Computer
MB: VIA 82C598MVP on DFI P5BV3+/Rev. B+
CPU: AMD K6-II 333 MHz | RAM: 256 MB SDRAM
Video: Asus MB19TU on nVidia GeForce MX4000 64 MB
Sound: CM8738 | Net: RTL-8139
PATA HDD WD 80 GB & DVD-RW LG 16x
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1028
Location: Romania

PostPosted: Thu Dec 24, 2009 6:38 pm    Post subject: Reply with quote

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.
_________________
My Smooth Computer
MB: VIA 82C598MVP on DFI P5BV3+/Rev. B+
CPU: AMD K6-II 333 MHz | RAM: 256 MB SDRAM
Video: Asus MB19TU on nVidia GeForce MX4000 64 MB
Sound: CM8738 | Net: RTL-8139
PATA HDD WD 80 GB & DVD-RW LG 16x
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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