TOU.TV doesn't works (4 Viewers)

georgius

Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    655
    Bratislava
    Home Country
    Slovakia Slovakia
    @georgius: Any comment about this bug report? I don't know much about HDS.
    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.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    655
    Bratislava
    Home Country
    Slovakia Slovakia
    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?
    Probably yes, but quality of these streams is possibly optimised for iOS devices (low resolution, low quality).
     

    corporate_gadfly

    Portal Pro
    May 17, 2011
    396
    136
    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:
      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).
     

    Attachments

    • toutv-2013-01-08.zip
      4.3 MB

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    655
    Bratislava
    Home Country
    Slovakia Slovakia
    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.
    I hope that your working in C#. In that case use HttpUrl class and set property UserAgent. E.g.:
    Code:
    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();
     

    corporate_gadfly

    Portal Pro
    May 17, 2011
    396
    136
    Home Country
    Canada Canada
    I hope that your working in C#. In that case use HttpUrl class and set property UserAgent. E.g.:
    Code:
    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();
    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.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    655
    Bratislava
    Home Country
    Slovakia Slovakia
    I hope that your working in C#. In that case use HttpUrl class and set property UserAgent. E.g.:
    Code:
    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();
    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.
    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.
     

    corporate_gadfly

    Portal Pro
    May 17, 2011
    396
    136
    Home Country
    Canada Canada
    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.
    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:
    <?xml version="1.0" encoding="UTF-8"?><manifest xmlns="http://ns.adobe.com/f4m/1.0" xmlns:akamai="uri:akamai.com/f4m/1.0">
      <akamai:version>2.0</akamai:version>
      <akamai:bw>5000</akamai:bw>
      <id>/003/mp4/b/2011-03-22_bellemaman_0001_,500,800,1200,.mp4.csmil_0</id>
      <streamType>recorded</streamType>
      <akamai:streamType>vod</akamai:streamType>
      <duration>336.851</duration>
      <streamBaseTime>0.000</streamBaseTime>
      <pv-2.0>;hdntl=exp=1357759277~acl=%2fz%2f003%2fmp4%2fb%2f2011-03-22_bellemaman_0001_*~data=hdntl~hmac=a266d79333a59f617e20d0c3b47e3c3dd9d1e6b545d6649158167d8c55dc327f</pv-2.0>
      <bootstrapInfo profile="named" id="bootstrap_0">AAAAi2Fic3QAAAAAAAAAAQAAAAPoAAAAAAAFI9MAAAAAAAAAAAAAAAAAAQAAABlhc3J0AAAAAAAAAAABAAAAAQAAADgBAAAARmFmcnQAAAAAAAAD6AAAAAADAAAAAQAAAAAAAAAAAAAXcAAAADgAAAAAAAUJEAAAGsMAAAAAAAAAAAAAAAAAAAAAAA==</bootstrapInfo>
      <bootstrapInfo profile="named" id="bootstrap_1">AAAAi2Fic3QAAAAAAAAAAQAAAAPoAAAAAAAFI9MAAAAAAAAAAAAAAAAAAQAAABlhc3J0AAAAAAAAAAABAAAAAQAAADgBAAAARmFmcnQAAAAAAAAD6AAAAAADAAAAAQAAAAAAAAAAAAAXcAAAADgAAAAAAAUJEAAAGsMAAAAAAAAAAAAAAAAAAAAAAA==</bootstrapInfo>
      <bootstrapInfo profile="named" id="bootstrap_2">AAAAi2Fic3QAAAAAAAAAAQAAAAPoAAAAAAAFI9MAAAAAAAAAAAAAAAAAAQAAABlhc3J0AAAAAAAAAAABAAAAAQAAADgBAAAARmFmcnQAAAAAAAAD6AAAAAADAAAAAQAAAAAAAAAAAAAXcAAAADgAAAAAAAUJEAAAGsMAAAAAAAAAAAAAAAAAAAAAAA==</bootstrapInfo>
      <media bitrate="489" url="0_ee8b5f6c472833a3_" bootstrapInfoId="bootstrap_0">
    	<metadata>AgAKb25NZXRhRGF0YQgAAAAMAAhkdXJhdGlvbgBAdQ2dsi0OVgAFd2lkdGgAQIQAAAAAAAAABmhlaWdodABAdoAAAAAAAAANdmlkZW9kYXRhcmF0ZQBAeshKDvt0XgAJZnJhbWVyYXRlAEA99/9WWSEBAAx2aWRlb2NvZGVjaWQAQBwAAAAAAAAADWF1ZGlvZGF0YXJhdGUAQE7U1RbZSr0AD2F1ZGlvc2FtcGxlcmF0ZQBA5YiAAAAAAAAPYXVkaW9zYW1wbGVzaXplAEAwAAAAAAAAAAZzdGVyZW8BAQAMYXVkaW9jb2RlY2lkAEAkAAAAAAAAAAhmaWxlc2l6ZQBBc67/oAAAAAAACQ==</metadata>
      </media>
      <media bitrate="789" url="1_ee8b5f6c472833a3_" bootstrapInfoId="bootstrap_1">
    	<metadata>AgAKb25NZXRhRGF0YQgAAAAMAAhkdXJhdGlvbgBAdQ2dsi0OVgAFd2lkdGgAQIQAAAAAAAAABmhlaWdodABAdoAAAAAAAAANdmlkZW9kYXRhcmF0ZQBAhsODbVhb7AAJZnJhbWVyYXRlAEA99/9WWSEBAAx2aWRlb2NvZGVjaWQAQBwAAAAAAAAADWF1ZGlvZGF0YXJhdGUAQE7U1RbZSr0AD2F1ZGlvc2FtcGxlcmF0ZQBA5YiAAAAAAAAPYXVkaW9zYW1wbGVzaXplAEAwAAAAAAAAAAZzdGVyZW8BAQAMYXVkaW9jb2RlY2lkAEAkAAAAAAAAAAhmaWxlc2l6ZQBBf7omgAAAAAAACQ==</metadata>
      </media>
      <media bitrate="1253" url="2_ee8b5f6c472833a3_" bootstrapInfoId="bootstrap_2">
    	<metadata>AgAKb25NZXRhRGF0YQgAAAAMAAhkdXJhdGlvbgBAdQ2dsi0OVgAFd2lkdGgAQIqgAAAAAAAABmhlaWdodABAfgAAAAAAAAANdmlkZW9kYXRhcmF0ZQBAkaEmVlHuLgAJZnJhbWVyYXRlAEA99/9WWSEBAAx2aWRlb2NvZGVjaWQAQBwAAAAAAAAADWF1ZGlvZGF0YXJhdGUAQF9qGTh/Zy0AD2F1ZGlvc2FtcGxlcmF0ZQBA5YiAAAAAAAAPYXVkaW9zYW1wbGVzaXplAEAwAAAAAAAAAAZzdGVyZW8BAQAMYXVkaW9jb2RlY2lkAEAkAAAAAAAAAAhmaWxlc2l6ZQBBiS0zgAAAAAAACQ==</metadata>
      </media>
    </manifest>
    and then
    Code:
    Manifest Entries:
     
    Bitrate URL
    1253	2_ee8b5f6c472833a3_
    789	1_ee8b5f6c472833a3_
    489	0_ee8b5f6c472833a3_
     
    Segment Entries:
     
    Number  Fragments
    1	  56	 
     
    Fragment Entries:
     
    Number  Timestamp	  Duration		Discontinuity
    1	  0			  6000						 
    56	  330000		  6851						 
    0	  0			  0			  0		   
     
    Base Fragment Url:
    http://cp143903-f.akamaihd.net/z/003/mp4/b/2011-03-22_bellemaman_0001_,500,800,1200,.mp4.csmil/2_ee8b5f6c472833a3_
     
    Downloading Fragments:
     
    Adding fragment 1 to download queue
    Adding fragment 2 to download queue
    Adding fragment 3 to download queue
    Adding fragment 4 to download queue
    Adding fragment 5 to download queue
    Adding fragment 6 to download queue
    Adding fragment 7 to download queue
    Adding fragment 8 to download queue
    Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag2 successfully downloaded
    Adding fragment 9 to download queue
    Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag7 successfully downloaded
    Adding fragment 10 to download queue
    Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag8 successfully downloaded
    Adding fragment 11 to download queue
    Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag4 successfully downloaded
    Adding fragment 12 to download queue
    Fragment 1e366bc0702a899b71d0795b6a20bc05_2_ee8b5f6c472833a3_Seg1-Frag1 successfully downloaded
    Writing fragment 1 to flv file
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    655
    Bratislava
    Home Country
    Slovakia Slovakia
    Replace and try attached filter version. There is bug in filter in parsing manifest URL.
     

    Attachments

    • MPUrlSourceSplitter.zip
      4.6 MB

    Users who are viewing this thread

    Similar threads

    Are the media/video folders on the Mint host?
    Are the media/video folders on the Mint host?
    I've used Mediaportal for years on a Windows Host with restricted online-access. Lately I reinstalled...
    Replies
    1
    Views
    1K
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    795
    Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194 connections between 10:54 and 11:05 triggering a denial of service attack ban. The logs show it was lifted on 5/25, but I still see the entry in iptables. I reset fail2ban and hopefully you're working again." Weird...
    Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194...
    I'm using MediaPortal 1.38.1 x64 and have an SD-DD lineup account. In the last week, I have not been able to update my EPG, and...
    Replies
    3
    Views
    420
    MP1 MP2 MP Shutting down DE
    I got a similar error yesterday just when a watched episode ended... Didn't copy the logs unfortunately but now i'm in a weird situation. Trakt website shows that episode as watched, but in onlinevideos (where i watched that episode) it still is not flagged as watched. The watched.json doesn't contain that episode but i think it...
    I got a similar error yesterday just when a watched episode ended... Didn't copy the logs unfortunately but now i'm in a weird...
    I have an issue that started in 1.37 and so I updated to 1.38 and updated all my installed plugins but the issue has continued. My...
    Replies
    6
    Views
    631
    I was just tinkering with a few settings in the MediaPortal configuration and am happy to have found the cause of the problem. Disabling the option "Single seat setup: force RTSP usage" under "TV/Radio", "Advanced Options" resolved the issue. After I disabled this option, I was able to delete the recordings the first time...
    I was just tinkering with a few settings in the MediaPortal configuration and am happy to have found the cause of the problem...
    Deleting recordings sometimes doesn't work. Neither the 0 button nor the Info/Delete button works. Nothing happens at all with...
    Replies
    6
    Views
    815
    Top Bottom