Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Adobe HDS Downloader

(http://stream-recorder.com/forum/showthread.php?t=14823)

KSV 12-26-2012 11:22 PM

Adobe HDS Downloader


 
i am starting this new thread to continue previously deleted thread. you can ask AdobeHDS script related questions here instead of PM'ing me.

Code:

https://github.com/K-S-V/Scripts
Read wiki before asking any question.
Code:

https://github.com/K-S-V/Scripts/wiki
HDS Link Detector add-on for Firefox:


i have also written a pretty basic Firefox add-on to auto-detect HDS link and generate proper command line which you can simply paste in command prompt. whenever a link is detected it shows a notification which remains visible for few seconds. clicking on this notification will copy the generated command to clipboard. i have tested it with pluzz.fr, fora.tv, nrk.no and few other sites and it seems to work pretty well. though i have no intention to work on it any further it still serves as a good cross-platform helper tool to easily grab HDS videos. feedback welcome.

Code:

https://addons.mozilla.org/firefox/addon/hds-link-detector/
After installation it will show up in add-on bar (Ctrl + /). clicking the icon will enable or disable the link detection.

Changelog:
Quote:

  • 0.7.1
    1. added the option to customize generated command line
    2. make the add-on available in private mode
  • 0.7.0
    Minor fixes for compatibility with Firefox 40
  • 0.6
    Repackaged for compatibility with Firefox 22
  • 0.5
    fixed a regression in previous commit
  • 0.4
    validate manifest content
  • 0.3
    improved regex for better link detection
  • 0.2
    improved detection of set level manifest
  • 0.1
    initial public release


Stream Ripper 12-27-2012 11:04 PM

Re: Adobe HDS Downloader


 
Post stickied - thank you KSV

svnpenn 12-27-2012 11:14 PM

Re: Adobe HDS Downloader


 
@ Stream Ripper, do you care to explain why this very important thread is being repeatedly deleted? This is absolutely unacceptable, and even worse with no backups.

KSV 12-28-2012 09:48 AM

Re: Adobe HDS Downloader


 
first post has been updated.

karlo2105 12-28-2012 10:02 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by svnpenn (Post 57970)
@ Stream Ripper, do you care to explain why this very important thread is being repeatedly deleted? This is absolutely unacceptable, and even worse with no backups.

Something tells me it can't be a coincidence as this happened for a third time.

@KSV
I sent you PM about AdobeHDS delay bug, I hope you will be able to fix it. ;)

xandebarata 12-30-2012 06:28 PM

Re: Adobe HDS Downloader


 
KSV,

Is there a way to work around the auth that keeps constantly changing?

Im trying to download and after the package number 8 it seems that the access autentication change.

mucea 01-02-2013 01:14 AM

Re: Adobe HDS Downloader


 
@KSV
Great script. It works on pretty much any f4m out there, including the ones needing proxy. Under proxy, the stream has some lagging or buffering, which is expected, but overall it works. One of the most useful pieces of software in the field.


Stream Ripper 01-03-2013 10:36 PM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by svnpenn (Post 57970)
@ Stream Ripper, do you care to explain why this very important thread is being repeatedly deleted? This is absolutely unacceptable, and even worse with no backups.

Unfortunately, the thread was deleted with about 200 spam posts that came in that 24 hour period. We're taking measures to assure that doesn't happen again.

chanc 01-05-2013 08:01 AM

Re: Adobe HDS Downloader


 
when I tried to apply it to palemoon, it says not compatible with palemoon 15.3.2

davevad 01-12-2013 11:30 AM

Re: Adobe HDS Downloader


 
Hi All,

I have installed PHP and the Firefox extension. I get the link in my clipboard and run it from the command line, but all that happens is a lot of text flashes by and nothing downloads. I never see the "Adobe HDS" title or anything remotely resembling what I have seen in screenshots here.

Even just tried running "AdobeHDS.php --update" and it does not seem to do anything. So I tried adding "--debug 2 > debug.txt", the resulting debug.txt file is actually an html copy of the GitHub Scripts / AdobeHDS.php listing?


I am running PHP 5.4 on Win8. Any idea what I might be doing wrong?

Thanks,
Dave

gastone 01-12-2013 04:21 PM

Re: Adobe HDS Downloader


 
You use a copy of the webpage as AdobeHDS.php. You should look for the zip-link at https://github.com/K-S-V/Scripts.

dublin 01-14-2013 05:55 AM

Re: Adobe HDS Downloader


 
This is really nice piece of code. Thanks!
Any change you could add --header option so i could use "X-Forwarded-For" request header.

KSV 01-14-2013 07:25 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by karlo2105 (Post 57978)
I sent you PM about AdobeHDS delay bug, I hope you will be able to fix it. ;)

