Sopcast streaming in MP, possible? | Page 2

Discussion in 'OnlineVideos' started by TheDane, January 2, 2011.

  1. TheDane

    TheDane Portal Member

    Joined:
    December 9, 2010
    Messages:
    14
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Denmark Denmark

    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.

     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,826
    Likes Received:
    790
    Location:
    Nuenen
    Ratings:
    +1,158 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    First attempt:
    Code (Text):
    1.  
    2.     <Site name="please fill" util="GenericSite" agecheck="false" enabled="true" lang="please fill">
    3.       <Description>please fill</Description>
    4.       <Configuration>
    5.         <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>
    6.         <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>
    7.         <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>
    8.         <item key="fileUrlNameFormatString"><![CDATA[{0} {1}]]></item>
    9.         <item key="baseUrl"><![CDATA[http://myp2p.eu/index.php?part=sports]]></item>
    10.       </Configuration>
    11.       <Categories />
    12.     </Site>
    13.  
     
    • Like Like x 1
  4. msj33
    • Premium Supporter

    msj33 MP Donator

    Joined:
    November 30, 2005
    Messages:
    471
    Likes Received:
    41
    Ratings:
    +69 / 3
    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
     
  5. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,826
    Likes Received:
    790
    Location:
    Nuenen
    Ratings:
    +1,158 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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
     
  6. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    Onlinevideos currently doesn't know what sop:// urls are, so they are probably handled incorrectly. I'll debug that and add the appropriate code.
     
  7. msj33
    • Premium Supporter

    msj33 MP Donator

    Joined:
    November 30, 2005
    Messages:
    471
    Likes Received:
    41
    Ratings:
    +69 / 3
    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

    Awsome - Thanks a lot:)
     
  8. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,826
    Likes Received:
    790
    Location:
    Nuenen
    Ratings:
    +1,158 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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
     
  9. msj33
    • Premium Supporter

    msj33 MP Donator

    Joined:
    November 30, 2005
    Messages:
    471
    Likes Received:
    41
    Ratings:
    +69 / 3
    Home Country:
    England England
    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
     
  10. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,826
    Likes Received:
    790
    Location:
    Nuenen
    Ratings:
    +1,158 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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.

    Check!

    Thinking...

    I think right after you published it, that is: if you mean the list everybody is getting when they do the auto-update

    You're welcome!
     
  11. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,914
    Likes Received:
    787
    Gender:
    Male
    Ratings:
    +1,320 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    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
     

    Attached Files:

    Last edited: June 17, 2012
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!