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)

save8lot 02-13-2016 04:53 AM

Re: Adobe HDS Downloader


 
So I just downloaded and installed PHP for the first time (never used it before). Nobody told me where to save the Script so I just saved it in a subfolder of the PHP Folder, and changed to that directory within Command Prompt before running the script.

So for my First Time, I am trying to download a Video From this site (Video #76 from the drop down menu within the Media Player):
Code:

http://multfilmchik.ru/multserials/292-gufi-i-ego-komanda-goof-troop-2-sezon.html
Using the HDS Link Detector I get the following Command to run:
Code:

php AdobeHDS.php --manifest "http://multfilmchik.ru/video/673fa91a96c64740/R3BEaHFTUUwvME5qMFRkRWJHdUdtNzhKalpRSmlrQU45eHNBUFJlK1lmdHhhbHJ1bzZxdzNCKzFPMlB0SmZJRFVyNGpGKzhPY1hkWmp4NGVINE1wUHJ1S2l3WXFCQ0ZWTlhtU1Nha2liZHEzOE9sODlDNDV6Q0NacE9CNnhuTm9ld3llZ3BKUExaYWQrUEIyakt0OWhiM3VPbjM0bjYxdGJRVWhhNHpqR2tNSUFTQS90ZDZiVENwbGd3UHJRdzFsZDRhMGJEd3oveHc5NWhyTm1yaEg1Zz09/1/manifest.f4m" --delete
However when I run this I Get the Following:
Code:

C:\PHP\AdobeHDS>php AdobeHDS.php --manifest "http://multfilmchik.ru/video/673fa9
1a96c64740/R3BEaHFTUUwvME5qMFRkRWJHdUdtNzhKalpRSmlrQU45eHNBUFJlK1lmdHhhbHJ1bzZxd
zNCKzFPMlB0SmZJRFVyNGpGKzhPY1hkWmp4NGVINE1wUHJ1S2l3WXFCQ0ZWTlhtU1Nha2liZHEzOE9sO
DlDNDV6Q0NacE9CNnhuTm9ld3llZ3BKUExaYWQrUEIyakt0OWhiM3VPbjM0bjYxdGJRVWhhNHpqR2tNS
UFTQS90ZDZiVENwbGd3UHJRdzFsZDRhMGJEd3oveHc5NWhyTm1yaEg1Zz09/1/manifest.f4m" --de
lete

                            KSV Adobe HDS Downloader

Processing manifest info....

Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and end
ing tag mismatch: meta line 6 and head in C:\PHP\AdobeHDS\AdobeHDS.php on line 5
82

Warning: simplexml_load_string():    </head> in C:\PHP\AdobeHDS\AdobeHDS.php on
line 582

Warning: simplexml_load_string():          ^ in C:\PHP\AdobeHDS\AdobeHDS.php on
 line 582

Warning: simplexml_load_string(): Entity: line 168: parser error : Opening and e
nding tag mismatch: head line 3 and html in C:\PHP\AdobeHDS\AdobeHDS.php on line
 582

Warning: simplexml_load_string(): </html> in C:\PHP\AdobeHDS\AdobeHDS.php on lin
e 582

Warning: simplexml_load_string():        ^ in C:\PHP\AdobeHDS\AdobeHDS.php on li
ne 582

Warning: simplexml_load_string(): Entity: line 168: parser error : Premature end
 of data in tag html line 2 in C:\PHP\AdobeHDS\AdobeHDS.php on line 582

Warning: simplexml_load_string(): </html> in C:\PHP\AdobeHDS\AdobeHDS.php on lin
e 582

Warning: simplexml_load_string():        ^ in C:\PHP\AdobeHDS\AdobeHDS.php on li
ne 582
Failed to load xml

C:\PHP\AdobeHDS>


So What exactly am I doing Wrong?

sysanin 02-13-2016 02:41 PM

Re: Adobe HDS Downloader


 
Quote:

So What exactly am I doing Wrong?
Try so (see this GIF)



Code:

http://default.edge05.moonwalk.cc/sec/1455425248/38343434c6c7d410a339cc1f9e82762f80de5cd3660a0bc2/ivs/7d/60/5be2465c1ac6.mp4/hls/tracks-1,4/index.m3u8

KSV 02-15-2016 09:11 AM

Re: Adobe HDS Downloader


 
@save8lot

Add following switch to command line detected by "HDS Link detector" plugin and it will work.

Code:

-referrer "http://multfilmchik.ru/player/web/uppod/player.swf"
Code:

                            KSV Adobe HDS Downloader

Processing manifest info....
Quality Selection:
 Available: 940 480 286
 Selected : 940
Fragments Total: 254, First: 1, Start: 1, Parallel: 8
Downloading 11/254 fragments


save8lot 02-17-2016 06:10 AM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by sysanin (Post 82612)
Try so (see this GIF)



Code:

http://default.edge05.moonwalk.cc/sec/1455425248/38343434c6c7d410a339cc1f9e82762f80de5cd3660a0bc2/ivs/7d/60/5be2465c1ac6.mp4/hls/tracks-1,4/index.m3u8

That is a nice trick and a Different way to do it. Thanks for sharing that. :)


Quote:

Originally Posted by KSV (Post 82622)
@save8lot

Add following switch to command line detected by "HDS Link detector" plugin and it will work.

Code:

-referrer "http://multfilmchik.ru/player/web/uppod/player.swf"
Code:

                            KSV Adobe HDS Downloader

Processing manifest info....
Quality Selection:
 Available: 940 480 286
 Selected : 940
Fragments Total: 254, First: 1, Start: 1, Parallel: 8
Downloading 11/254 fragments