unfortunately that particular stream server doesn't updates it's bootstrap info in timely manner so stream is few seconds behind than actual live stream.

Quote:

Originally Posted by xandebarata (Post 58027)
KSV,

Is there a way to work around the auth that keeps constantly changing?

Im trying to download and after the package number 8 it seems that the access autentication change.

provide actual link to the stream with more details.

Quote:

Originally Posted by chanc (Post 58186)
when I tried to apply it to palemoon, it says not compatible with palemoon 15.3.2

i have only tested it with Firefox 17 and above.

Quote:

Originally Posted by dublin (Post 58491)
This is really nice piece of code. Thanks!
Any change you could add --header option so i could use "X-Forwarded-For" request header.

may be in some future update. for the time being you can just modify the script yourself.

Code:

      function headers()
        {
          $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8';
          $headers[] = 'Connection: Keep-Alive';
          $headers[] = 'X-Forwarded-For: 1.2.3.4';
          return $headers;
        }


dublin 01-14-2013 07:58 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by KSV (Post 58492)
may be in some future update. for the time being you can just modify the script yourself.

Code:

      function headers()
        {
          $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8';
          $headers[] = 'Connection: Keep-Alive';
          $headers[] = 'X-Forwarded-For: 1.2.3.4';
          return $headers;
        }


Thanks! Now i can watch BBC streams without proxy or using privoxy to send x-forwarded-for header.

apeofgod 01-16-2013 01:31 PM

Re: Adobe HDS Downloader


 
Code:

php AdobeHDS.php --manifest "http://cdnvh20.cers.com.br/z/1686_120312_OAB_1_FASE_X_EXAME_D_AMBIENTAL_AULA_01_Pt_III_OK.mp4/manifest.f4m?hdnea=st=1358367519~exp=1358367659~acl=/*~id=aumd9k8ne4qo16g0qumh1deh76~hmac=96175f9b01449c9520d4c2fb5c021f6da1270b621f44ecbae07a75d9fd662eb5&hdcore=2.11.3&g=KHAPICXOXLKI" --delete --auth "pvtoken=exp%3D9999999999%7Eacl%3D%252f%252a%7Edata%3DZXhwPTEzNTg0NTM5MjJ+YWNsPSUyZip+ZGF0YT1wdmMsc35obWFjPWZmOGZhZmY2MDIwNzhiMjVkY2VmNmFjYmM0YjA5NzgwN2I1M2ZkMWEyM2QzZmEyNjE4NGIzYzExYzYyMWVkYjA%3D%21s89x42iJxsXVhAOpg7fnHAzKts3OjahmXO+ITcZGShk%3D%7Ehmac%3D8C0DD78CE40ABFC6371C96C11991BEB7551F3A15EE99912415EE6A68359A21DB&hdntl=exp=1358453922~acl=%2f*~data=hdntl~hmac=51f2a8933d6aeca90f6e36a5b6cd965c4dc39b2d013e17cf94441f860216c7cd&als=0,0.1,0,0,0,NaN,0,0,0,29,f,0,1774.56,f,s,KHAPICXOXLKI,2.11.3,29&hdcore=2.11.3" --useragent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0"
Tried to download from www.cers.com.br and HDS Downloader give me an error:

Unknow packet type 11 encontered! Encriypted fragments can't be recovered.

Someone could help?

karlo2105 01-16-2013 03:48 PM

Re: Adobe HDS Downloader


 
You can't get as it's encrypted with DRM.

chanc 01-19-2013 08:28 AM

Re: Adobe HDS Downloader


 
How could you make it , watch bbc without using a proxy, while still not in GB?
Can you share your way with me ?

dublin 01-24-2013 02:50 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by chanc (Post 58671)
How could you make it , watch bbc without using a proxy, while still not in GB?
Can you share your way with me ?

1. Open AdobeHDS.php with any text editor.
2. Add following line:
Code:

$headers[] = 'X-Forwarded-For: 1.2.3.4';
3. Replace 1.2.3.4 with any UK ip address.
4. Save. That's it.

Locabv 01-26-2013 10:40 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by karlo2105 (Post 58553)
You can't get as it's encrypted with DRM.

How to download files encrypted with DRM?

chanc 01-27-2013 04:04 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by dublin (Post 58903)
1. Open AdobeHDS.php with any text editor.
2. Add following line:
Code:

$headers[] = 'X-Forwarded-For: 1.2.3.4';
3. Replace 1.2.3.4 with any UK ip address.
4. Save. That's it.

I need more help with the steps following those four mentioned above.

My operate system is winxp.

so ,what need I do next , after putting the code in to Adobehds.php ?

