PDA

View Full Version : Adobe HDS offline fragments


lupin
05-19-2015, 08:13 AM
Hi, Ihave follow the instruction here
https://github.com/K-S-V/Scripts/wiki

php installation is ok, so from start-> cmd I have
PHP 5.6.3 (cli) (built: Nov 12 2014 17:18:08)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies

but when I make a .bat file and execute (the file is amked into directory with fragments) is showed all the source code of AdobeHDS.php file...the syntax into file bat file is

php AdobeHDS.php --fragments 0_xxxxxxxxxxf_Seg1-Frag

pause

obviously all the file starts into form 0_xxxxxxxxxxf_Seg1-Frag

where is the error?

slim10
05-21-2015, 11:56 PM
Hi, Ihave follow the instruction here
https://github.com/K-S-V/Scripts/wiki

php installation is ok, so from start-> cmd I have
PHP 5.6.3 (cli) (built: Nov 12 2014 17:18:08)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies

but when I make a .bat file and execute (the file is amked into directory with fragments) is showed all the source code of AdobeHDS.php file...the syntax into file bat file is

php AdobeHDS.php --fragments 0_xxxxxxxxxxf_Seg1-Frag

pause

obviously all the file starts into form 0_xxxxxxxxxxf_Seg1-Frag

where is the error?

I believe the problem is that you downloaded the HTML page for the AdobeHDS.php script. You need the raw script.

Master.zip contains all of K-S-V's PHP scripts: https://github.com/K-S-V/Scripts/archive/master.zip

Here is the raw AdobeHDS.php script by itself: https://github.com/K-S-V/Scripts/raw/master/AdobeHDS.php

lupin
05-22-2015, 01:41 AM
I believe the problem is that you downloaded the HTML page for the AdobeHDS.php script. You need the raw script.

Master.zip contains all of K-S-V's PHP scripts: https://github.com/K-S-V/Scripts/archive/master.zip

Here is the raw AdobeHDS.php script by itself: https://github.com/K-S-V/Scripts/raw/master/AdobeHDS.php

ok, you're right but I have another problem with AdobeHDS.php: when I download a manifest from the URL the lenght of video is the same of manifest but the fragments aren't all downloaded; for example, if the video on the streaming is lenght 1min 10 sec then when give the manifest URL at adobehds, the video is always of 1min 10 sec but at 00 min 56 sec the video go directly to the end....why this?