Perfect, that is what I was looking for. I tried it and it worked perfectly. Thank You. However since that specific referral link is only associated with this particular website, how can I determine the correct referral link for other sites? Would I simply search the "Web Console" in Firefox for any link that includes "player.swf" at the end? Or is there more to it than that?

MaxBlum 02-23-2016 05:27 PM

Re: Adobe HDS Downloader


 
Need some help, I'm new to AdobeHDS php. I have done everything Installing PHP for dummies (Windows only) has told me to do, yet I still cant get it to work. Heres the link Im trying to get to work.

Code:

php AdobeHDS.php --manifest "http://fxxhds-vh.akamaihd.net/z/FX_Networks_-_FXX/755/695/Man_Seeking_206_HD_Clean_AUTH_movie_14550224677,67_4,68_6,70_9,72_14,73_19,75_26,28000.mp4.csmil/manifest.f4m?hdnea=st=1456273392~exp=1456273722~acl=/z/FX_Networks_-_FXX/755/695/Man_Seeking_206_HD_Clean_AUTH_movie_14550224677*~id=771b2759-1ba1-4ab3-849b-f1b81b02afcf~hmac=2669cfdb5e2c8520f23c9942fbdae54e6916510a73d7f135bd8200c621dc99e7&hdcore=3.5.0" --delete --auth "hdntl=exp=1456359823~acl=%2fz%2fFX_Networks_-_FXX%2f755%2f695%2fMan_Seeking_206_HD_Clean_AUTH_movie_14550224677*~data=hdntl~hmac=5816e961bdd0bdad2a2149e95a4f874bfe18a9b2fb9dc802cd21ad30440183c6&als=0,3,NaN,1,0,NaN,0,0,0,41,f,0,1301.85,f,s,OKNKPJTNVXQG,3.5.0,41&hdcore=3.5.0" --useragent "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0"
and this what I receive



Any help would be appreciated. Thanks.

slim10 02-23-2016 05:55 PM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by MaxBlum (Post 82794)
Need some help, I'm new to AdobeHDS php. I have done everything Installing PHP for dummies (Windows only) has told me to do, yet I still cant get it to work. Heres the link Im trying to get to work.

Code:

php AdobeHDS.php --manifest "http://fxxhds-vh.akamaihd.net/z/FX_Networks_-_FXX/755/695/Man_Seeking_206_HD_Clean_AUTH_movie_14550224677,67_4,68_6,70_9,72_14,73_19,75_26,28000.mp4.csmil/manifest.f4m?hdnea=st=1456273392~exp=1456273722~acl=/z/FX_Networks_-_FXX/755/695/Man_Seeking_206_HD_Clean_AUTH_movie_14550224677*~id=771b2759-1ba1-4ab3-849b-f1b81b02afcf~hmac=2669cfdb5e2c8520f23c9942fbdae54e6916510a73d7f135bd8200c621dc99e7&hdcore=3.5.0" --delete --auth "hdntl=exp=1456359823~acl=%2fz%2fFX_Networks_-_FXX%2f755%2f695%2fMan_Seeking_206_HD_Clean_AUTH_movie_14550224677*~data=hdntl~hmac=5816e961bdd0bdad2a2149e95a4f874bfe18a9b2fb9dc802cd21ad30440183c6&als=0,3,NaN,1,0,NaN,0,0,0,41,f,0,1301.85,f,s,OKNKPJTNVXQG,3.5.0,41&hdcore=3.5.0" --useragent "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0"
and this what I receive



Any help would be appreciated. Thanks.


PHP can't find the AdobeHDS.php file. You need to either include the whole path to AdobeHDS.php in your command line, or AdobeHDS.php needs to be in your current working folder.

MaxBlum 02-23-2016 07:34 PM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by slim10 (Post 82795)
PHP can't find the AdobeHDS.php file. You need to either include the whole path to AdobeHDS.php in your command line, or AdobeHDS.php needs to be in your current working folder.

I think I have it in the same folder


slim10 02-23-2016 07:53 PM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by MaxBlum (Post 82797)
I think I have it in the same folder



That appears to be your "c:\PHP" folder. You were in "c:\Users\Lee" when you tried to run the command.

MaxBlum 02-23-2016 08:13 PM

Re: Adobe HDS Downloader


 
Quote:

Originally Posted by slim10 (Post 82798)
That appears to be your "c:\PHP" folder. You were in "c:\Users\Lee" when you tried to run the command.

Thank you. That was it.

kandaraj789 02-24-2016 12:00 PM

Re: Adobe HDS Downloader


 
Hi, First things first, Thank you K-S-V and others for this great script. It works like a charm. I have been thinking about this script a lot, recently.

I was wondering if i could download the fragments with IDM because where i live, speed had been given the adjective "very slow". Also, IDM supports resuming capabilities too. I have observed that if you have the session key, you can join these fragments offline too. So, i was thinking if there is a way to "generate" session key.

Also, Being logical about the way this script works(I am a Computer Science Student), I think that if any website is given some video(in mp4) and they are asked to upload it and stream it using Adobe HDS then they would first split that video into parts of x seconds duration and maybe encrypt those files after that. But, the question is, if the files are encrypted, then there must be a key and it must be unique and global(never changing, if it changes it could only mean that the server is splitting the mp4 video and encrypting it every time a user live streams the video, which i think is not possible because of too many visitors at one time and the time taken to split and encrypt each file is certainly enough if the files are big). So, in short if the key is global, how to access it and use it to calculate session key so as to be able to process fragments offline.


In short, i want to process fragments offline because i want to download them using IDM which has resume capability and IDM also offers the highest download speed. Can anyone help me out please?


All times are GMT -6. The time now is 08:59 AM.