Sopcast streaming in MP, possible? (2 Viewers)

TheDane

Portal Member
December 9, 2010
14
0
Home Country
Denmark Denmark
atdhe.net support would fitt into this category aswell. Most of their stuff is flash based, but some is Veetle and Vshare so that might be harder I don't know. But atdhe is great on sports.

Flash based links from Firstrow.net and atdhe.net are collected from different hosts and flash video types - So it is probably much harder to parse these types of links.

But Sopcats links are very easy to do, because all links can be retrieved through myp2p.eu and the sopcasts filter handles the rest.

But until now, no one has offered to help on parsing Sopcast links to Onlinevideos.

So we still need help with my previous post #7, since i'm no parsing expert:-S

Anyone?

/Morten


Yeah come on brainiacs help us out :p And the people will always be grateful for your efforts put in to this :) Unfortunately I know nothing about parsing, or at least have never heard of it, so assume I know nothing of it, and beside the "coding" looks like mumbojumbo to me :confused:

But surely there has to be somebody that knows all about this, that can "fix it" in a matter of minutes... Or at least I hope so, as it would be the greatest plugin/feature to incorporate in MP.
 

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    First attempt:
    Code:
        <Site name="please fill" util="GenericSite" agecheck="false" enabled="true" lang="please fill">
          <Description>please fill</Description>
          <Configuration>
            <item key="dynamicCategoriesRegEx"><![CDATA[<td\swidth="8%"\sstyle="[^"]*"\sonmouseover="[^"]*"\sonmouseout="toggle\(null\);"\sclass="navbar_1"\sonclick="location\.href='(?<url>[^']*)';"\sid="[^"]*"\salign="center"><img\ssrc="(?<thumb>[^"]*)"\s/><br><span\sclass="subtext"><b>(?<title>[^<]*)</b></span></td>]]></item>
            <item key="videoListRegEx"><![CDATA[<tr><td\sclass="itemlist_alt0"\srowspan="2"\swidth="30"\salign="center"><img\ssrc="(?<ImageUrl>[^"]*)"\s/></td><[^>]*><b>(?<Airdate>[^<]*)</b>(?:(?!Live!).)*Live!</b></font></span></td><td\srowspan="2"\sclass="itemlist_alt0"\salign="right"\swidth="30"><a\shref="(?<VideoUrl>[^"]*)"><img\ssrc="http://www\.myp2p\.eu/gfx/icon_broadcast\.gif"\sborder="0"\s/></a></td></tr><tr\sheight="16"><td\sclass="itemlist_alt0"\sstyle="border-top:\s0px;\sbackground:\stransparent;"\swidth="20"\salign="center"><[^>]*></td><[^>]*>&nbsp;</td><td\sclass="itemlist_alt0"\sstyle="border-top:\s0px;\sbackground:\stransparent[^>]*><b>(?<Title>[^&]*)&nbsp;<[^>]*></b></td><td\sclass="itemlist_alt0"\sstyle="border-top:\s0px;\sbackground:\stransparent;"\swidth="30"\salign="center">[^<]*</td><td[^>]*><b>[^<]*<[^>]*>(?<Description>[^<]*)<]]></item>
            <item key="fileUrlRegEx"><![CDATA[<span\sclass="subtext"><b>(?<n0>[^<]*)</b></span></td><td\swidth="50"\sclass="itemlist_alt0"><span\sclass="subtext"><a\shref="(?<m0>sop:[^"]*)"\starget="_BLANK">Play</a></span></td><td\swidth="50"\sclass="itemlist_alt0"\salign="right"><span\sclass="subtext">(?<n1>[^<]*)</span>]]></item>
            <item key="fileUrlNameFormatString"><![CDATA[{0} {1}]]></item>
            <item key="baseUrl"><![CDATA[http://myp2p.eu/index.php?part=sports]]></item>
          </Configuration>
          <Categories />
        </Site>
     

    msj33

    MP Donator
  • Premium Supporter
  • November 30, 2005
    471
    76
    Home Country
    England England
    Hi Paul.

    Thanks for your help - This is a big step for getting Myp2p.eu working for us.

    Categories:
    Categories is working great, with Icons an everything:)

    Videolist:
    Regarding the Videolist, it seems, that only first "Home Team" is parsed as Title Regex - Is it correct, that you are parsing "away Team" as Description Regex?

    Will it be possible to parse both Home & Away teams as a one Title Regex? (seems like there is quite some code between home & Away:-S)

    Videolinks:
    If item from Videolist regex has no Sop//:-links within, then you get "error in URL" - Is it possible remove items without Sopcats links? Or display better error message?

    The Videostream
    Works like a charm - buffering is done with a black screen - Possible to implement buffering bar like other sites? (Or is this due to the use of Sopcast filter?)

    Thanks in advance

    /Morten
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    Nice to hear it's working!

    Videolist: that's correct. There is no way that I know of to get to separate texts in one capturing group.
    If this really is a showstopper then I (or someone else...) should write a piece of C# code to get it right.

    VideoLinks: I haven't found any clues in the videolist-html that shows if there is a sop:// url. so in order to remove those links, you have to get the html page for each match, to check it, and i think that's going to be reeaaallllyy slow...

    Buffering is an issue where offbyone can shed some light, although I think it could be codec-related
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Onlinevideos currently doesn't know what sop:// urls are, so they are probably handled incorrectly. I'll debug that and add the appropriate code.
     

    msj33

    MP Donator
  • Premium Supporter
  • November 30, 2005
    471
    76
    Home Country
    England England
    Hi Paul.

    It's kind of a showstopper, since most of the categories has home/away teams. Maybe someone could help us, parse both texts, so it would display: Everton - Chelsea.

    Regarding the Video links - Would it possible to parse more than 1 type of videolinks? Especially Veetle is interesting as many streaming use thi - but the links all play through Webbrowser (ex. Veetle - Broadcast live streaming video in HD)

    Parsing more than 1 type, minimizes the problem regarding no link parsing.

    I will ask offbyone about the buffering option.

    Thanks

    /Morten

    Onlinevideos currently doesn't know what sop:// urls are, so they are probably handled incorrectly. I'll debug that and add the appropriate code.

    Awsome - Thanks a lot:)
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    I think the veetle url's are also some kind of p2p stream, so an extra directshow filter is necessary for playing this in mediaportal
     

    msj33

    MP Donator
  • Premium Supporter
  • November 30, 2005
    471
    76
    Home Country
    England England
    I think the veetle url's are also some kind of p2p stream, so an extra directshow filter is necessary for playing this in mediaportal

    Yes, Veetle is a browser-based p2p streaming method done though VLC broadcasting.

    It is possible to parse though to VLC, but I cannot seems to get it working on WMP - It says error in codec!?!

    The resolution to getting Veetle streams from Webbrowser -> VLC is actually easy: How to Record / Watch Veetle Broadcasts in VLC | House Nation

    But can't seem to figure out, if it is possible to get working with WMP - And if Onlinevideo parsing is even possible - But thats probably a whole other story............

    For now we actually just needs 3 things to make Sopcast work perfect with myp2p.eu streams.

    -Better Videolist Parsing of Home/Away texts, so both team names appear in Title. - C# programmer needed please:)
    -Hopefully some kind of solution for not parsing links for matches, where no sop://-links is present.
    -Buffering Overlay for the Sopcast-filter/Onlinevideo plugin - Offbyone will be working on this.

    Please keep helping us - Your help is highly appreciated:0) This will already be the best Live sports Site available on Online Videos.

    I have published this Site as "Live Sports - MYP2P" though Onlinevideos Config - when will this appear in Global Sites list?

    Thanks in advance

    /Morten
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    It is possible to parse though to VLC, but I cannot seems to get it working on WMP - It says error in codec!?!
    The resolution to getting Veetle streams from Webbrowser -> VLC is actually easy: How to Record / Watch Veetle Broadcasts in VLC | House Nation

    Well after reading it, it isn't at all easy from a programmers point of view, somehow you have to keep your browser open to be able to keep watching??? Should I spawn an Internet Explorer for every stream you want to watch??

    And by the looks of it, VLC uses some kind of proxy (as we do for RTMP) for playing those streams.
    So what we need to play veetle streams is
    1: an analysis/port from the vlc-proxy to the onlinevideos plugin
    2: some kind of workaround for the "keep browser open" part, and imo it's hard, because if it wasn't, vlc didn't need that too.

    For now we actually just needs 3 things to make Sopcast work perfect with myp2p.eu streams.

    -Better Videolist Parsing of Home/Away texts, so both team names appear in Title. - C# programmer needed please:)
    Check!

    -Hopefully some kind of solution for not parsing links for matches, where no sop://-links is present.
    Thinking...

    -Buffering Overlay for the Sopcast-filter/Onlinevideo plugin - Offbyone will be working on this.

    Please keep helping us - Your help is highly appreciated:0) This will already be the best Live sports Site available on Online Videos.

    I have published this Site as "Live Sports - MYP2P" though Onlinevideos Config - when will this appear in Global Sites list?
    I think right after you published it, that is: if you mean the list everybody is getting when they do the auto-update

    Thanks in advance

    /Morten

    You're welcome!
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    2,290
    1,872
    Home Country
    United Kingdom United Kingdom
    Hey

    Just found this thread, I had already implemented myP2p into Online Videos. In OnlineVideos.Sites.brownard.rar is a SiteUtil that will parse both teams and only show sop links, I have only implemented Football but the source is attached if anyone wants to extend it (All categories now implemented!). Place the dll in Plugins/Windows/OnlineVideos/

    You'll need SopFilter installed obviously :)

    Also attached is a simple patch for OnlineVideos so sop:// links are recognised by WMP and buffered nicely.

    Edit: Updated patch to only include sopcast changes
    Edit: Tidied up the source and included latest changes in attached

    EDIT: THIS POST IS NOW OUT OF DATE - DO NOT USE THE FILES BELOW - IMPORT THE SITE FROM THE GLOBAL LIST INSTEAD
     

    Attachments

    • OnlineVideos_Sopcast.diff
      827 bytes
    • OnlineVideos.Sites.brownard.rar
      3.9 KB
    • MyP2PUtil - Source.rar
      5.7 KB
    Last edited:

    Users who are viewing this thread

    Top Bottom