dublin 01-27-2013 06:06 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by chanc (Post 59108)
I need more help with the steps following those four mentioned above.

My operate system is winxp.

so ,what need I do next , after putting the code in to Adobehds.php ?

wiki should answer any questions you have.
https://github.com/K-S-V/Scripts/wiki

chanc 01-28-2013 12:56 AM

Re: Adobe HDS Downloader


 
I am able to download videos by using adobehds .php, but I have no clue to watch bbc with it.
The wiki tells how to get videos and even says how to play the video with a certain player. But how can I use it to watch iplayer from BBC on the iplayer site ?
I have no clue.
Please help me .
I need a step-by-step guide.

dublin 01-28-2013 06:05 AM

Re: Adobe HDS Downloader


 
Quote:

But how can I use it to watch iplayer from BBC on the iplayer site ?
I'm not quite sure i understand you correctly...You want to watch stream with iplayer/in iplayer site? This script won't help you with that. The whole point of this script is download and/or watch bbc streams with external player (e.g. VLC player). If you want to watch stream on the BBC site, just use UK proxy or VPN.

Here's example how to watch BBC One with VLC:
http://pastebin.com/H5YhRHhn

coolboy 01-28-2013 11:52 AM

Re: Adobe HDS Downloader


 
Hi!

I've read the wiki but I'm still stucked.

I have installed php, gone to cmd and wrote php-v. Then I used the plugin on firefox and pasted it.

There were many code letters passing at an enourmous speed and it end with some ajax error. I've pasted a screenshot.

Below is the code the addin gave me:

php AdobeHDS.php --manifest "http://absassets.ign.com/z/assets.ign.com/videos/zencoder/,640/ae0054e5051caaf4bd2a170343d8f9cb-500000,640/ae0054e5051caaf4bd2a170343d8f9cb-1000000,960/ae0054e5051caaf4bd2a170343d8f9cb-2500000,1280/ae0054e5051caaf4bd2a170343d8f9cb-3000000,-1358513998-w.mp4.csmil/manifest.f4m?hdcore&b=800-" --delete


and attached the screenshot. Anyone can help me?



Thanks for your time and attention
Yours faithfully
coolboy

KSV 01-28-2013 12:50 PM

Re: Adobe HDS Downloader


 
@coolboy

you have downloaded the html page showing the script instead of script itself. click the raw button before saving script or just download the zip file.

coolboy 01-28-2013 03:42 PM

Re: Adobe HDS Downloader


 
1 Attachment(s)
Quote:

Originally Posted by KSV (Post 59178)
@coolboy

you have downloaded the html page showing the script instead of script itself. click the raw button before saving script or just download the zip file.

Thanks for the help.

Now it says the curl extension is not installed!

I've attached the php.ini file.


Thanks

KSV 01-29-2013 01:51 AM

Re: Adobe HDS Downloader


 
@coolboy

Have you even followed the wiki section named installing php for dummies?

coolboy 01-29-2013 02:28 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by KSV (Post 59198)
@coolboy

Have you even followed the wiki section named installing php for dummies?

Thank you KVS. It was just following the tutorial (I thought it was correctly installed) - like I'm a newbie but I thought not "that newbie" :)

The link for the download of php was broken, so I've used the http://fossies.org/windows/www/php-5...2-VC9-x86.zip/ instead.

Thank you very much - it's a super fast app :)



Best regards
coolboy

chanc 01-29-2013 07:26 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by dublin (Post 59164)
Here's example how to watch BBC One with VLC:
http://pastebin.com/H5YhRHhn

By studying the example given, I got it. Thank you very much.

But how can I get the url ended with .f4m ?
When I go to bbc iplayer, and press the play button, the web console of firefox finds no link like that.

dublin 01-29-2013 09:56 AM

Re: Adobe HDS Downloader


 
Quote:

But how can I get the url ended with .f4m ?
When I go to bbc iplayer, and press the play button, the web console of firefox finds no link like that.
Use 'URL snooper' to obtain f4m manifest files. Also, if you are outside UK you'll need UK proxy.

chanc 01-29-2013 05:52 PM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by dublin (Post 59226)
Use 'URL snooper' to obtain f4m manifest files. Also, if you are outside UK you'll need UK proxy.

Thanks a million for your generous help.

I went to
http://www.bbc.co.uk/iplayer/episode...Lands_of_Gold/

And I got two links concerning media
http://www.bbc.co.uk/mediaselector/4...tream/p00pvbh0
http://www.bbc.co.uk/mediaselector/4...tream/b01qbylx

Opened it up, I got something like :


Code:

<mediaSelection><!--This code and data form part of the BBC iPlayer content protection system. Tampering with, removal of, misuse of, or unauthorised use of this code or data constitutes circumvention of the BBC's content protection measures and may result in legal action. BBC (C) 2012.--><media bitrate="276" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="176" kind="video" media_file_size="101112702" service="iplayer_streaming_n95_wifi" type="video/mp4" width="320"><connection href="http://3gp-acl.bbc.co.uk/sdpgen/3gpclip/iPlayer/prod_3gp_mpeg4_med/wifi_Lost_Kingdoms_of_South_America_Episode_3_b01qbylx_1359407568.mp4" identifier="sdpgen/3gpclip/iPlayer/prod_3gp_mpeg4_med/wifi_Lost_Kingdoms_of_South_America_Episode_3_b01qbylx_1359407568.mp4" kind="sis" priority="5" protocol="http" server="http://3gp-acl.bbc.co.uk" supplier="sis"/></media><media bitrate="480" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="360" kind="video" media_file_size="198046527" service="iplayer_streaming_h264_flv_lo" type="video/mp4" width="640"><connection application="ondemand" authExpires="2013-01-30T02:05:04+00:00" authString="auth=daEaFbqcZbBaFb3a9dhbvahafc8d.bmaFaC-brcgPX-bWG-CorFBoDnGCsEozJ&aifp=v001&slist=secure/480kbps/MP/b01qbylx_1359407568.mp4;secure/1500kbps/MP/b01qbylx_1359407261.mp4;secure/800kbps/MP/b01qbylx_1359407568.mp4;secure/400kbps/b01qbylx_1359407568.mp4" identifier="mp4:secure/480kbps/MP/b01qbylx_1359407568.mp4" kind="akamai" priority="5" protocol="rtmp" server="cp41752.edgefcs.net" supplier="akamai"/><connection application="a1414/e3" authExpires="2013-01-30T02:19:50+00:00" authString="as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4,iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4&et=1359513233&fmta-token=1321971c183e025ab502ee11c22c97e4ce067b49839b78a5af5f7c8dc914e434" dpw="60" identifier="mp4:iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4" kind="limelight" priority="10" protocol="rtmp" server="bbcmedia.fcod.llnwd.net" supplier="limelight"/></media><media expires="2013-02-11T21:59:00+00:00" kind="captions" media_file_size="106499" service="captions" type="application/ttaf+xml"><connection href="http://www.bbc.co.uk/iplayer/subtitles/ng/l/x/b01qbylx_1359394114.xml" identifier="ng/l/x/b01qbylx_1359394114.xml" kind="http" priority="10" protocol="http" server="http://www.bbc.co.uk/iplayer/subtitles/" supplier="sis"/></media><media bitrate="1500" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="468" kind="video" media_file_size="664536158" service="iplayer_streaming_h264_flv_high" type="video/mp4" width="832"><connection authExpires="2013-01-30T02:05:04+00:00" authString="auth=daEaFbqcZbBaFb3a9dhbvahafc8d.bmaFaC-brcgPX-bWG-CorFBoDnGCsEozJ&aifp=v001&slist=secure/480kbps/MP/b01qbylx_1359407568.mp4;secure/1500kbps/MP/b01qbylx_1359407261.mp4;secure/800kbps/MP/b01qbylx_1359407568.mp4;secure/400kbps/b01qbylx_1359407568.mp4" identifier="mp4:secure/1500kbps/MP/b01qbylx_1359407261.mp4" kind="akamai" priority="5" protocol="rtmp" server="cp41752.edgefcs.net" supplier="akamai"/><connection application="a1414/e3" authExpires="2013-01-30T02:19:50+00:00" authString="as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4,iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4&et=1359513233&fmta-token=1321971c183e025ab502ee11c22c97e4ce067b49839b78a5af5f7c8dc914e434" dpw="60" identifier="mp4:iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4" kind="limelight" priority="10" protocol="rtmp" server="bbcmedia.fcod.llnwd.net" supplier="limelight"/></media><media bitrate="796" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="360" kind="video" media_file_size="352773965" service="iplayer_streaming_h264_flv" type="video/mp4" width="640"><connection authExpires="2013-01-30T02:05:04+00:00" authString="auth=daEaFbqcZbBaFb3a9dhbvahafc8d.bmaFaC-brcgPX-bWG-CorFBoDnGCsEozJ&aifp=v001&slist=secure/480kbps/MP/b01qbylx_1359407568.mp4;secure/1500kbps/MP/b01qbylx_1359407261.mp4;secure/800kbps/MP/b01qbylx_1359407568.mp4;secure/400kbps/b01qbylx_1359407568.mp4" identifier="mp4:secure/800kbps/MP/b01qbylx_1359407568.mp4" kind="akamai" priority="5" protocol="rtmp" server="cp41752.edgefcs.net" supplier="akamai"/><connection application="a1414/e3" authExpires="2013-01-30T02:19:50+00:00" authString="as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4,iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4&et=1359513233&fmta-token=1321971c183e025ab502ee11c22c97e4ce067b49839b78a5af5f7c8dc914e434" dpw="60" identifier="mp4:iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4" kind="limelight" priority="10" protocol="rtmp" server="bbcmedia.fcod.llnwd.net" supplier="limelight"/></media><media bitrate="396" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="224" kind="video" media_file_size="160819264" service="iplayer_streaming_h264_flv_vlo" type="video/mp4" width="400"><connection application="ondemand" authExpires="2013-01-30T02:05:04+00:00" authString="auth=daEaFbqcZbBaFb3a9dhbvahafc8d.bmaFaC-brcgPX-bWG-CorFBoDnGCsEozJ&aifp=v001&slist=secure/480kbps/MP/b01qbylx_1359407568.mp4;secure/1500kbps/MP/b01qbylx_1359407261.mp4;secure/800kbps/MP/b01qbylx_1359407568.mp4;secure/400kbps/b01qbylx_1359407568.mp4" identifier="mp4:secure/400kbps/b01qbylx_1359407568.mp4" kind="akamai" priority="5" protocol="rtmp" server="cp41752.edgefcs.net" supplier="akamai"/><connection application="a1414/e3" authExpires="2013-01-30T02:19:50+00:00" authString="as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4,iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4&et=1359513233&fmta-token=1321971c183e025ab502ee11c22c97e4ce067b49839b78a5af5f7c8dc914e434" dpw="60" identifier="mp4:iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4" kind="limelight" priority="10" protocol="rtmp" server="bbcmedia.fcod.lln
All these links are of mp4, nothing indicates .f4m.
Where can I find the correct link ?

