TOU.TV doesn't works (3 Viewers)

georgius

Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    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
    654
    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
    654
    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
    654
    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
    654
    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

    Hi, I'm wish to be able to watch the recorded TV (*.ts) files on my Sony Bravia Android TV but cannot. The default media player app does not support the file type. So I installed VLC. VLC does read the ts files but the TV's remote does not allow to control basic VLC functions like FF or FR or pause etc... Tried 1-2 other apps, even...
    Hi, I'm wish to be able to watch the recorded TV (*.ts) files on my Sony Bravia Android TV but cannot. The default media player...
    Hi, I'm wish to be able to watch the recorded TV (*.ts) files on my Sony Bravia Android TV but cannot. The default media player...
    Replies
    0
    Views
    497
    OK, I found a way to make it work. It seems like MP-TV-series Configuration (and Moving Pictures Configuration) starts as Administrator, and the Administrator do not have yet logged in on the UNC \\192.168.222.247\Public even if the normal user on the PC have done it. So to fix it on the Win 11 HTPC: Created a shortcut to...
    OK, I found a way to make it work. It seems like MP-TV-series Configuration (and Moving Pictures Configuration) starts as...
    Hi! I was running MP1.33 x64 and I was fine and happy since many years, then the hard drive on the HTPC died. But I was able to...
    Replies
    1
    Views
    237
    I don't organise my media in the way that you do, so I don't know whether MediaPortal provides the capability that you want. All that I can suggest is that you read this page in the MP Wiki and experiment to see if it will merge the separate folders to give you a unified view of the media. -- from CyberSimian in the UK
    I don't organise my media in the way that you do, so I don't know whether MediaPortal provides the capability that you want. All...
    Hi i have a collection of 9208(Still growing on a daily basis)) music videos(ripped in m2ts format from blu-rays) which are stored...
    Replies
    1
    Views
    738
    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem - unable to connect to any of the specified MySQL hosts. And Hostname is still in red. I don't understand - this is a dedicated TV computer. Unless an update did this I don't know why there's a problem in the...
    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem -...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    2
    Views
    455
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP and set logs and rebooted and ran TVServer. Didn't do anything in regard to S Loopback adapter. I've been using NextPvr since the problem became insurmountable. Only reason it's not a good long term...
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    24
    Views
    2K
    Top Bottom