TOU.TV doesn't works | Page 4

Discussion in 'OnlineVideos' started by kilik360, May 16, 2011.

  1. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    I have checked bug report and stream mentioned in bug report is encrypted. Good news are that they're using same encryption as used on SVT. Maybe I'm wrong, but only needed parameters should be hdcore and g (g is 12 character long, random A to Z string). Filter from OV 1.4 is capable to decrypt (better is to use from SVN - some minor fixes), but you need installed Flash Player for Internet Explorer.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Benoit LeBlanc

    Benoit LeBlanc Portal Member

    Joined:
    April 23, 2012
    Messages:
    17
    Likes Received:
    2
    Gender:
    Male
    Location:
    Montreal, Quebec
    Ratings:
    +2 / 0
    Home Country:
    Canada Canada
    I don't know if this can help, but Tou.tv does have a iOS-compatible site that streams mp4... shouldn't it be possible to use those streams instead of the Flash player?
     
  4. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    Probably yes, but quality of these streams is possibly optimised for iOS devices (low resolution, low quality).
     
  5. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    @georgius:
    1. Starting with the Belle maman page (http://www.tou.tv/belle-maman) we find idMedia (UwKabILm2W9_ChVsNs_ztrmFUPIZsuiW).
    2. Then call the API with URL which takes the idMedia
    3. You should get back JSON with manifest URL as follows
      Code (Text):
      1. Player_srcAV_21378044.validationSuccess({"url":"http://cp143903-f.akamaihd.net/z/003/mp4/b/2011-03-22_bellemaman_0001_,500,800,1200,.mp4.csmil/manifest.f4m?hdnea=st=1357667309~exp=1357667324~acl=/z/003/mp4/b/2011-03-22_bellemaman_0001_*~hmac=3b2dd364d1e060b011ca3692cf6b4e9bcbf4438f00722287cc4e3e3459700afd","message":null,"errorCode":0,"params":[{"name":"mediaType","value":"video"},{"name":"streamType","value":"akamaiHDN2"},{"name":"tokenType","value":"flashHDNetSession"}],"bitrates":[{"bitrate":1200,"width":852,"height":480,"lines":"480p","param":null},{"bitrate":800,"width":640,"height":360,"lines":"360p","param":null},{"bitrate":500,"width":640,"height":360,"lines":"270p","param":null}]},66)
    4. To get to that manifest URL, you have to use a UserAgent string, e.g., Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0, otherwise you will get access denied.
    Let me know if you need anything else.

    Find attached a manifest and 5 fragment files (used K-S-V AdobeHDS.php script on Mac OS X).
     

    Attached Files:

  6. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    I hope that your working in C#. In that case use HttpUrl class and set property UserAgent. E.g.:
    Code (Text):
    1. String returnedUrlToOV = new OnlineVideos.MPUrlSourceFilter.HttpUrl(manifestUrl) { UserAgent = "[FONT=courier new]Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0[/FONT]"  }.ToString();
    2.  
     
  7. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    Thank you, thank you. You are a genius. This part is solved.

    Now onto next issue. The spinner keeps spinning and buffer stays at 0.0%. Logs attached.
     
  8. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    Remote server returned 403 Forbidden. Probably because bad constructed URL. Can you catch format of segment - fragment URL? These URLs have on the end SegXX-FragXX part.
     
  9. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    By the way, I can confirm from within OV that I can see the contents of manifest (used an extra debugging statement with GetWebData(url, userAgent: "blah")).

    The same manifest URL is then supplied to MPUrlSourceFilter. So, access denied somewhere else within MPUrlSourceFilter?

    From the K-S-V PHP script, I gathered the following (for debugging purposes).

    Manifest:
    Code (Text):
    1. <?xml version="1.0" encoding="UTF-8"?><manifest xmlns="http://ns.adobe.com/f4m/1.0" xmlns:akamai="uri:akamai.com/f4m/1.0">
    2.   <akamai:version>2.0</akamai:version>
    3.   <akamai:bw>5000</akamai:bw>
    4.   <id>/003/mp4/b/2011-03-22_bellemaman_0001_,500,800,1200,.mp4.csmil_0</id>
    5.   <streamType>recorded</streamType>
    6.   <akamai:streamType>vod</akamai:streamType>
    7.   <duration>336.851</duration>
    8.   <streamBaseTime>0.000</streamBaseTime>
    9.   <pv-2.0>;hdntl=exp=1357759277~acl=%2fz%2f003%2fmp4%2fb%2f2011-03-22_bellemaman_0001_*~data=hdntl~hmac=a266d79333a59f617e20d0c3b47e3c3dd9d1e6b545d6649158167d8c55dc327f</pv-2.0>
    10.   <bootstrapInfo profile="named" id="bootstrap_0">AAAAi2Fic3QAAAAAAAAAAQAAAAPoAAAAAAAFI9MAAAAAAAAAAAAAAAAAAQAAABlhc3J0AAAAAAAAAAABAAAAAQAAADgBAAAARmFmcnQAAAAAAAAD6AAAAAADAAAAAQAAAAAAAAAAAAAXcAAAADgAAAAAAAUJEAAAGsMAAAAAAAAAAAAAAAAAAAAAAA==</bootstrapInfo>
    11.   <bootstrapInfo profile="named" id="bootstrap_1">AAAAi2Fic3QAAAAAAAAAAQAAAAPoAAAAAAAFI9MAAAAAAAAAAAAAAAAAAQAAABlhc3J0AAAAAAAAAAABAAAAAQAAADgBAAAARmFmcnQAAAAAAAAD6AAAAAADAAAAAQAAAAAAAAAAAAAXcAAAADgAAAAAAAUJEAAAGsMAAAAAAAAAAAAAAAAAAAAAAA==</bootstrapInfo>
    12.   <bootstrapInfo profile="named" id="bootstrap_2">AAAAi2Fic3QAAAAAAAAAAQAAAAPoAAAAAAAFI9MAAAAAAAAAAAAAAAAAAQAAABlhc3J0AAAAAAAAAAABAAAAAQAAADgBAAAARmFmcnQAAAAAAAAD6AAAAAADAAAAAQAAAAAAAAAAAAAXcAAAADgAAAAAAAUJEAAAGsMAAAAAAAAAAAAAAAAAAAAAAA==</bootstrapInfo>
    13.   <media bitrate="489" url="0_ee8b5f6c472833a3_" bootstrapInfoId="bootstrap_0">
    14.     <metadata>AgAKb25NZXRhRGF0YQgAAAAMAAhkdXJhdGlvbgBAdQ2dsi0OVgAFd2lkdGgAQIQAAAAAAAAABmhlaWdodABAdoAAAAAAAAANdmlkZW9kYXRhcmF0ZQBAeshKDvt0XgAJZnJhbWVyYXRlAEA99/9WWSEBAAx2aWRlb2NvZGVjaWQAQBwAAAAAAAAADWF1ZGlvZGF0YXJhdGUAQE7U1RbZSr0AD2F1ZGlvc2FtcGxlcmF0ZQBA5YiAAAAAAAAPYXVkaW9zYW1wbGVzaXplAEAwAAAAAAAAAAZzdGVyZW8BAQAMYXVkaW9jb2RlY2lkAEAkAAAAAAAAAAhmaWxlc2l6ZQBBc67/oAAAAAAACQ==</metadata>
    15.   </media>
    16.   <media bitrate="789" url="1_ee8b5f6c472833a3_" bootstrapInfoId="bootstrap_1">
    17.     <metadata>AgAKb25NZXRhRGF0YQgAAAAMAAhkdXJhdGlvbgBAdQ2dsi0OVgAFd2lkdGgAQIQAAAAAAAAABmhlaWdodABAdoAAAAAAAAANdmlkZW9kYXRhcmF0ZQBAhsODbVhb7AAJZnJhbWVyYXRlAEA99/9WWSEBAAx2aWRlb2NvZGVjaWQAQBwAAAAAAAAADWF1ZGlvZGF0YXJhdGUAQE7U1RbZSr0AD2F1ZGlvc2FtcGxlcmF0ZQBA5YiAAAAAAAAPYXVkaW9zYW1wbGVzaXplAEAwAAAAAAAAAAZzdGVyZW8BAQAMYXVkaW9jb2RlY2lkAEAkAAAAAAAAAAhmaWxlc2l6ZQBBf7omgAAAAAAACQ==</metadata>
    18.   </media>
    19.   <media bitrate="1253" url="2_ee8b5f6c472833a3_" bootstrapInfoId="bootstrap_2">
    20.     <metadata>AgAKb25NZXRhRGF0YQgAAAAMAAhkdXJhdGlvbgBAdQ2dsi0OVgAFd2lkdGgAQIqgAAAAAAAABmhlaWdodABAfgAAAAAAAAANdmlkZW9kYXRhcmF0ZQBAkaEmVlHuLgAJZnJhbWVyYXRlAEA99/9WWSEBAAx2aWRlb2NvZGVjaWQAQBwAAAAAAAAADWF1ZGlvZGF0YXJhdGUAQF9qGTh/Zy0AD2F1ZGlvc2FtcGxlcmF0ZQBA5YiAAAAAAAAPYXVkaW9zYW1wbGVzaXplAEAwAAAAAAAAAAZzdGVyZW8BAQAMYXVkaW9jb2RlY2lkAEAkAAAAAAAAAAhmaWxlc2l6ZQBBiS0zgAAAAAAACQ==</metadata>
    21.   </media>
    22. </manifest>
    and then
    Code (Text):
    1. Manifest Entries:
    2.  
    3. Bitrate URL
    4. 1253    2_ee8b5f6c472833a3_
    5. 789 1_ee8b5f6c472833a3_
    6. 489 0_ee8b5f6c472833a3_
    7.  
    8. Segment Entries:
    9.  
    10. Number  Fragments
    11. 1     56     
    12.  
    13. Fragment Entries:
    14.  
    15. Number  Timestamp     Duration      Discontinuity
    16. 1     0           6000                       
    17. 56    330000          6851                       
    18. 0     0           0           0        
    19.  
    20. Base Fragment Url:
    21. http://cp143903-f.akamaihd.net/z/003/mp4/b/2011-03-22_bellemaman_0001_,500,800,1200,.mp4.csmil/2_ee8b5f6c472833a3_
    22.  
    23. Downloading Fragments:
    24.  
    25. Adding fragment 1 to download queue
    26. Adding fragment 2 to download queue
    27. Adding fragment 3 to download queue
    28. Adding fragment 4 to download queue
    29. Adding fragment 5 to download queue
    30. Adding fragment 6 to download queue
    31. Adding fragment 7 to download queue
    32. Adding fragment 8 to download queue
    33. Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag2 successfully downloaded
    34. Adding fragment 9 to download queue
    35. Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag7 successfully downloaded
    36. Adding fragment 10 to download queue
    37. Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag8 successfully downloaded
    38. Adding fragment 11 to download queue
    39. Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag4 successfully downloaded
    40. Adding fragment 12 to download queue
    41. Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag1 successfully downloaded
    42. Writing fragment 1 to flv file
     
  10. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    Replace and try attached filter version. There is bug in filter in parsing manifest URL.
     

    Attached Files:

  11. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    Same. Buffering stuck at 0.0%. I stopped it after 10 seconds. Attached logs.
     
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!