chanc 01-29-2013 07:40 PM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by KSV (Post 59178)
@coolboy

you have downloaded the html page showing the script instead of script itself. click the raw button before saving script or just download the zip file.

Do I have anything wrong with the installation ?

Code:

C:\Documents and Settings\Administrator>php -v
PHP 5.4.11 (cli) (built: Jan 16 2013 20:26:43)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Code:

C:\Documents and Settings\Administrator>php AdobeHDS.php --manifest "http://stre
am.fora.tv/h12084/2011-09-22_kirshembaum_FORAcast-4x3-384kbps-12084.f4m" --delet
e
Could not open input file: AdobeHDS.php


dublin 01-30-2013 04:56 AM

Re: Adobe HDS Downloader


 
Quote:

All these links are of mp4, nothing indicates .f4m.
Where can I find the correct link ?
Well it seems that iPlayer Ondemand videos are not using adaptive streaming. So you must use rtmpdump to donwload those files. :(
But no worries here's how-to example:
http://pastebin.com/8Tfpwgsx
If that seems too complicated use RTMPExploreX to download.
https://github.com/andr3jx/RTMPExploreX

Edit:
Quote:

Do I have anything wrong with the installation ?
Quote:

C:\Documents and Settings\Administrator>php AdobeHDS.php --manifest "http://stream.fora.tv/h12084/2011-09-22_kirshembaum_FORAcast-4x3-384kbps-12084.f4m" --delete

Could not open input file: AdobeHDS.php
I'm guessing AdobeHDS.php is not in C:\Documents and Settings\Administrator> folder....?

theDirtyDuB 02-03-2013 03:21 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by chanc (Post 59242)
Thanks a million for your generous help.

I went to
http://www.bbc.co.uk/iplayer/episode...Lands_of_Gold/

And I got two links concerning media
http://www.bbc.co.uk/mediaselector/4...tream/p00pvbh0
http://www.bbc.co.uk/mediaselector/4...tream/b01qbylx

Opened it up, I got something like :


Code:

<mediaSelection><!--This code and data form part of the BBC iPlayer content protection system. Tampering with, removal of, misuse of, or unauthorised use of this code or data constitutes circumvention of the BBC's content protection measures and may result in legal action. BBC (C) 2012.--><media bitrate="276" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="176" kind="video" media_file_size="101112702" service="iplayer_streaming_n95_wifi" type="video/mp4" width="320"><connection href="http://3gp-acl.bbc.co.uk/sdpgen/3gpclip/iPlayer/prod_3gp_mpeg4_med/wifi_Lost_Kingdoms_of_South_America_Episode_3_b01qbylx_1359407568.mp4" identifier="sdpgen/3gpclip/iPlayer/prod_3gp_mpeg4_med/wifi_Lost_Kingdoms_of_South_America_Episode_3_b01qbylx_1359407568.mp4" kind="sis" priority="5" protocol="http" server="http://3gp-acl.bbc.co.uk" supplier="sis"/></media><media bitrate="480" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="360" kind="video" media_file_size="198046527" service="iplayer_streaming_h264_flv_lo" type="video/mp4" width="640"><connection application="ondemand" authExpires="2013-01-30T02:05:04+00:00" authString="auth=daEaFbqcZbBaFb3a9dhbvahafc8d.bmaFaC-brcgPX-bWG-CorFBoDnGCsEozJ&aifp=v001&slist=secure/480kbps/MP/b01qbylx_1359407568.mp4;secure/1500kbps/MP/b01qbylx_1359407261.mp4;secure/800kbps/MP/b01qbylx_1359407568.mp4;secure/400kbps/b01qbylx_1359407568.mp4" identifier="mp4:secure/480kbps/MP/b01qbylx_1359407568.mp4" kind="akamai" priority="5" protocol="rtmp" server="cp41752.edgefcs.net" supplier="akamai"/><connection application="a1414/e3" authExpires="2013-01-30T02:19:50+00:00" authString="as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4,iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4&et=1359513233&fmta-token=1321971c183e025ab502ee11c22c97e4ce067b49839b78a5af5f7c8dc914e434" dpw="60" identifier="mp4:iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4" kind="limelight" priority="10" protocol="rtmp" server="bbcmedia.fcod.llnwd.net" supplier="limelight"/></media><media expires="2013-02-11T21:59:00+00:00" kind="captions" media_file_size="106499" service="captions" type="application/ttaf+xml"><connection href="http://www.bbc.co.uk/iplayer/subtitles/ng/l/x/b01qbylx_1359394114.xml" identifier="ng/l/x/b01qbylx_1359394114.xml" kind="http" priority="10" protocol="http" server="http://www.bbc.co.uk/iplayer/subtitles/" supplier="sis"/></media><media bitrate="1500" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="468" kind="video" media_file_size="664536158" service="iplayer_streaming_h264_flv_high" type="video/mp4" width="832"><connection authExpires="2013-01-30T02:05:04+00:00" authString="auth=daEaFbqcZbBaFb3a9dhbvahafc8d.bmaFaC-brcgPX-bWG-CorFBoDnGCsEozJ&aifp=v001&slist=secure/480kbps/MP/b01qbylx_1359407568.mp4;secure/1500kbps/MP/b01qbylx_1359407261.mp4;secure/800kbps/MP/b01qbylx_1359407568.mp4;secure/400kbps/b01qbylx_1359407568.mp4" identifier="mp4:secure/1500kbps/MP/b01qbylx_1359407261.mp4" kind="akamai" priority="5" protocol="rtmp" server="cp41752.edgefcs.net" supplier="akamai"/><connection application="a1414/e3" authExpires="2013-01-30T02:19:50+00:00" authString="as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4,iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4&et=1359513233&fmta-token=1321971c183e025ab502ee11c22c97e4ce067b49839b78a5af5f7c8dc914e434" dpw="60" identifier="mp4:iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4" kind="limelight" priority="10" protocol="rtmp" server="bbcmedia.fcod.llnwd.net" supplier="limelight"/></media><media bitrate="796" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="360" kind="video" media_file_size="352773965" service="iplayer_streaming_h264_flv" type="video/mp4" width="640"><connection authExpires="2013-01-30T02:05:04+00:00" authString="auth=daEaFbqcZbBaFb3a9dhbvahafc8d.bmaFaC-brcgPX-bWG-CorFBoDnGCsEozJ&aifp=v001&slist=secure/480kbps/MP/b01qbylx_1359407568.mp4;secure/1500kbps/MP/b01qbylx_1359407261.mp4;secure/800kbps/MP/b01qbylx_1359407568.mp4;secure/400kbps/b01qbylx_1359407568.mp4" identifier="mp4:secure/800kbps/MP/b01qbylx_1359407568.mp4" kind="akamai" priority="5" protocol="rtmp" server="cp41752.edgefcs.net" supplier="akamai"/><connection application="a1414/e3" authExpires="2013-01-30T02:19:50+00:00" authString="as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4,iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4&et=1359513233&fmta-token=1321971c183e025ab502ee11c22c97e4ce067b49839b78a5af5f7c8dc914e434" dpw="60" identifier="mp4:iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4" kind="limelight" priority="10" protocol="rtmp" server="bbcmedia.fcod.llnwd.net" supplier="limelight"/></media><media bitrate="396" encoding="h264" expires="2013-02-11T21:59:00+00:00" height="224" kind="video" media_file_size="160819264" service="iplayer_streaming_h264_flv_vlo" type="video/mp4" width="400"><connection application="ondemand" authExpires="2013-01-30T02:05:04+00:00" authString="auth=daEaFbqcZbBaFb3a9dhbvahafc8d.bmaFaC-brcgPX-bWG-CorFBoDnGCsEozJ&aifp=v001&slist=secure/480kbps/MP/b01qbylx_1359407568.mp4;secure/1500kbps/MP/b01qbylx_1359407261.mp4;secure/800kbps/MP/b01qbylx_1359407568.mp4;secure/400kbps/b01qbylx_1359407568.mp4" identifier="mp4:secure/400kbps/b01qbylx_1359407568.mp4" kind="akamai" priority="5" protocol="rtmp" server="cp41752.edgefcs.net" supplier="akamai"/><connection application="a1414/e3" authExpires="2013-01-30T02:19:50+00:00" authString="as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/1500kbps/MP/b01qbylx_1359407261.mp4,iplayerstream/secure_auth/800kbps/MP/b01qbylx_1359407568.mp4,iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4&et=1359513233&fmta-token=1321971c183e025ab502ee11c22c97e4ce067b49839b78a5af5f7c8dc914e434" dpw="60" identifier="mp4:iplayerstream/secure_auth/400kbps/b01qbylx_1359407568.mp4" kind="limelight" priority="10" protocol="rtmp" server="bbcmedia.fcod.lln
All these links are of mp4, nothing indicates .f4m.
Where can I find the correct link ?

I am also having similar issues. I do not quite understand how to create/access/obtain the manifest file. i would like to restream the link that is caputured with the HDS Detector. where do i find this? I have been able to dl the file to my HDD and would like to now know how streaming is possible. thank you.

I.V. 02-04-2013 01:55 AM

Re: Adobe HDS Downloader


 
Hi KSV,

what tools do you need to try to break the encryption of HDS? I may give it a try.
I feel that it is important to enable playback on platforms without flash (FreeBSD etc.)

ont 02-06-2013 08:13 AM

Re: Adobe HDS Downloader


 
What´s the problem? What is wrong?

Code:

C:\PHP>php AdobeHDS.php --manifest "http://cdnvh20.cers.com.br/z/1463_10041
_2012_PRIMEIROS_SOCORROS_AULA_01_Pt_III_OK.mp4/manifest.f4m?hdnea=st=136016
exp=1360163346~acl=/*~id=8cuotac0im3usjhf8v565a33j1~hmac=31adb9e4ea5636dfde
7a85720dde9b28476513ab92e69b6bdf31cfd58a0&hdcore=2.11.3&g=IQUNDDNNQMLY" --d
 --auth "pvtoken=exp%3D9999999999%7Eacl%3D%252f%252a%7Edata%3DZXhwPTEzNjAyN
h+YWNsPSUyZip+ZGF0YT1wdmMsc35obWFjPWYwY2IzOGU1NGY3YzE0YWFkZTkyOTAyNGIzZjBkM
EwNTE1OGRlNzI2ZTJkYzkyNzY3NDQ3MWQ0NWQ2NDI%3D%21s89x42iJxsXVhAOpg7fnHAzKts3O
O+ITcZGShk%3D%7Ehmac%3D3BD16436F381F123D9F441BB9871CAA9E187F6B60208C6C62733
E9BDD3A&hdntl=exp=1360249608~acl=%2f*~data=hdntl~hmac=729ce7e368f503c375ded
1c3dbede1c621d5fc9f53c9ee06b4c1c5c5166&als=0,0.1,0,0,0,NaN,0,0,0,28,f,0,217
f,s,IQUNDDNNQMLY,2.11.3,28&hdcore=2.11.3" --useragent "Mozilla/5.0 (Windows
.2; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0"

                            KSV Adobe HDS Downloader

Processing manifest info....
Quality Selection:
 Available: 308
 Selected : 308
Unknown packet type 11 encountered! Encrypted fragments can't be recovered.


karlo2105 02-06-2013 05:13 PM

Re: Adobe HDS Downloader


 
@ont
Video is encrypted with DRM, you can't decode it without specific key.

GtbpyQgB 02-06-2013 09:20 PM

Re: Adobe HDS Downloader


 
How do I download the following video:
Code:

Video Direct link:
http://www.nrk.no/embed/PS*93936

Video Embedded:
http://www.nrk.no/nyheter/verden/1.10889437

I have tested Adobe HDS Downloader but dont got any access to the file even I see the manifest(.f4m), the video extension and the "Seg" inside the links:

Code:

[05:16:44.309] GET http://nrkclip3c-f.akamaihd.net/z/wo/open/b3/b3b9ad4bee6d0fc801f5ad56687708f38833ae63/b3b9ad4bee6d0fc801f5ad56687708f38833ae63_,141,316,563,1266,2250,.mp4.csmil/manifest.f4m?hdcore=2.11.3&g=LWTEUZLARMDH [HTTP/1.0 200 OK 158ms]
------------------------------------------------------------------------
http://nrkclip3c-f.akamaihd.net/z/wo/open/b3/b3b9ad4bee6d0fc801f5ad56687708f38833ae63/b3b9ad4bee6d0fc801f5ad56687708f38833ae63_,141,316,563,1266,2250,.mp4.csmil/3_ff872347d3c4987d_Seg1-Frag1?als=0,0.1,0,3,0,NaN,0,0,0,29,f,0,31.81,f,s,LWTEUZLARMDH,2.11.3,29&hdcore=2.11.3

Would anyone test it for me to so I'am 100% sure it wont work ?

KSV 02-07-2013 12:23 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by GtbpyQgB (Post 59481)
Would anyone test it for me to so I'am 100% sure it wont work?

Have you even read the first post or wiki?

Code:

php AdobeHDS.php --manifest "http://nrkclip3c-f.akamaihd.net/z/wo/open/b3/b3b9ad4bee6d0fc801f5ad56687708f38833ae63/b3b9ad4bee6d0fc801f5ad56687708f38833ae63_,141,316,563,1266,2250,.mp4.csmil/manifest.f4m?hdcore=2.11.3&g=THURWHPRNYNI" --delete --auth "als=0,0.1,0,3,0,NaN,0,0,0,41,f,0,31.81,f,s,THURWHPRNYNI,2.11.3,41&hdcore=2.11.3" --useragent "Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0"
Code:

                            KSV Adobe HDS Downloader

Processing manifest info....
Quality Selection:
 Available: 2381 1406 711 387 213
 Selected : 2381
Downloading 5/5 fragments
Found 5 fragments
Finished


KSV 02-07-2013 01:00 AM

Re: Adobe HDS Downloader


 
@IV
following is the info i posted long ago in now deleted thread. This is only related to custom encryption used by Akamai CDN (Packet type 10 & 11) not FlashAccess DRM (Packet type 40 & 41).

==========
I am just posting it publicly. this info is based on actual reversing i tried few months ago. global key is different for each session. SessionID and KeyUrl are not of much relevance because they are only used to retrieve GlobalKey. mysterious salt block in each packet header can be broken into 4 different blocks. first was always 01 and third block was always all zeros.
Code:

SessionID: 010075cd3e8441c5f40f4427ae4f93e8b2b00a1b6740eda2fd0049958d1532318bd1423ec94a2c3f4074ede220dd615b9d588f6ad1ef
GlobalKey: acfab40e035ee120520fc77d1e532c20

FirstTag:
Header: 0c000000004fae27440000ffff IV: e7b25c7a1d67280a8681ba4314e1e66d KeyUrl: /z/0809/20090106_1_dvorak_slavonic-dance/h264_high_,0700,1100,1500,2000,2500,.mp4.csmil/key_AQB1zT6EQcX0D0Qnrk+T6LKwDRtnQO2i%2fQBJlY0VMjGL0UI+yUosP0B07eIg3WFbnViPatHv
Salt?:  01 b7199175c7c7dbea80f9eda39a5b6b0abf2b17dac035636c6667331243aefdec 0000000000000000000000000000000000000000 dc11391dd7c0211c95c3c1e597665f850f01d2c0

EncryptedBlock:      2df9494fdac3355db2cb942258641fe0 2709b1ec662e8897bf78ad0acf14184b e5c7e47f9e95d918bd6dad1560f2c6a2 31c1da18311e01000568e98d3525
DecryptedVideoFrame: 170000000001640028ffe10029676400 28ac2ca703c045fbc05a808080a00000 0300200000065c1400186a0000e4e17e 31c1da18311e01000568e98d3525

SecondTag:
Header: 0c000000004fae27440000fffb IV: e7b25c7a1d67280a8681ba4314e1e66d
Salt?:  01 25bfbacb92b3c6b837ca6a47ef20a8a77defbc631124bfa5b5e6b2cc0c58fe6d 0000000000000000000000000000000000000000 46d3344f230830a040d4fc6d3751f6ff83f8cbea

EncryptedBlock:      af0011900000
DecryptedAudioFrame: af0011900000

Encryption scheme used is AES-128-CBC. i couldn't figure out the KDF (key derivation function) used to derive individual packet decryption key from global key using the salt block as shown above. KDF function is executed inside Alchemy VM (a method used to execute c code from ActionScript VM) which makes it very hard to reverse engineer from disassembled code.
==========


All times are GMT -6. The time now is 04:19 PM.