Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

pplive and sopcast in linux

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
42 posts
  • Previous
  • 1
  • 2
Author
Message
Dottout
l33t
l33t
User avatar
Posts: 882
Joined: Tue Mar 07, 2006 6:38 pm

  • Quote

Post by Dottout » Fri Dec 14, 2007 2:19 pm

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: Select all

$ 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 ;)
Top
gr0x0rd
Guru
Guru
User avatar
Posts: 311
Joined: Sat Aug 12, 2006 7:37 pm

  • Quote

Post by gr0x0rd » Fri Dec 14, 2007 7:35 pm

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: Select all

PORTDIR_OVERLAY="/usr/local/portage/"
to make.conf

Added

Code: Select all

=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: Select all

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: Select all

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...
Top
gimpel
Advocate
Advocate
User avatar
Posts: 2720
Joined: Fri Oct 15, 2004 10:08 am
Location: Munich, Bavaria
Contact:
Contact gimpel
Website

  • Quote

Post by gimpel » Fri Dec 14, 2007 7:42 pm

gr0x0rd wrote:Here is my /usr/local/portage/ directory structure

Code: Select all

media-tv
 gsopcast-svn
    gsopcast-0.0.17g.ebuild
gsopcast-svn != gsopcast
;)
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Top
gr0x0rd
Guru
Guru
User avatar
Posts: 311
Joined: Sat Aug 12, 2006 7:37 pm

  • Quote

Post by gr0x0rd » Fri Dec 14, 2007 9:07 pm

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: Select all

DEPEND=">=media-tv/sp-sc-0.9.6
to

Code: Select all

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...
Top
JohnerH
Apprentice
Apprentice
User avatar
Posts: 197
Joined: Mon Mar 01, 2004 1:05 pm
Location: Manchester,United Kingdom

  • Quote

Post by JohnerH » Wed Feb 20, 2008 6:46 pm

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...
Top
carpman
Advocate
Advocate
Posts: 2202
Joined: Thu Jun 20, 2002 2:42 pm
Location: London - UK

  • Quote

Post by carpman » Sun Feb 24, 2008 2:52 pm

hello, i am getting the dir structure error too

Code: Select all

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
Top
pietia
n00b
n00b
Posts: 13
Joined: Mon Sep 24, 2007 9:40 pm

  • Quote

Post by pietia » Tue Feb 26, 2008 6:26 pm

hej !
you can also try to use binary packages from arch:
http://ftp.iasi.roedu.net/mirrors/archl ... y/os/i686/
Top
linuxtuxhellsinki
l33t
l33t
User avatar
Posts: 700
Joined: Mon Nov 15, 2004 1:56 pm
Location: Hellsinki

  • Quote

Post by linuxtuxhellsinki » Fri Apr 04, 2008 6:23 pm

pietia wrote:hej !
you can also try to use binary packages from arch:
http://ftp.iasi.roedu.net/mirrors/archl ... y/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?s ... t=software#
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Top
pietia
n00b
n00b
Posts: 13
Joined: Mon Sep 24, 2007 9:40 pm

  • Quote

Post by pietia » Fri Apr 04, 2008 8:28 pm

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/archl ... pkg.tar.gz
5) extract package to '/' path
6) enjoy :)

3.0.1 version works without any issues
Top
thewtex
Tux's lil' helper
Tux's lil' helper
Posts: 93
Joined: Fri Jun 22, 2007 7:07 pm
Contact:
Contact thewtex
Website

  • Quote

Post by thewtex » Thu Jun 12, 2008 8:59 pm

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.
Top
lbalan79
n00b
n00b
Posts: 56
Joined: Sun Jun 12, 2005 2:33 pm

Solved

  • Quote

Post by lbalan79 » Fri Oct 31, 2008 6:22 pm

For future reference sopcast needs to be downloaded first and under media-tv/sopcast and then the ebuild of qsopcast works.


Still getting

Code: Select all

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.
Top
thewtex
Tux's lil' helper
Tux's lil' helper
Posts: 93
Joined: Fri Jun 22, 2007 7:07 pm
Contact:
Contact thewtex
Website

  • Quote

Post by thewtex » Fri Oct 31, 2008 7:27 pm

Sounds like you are having general overlay problems. You may want to look at
http://www.gentoo.org/proj/en/overlays/userguide.xml
Top
rjw8703
Apprentice
Apprentice
Posts: 246
Joined: Sat Aug 14, 2004 5:27 pm
Location: Auburn, Al

  • Quote

Post by rjw8703 » Wed Mar 04, 2009 5:06 pm

Can someone please help and put a step by step tutorial?
Top
Elleni
Veteran
Veteran
Posts: 1298
Joined: Tue May 23, 2006 10:56 pm

  • Quote

Post by Elleni » Wed Mar 04, 2009 6:13 pm

I found and emerged gsopcast here:

layman -a gentoo-china
emerge gsopcast

works for me

:)
Top
thom_raindog
Guru
Guru
User avatar
Posts: 400
Joined: Fri May 16, 2008 6:25 am

  • Quote

Post by thom_raindog » Wed May 27, 2009 7:07 pm

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..
Top
sebaro
Veteran
Veteran
User avatar
Posts: 1141
Joined: Mon Jul 03, 2006 5:49 am
Location: Romania
Contact:
Contact sebaro
Website

  • Quote

Post by sebaro » Mon Nov 30, 2009 8:38 am

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).
Top
sebaro
Veteran
Veteran
User avatar
Posts: 1141
Joined: Mon Jul 03, 2006 5:49 am
Location: Romania
Contact:
Contact sebaro
Website

  • Quote

Post by sebaro » Thu Dec 24, 2009 6:38 pm

Found a sopcast script here: http://krischer.org/linux/special/sop
Modified a bit:

Code: Select all

#!/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: Select all

[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.
Top
Post Reply

42 posts
  • Previous
  • 1
  • 2

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic