PDA

View Full Version : AdobeHDS script helpers


svnpenn
05-30-2012, 12:17 PM
AdobeHDS.php
--manifest "http://vodcdn.mnet.com/z/mp4/vod8/843000/843449.mp4/manifest.f4m?hdnea=st=1338359426~exp=1338359606~ac l=/z/mp4/vod8/843000/843449.mp4/*~hmac=edae166b31447dc0f8e07413244d7b81975c4675c7d d8254d08aff73202944d8&hdcore=2.5.14"
--auth "hdntl=exp=1338445839~acl=%2fz%2fmp4%2fvod8%2f84300 0%2f843449.mp4%2f*~data=hdntl~hmac=d2994c8dedcfac4 4d9f122511a294c1d38ea88cefd4682d055e37ab78d94a8d6&als=6.16,30,0.27,0,500,173,28.2,1,0,49,f,3237.29,6 243.04,f,s,WYSHEEJFJJXA,2.5.14"

Using this script

http://github.com/svnpenn/etc/blob/master/AdobeHDS.sh

I was able to download without --auth

$ AdobeHDS.sh
Press enter after video starts
Printing results
ProcDump v4.0 - Writes process dump files
Copyright (C) 2009-2011 Mark Russinovich
Sysinternals - www.sysinternals.com

Writing dump file C:\home\Steven\Desktop\etc\plugin-container_120530_130315.dmp
...
Dump written.

php 'C:/home/GitHub/dotfiles/bin/AdobeHDS.php' --manifest 'http://vodcdn.mnet.co
m/z/mp4/vod8/843000/843448.mp4/manifest.f4m?hdnea=st=1338400992~exp=1338401172~a
cl=/z/mp4/vod8/843000/843448.mp4/*~hmac=a1026c616de486084c60e3cc4945d82425adbd43
eb58720710207102fc799c2a&hdcore=2.5.14'
KSV Adobe HDS Downloader

Downloading fragment 1040/1040
Found 1040 fragments
Joined 1040 fragments in 16.38 seconds
Finished

svnpenn
05-30-2012, 02:39 PM
$ sh AdobeHDS.sh
Press enter after video starts

Printing results
AdobeHDS.sh: línea 13: procdump: no se encontró la orden
php 'C:/PHP/AdobeHDS.php'cat: plugin-container*: No such file or directory

KSV Adobe HDS Downloader

Found 0 fragments

You need ProcDump

technet.microsoft.com/en-us/sysinternals/dd996900

Sekiho
05-30-2012, 03:09 PM
You need ProcDump

technet.microsoft.com/en-us/sysinternals/dd996900

umm... i also needed wget... xD

anyway i get this error now:

$ sh AdobeHDS.sh
Press enter after video starts

Printing results

ProcDump v4.0 - Writes process dump files
Copyright (C) 2009-2011 Mark Russinovich
Sysinternals - www.sysinternals.com

Writing dump file C:\CygWin\plugin-container_120530_170533.dmp ...
Dump written.

php 'C:/PHP/AdobeHDS.php'/dev/null: No such file or directory
/dev/null: No such file or directory
/dev/null: No such file or directory
.
.
.
/dev/null: No such file or directory

KSV Adobe HDS Downloader

Found 0 fragments

obviously i have AdobeHDS.php in that path too, maybe its beacuse im using the new script KSV made just now? (dont have the old now to test that) u.u


Edit: btw KSV i edited my previous post, now it says unable to download fragments intead of manifest, i edited and put the code and cookie in it

svnpenn
05-30-2012, 08:39 PM
For anyone interested, I modifed my script

wget is no longer required
procdump is no longer required

github.com/svnpenn/dotfiles/blob/master/bin/AdobeHDS.sh

Its still not working with pluzz.fr/jt-13h though.

Darby_Crash
06-02-2012, 08:48 AM
I've created a batch script for Adobe HDS Downloader, with a version of PHP 5.4 with all extension, portable, in a single file. KSV, you can use this for your script. This is a example video... http://www.youtube.com/watch?v=WfkWxsY6BGQ

No need change environment variable, you can move script where you want. Like proxy I use Vidalia (Tor), and for sniff urls, HTTPFox plugin for Firefox.

svnpenn
06-02-2012, 09:14 AM
I've created a batch script for Adobe HDS Downloader, with a version of PHP 5.4 with all extension, portable, in a single file. KSV, you can use this for your script. This is a example video... http://www.youtube.com/watch?v=WfkWxsY6BGQ

No need change environment variable, you can move script where you want. Like proxy I use Vidalia (Tor), and for sniff urls, HTTPFox plugin for Firefox.

That is helpful but mine parses all parameters right out of the Firefox cache. I took off support for useragent though, I decided just to permanently change my useragent as KSV suggest.

youtube.com/watch?v=1J0YyTQd9oQ

github.com/svnpenn/dotfiles/blob/master/bin/AdobeHDS.sh

github.com/svnpenn/dotfiles/blob/master/firefox/user.js

svnpenn
06-02-2012, 01:15 PM
github.com/svnpenn/dotfiles/blob/master/bin/AdobeHDS.sh

how to work in XP:confused:

C:\cygwin\bin
C:\Documents and Settings\Администратор\Local Settings\Application Data\Mozilla\Firefox\Profiles\m629is7s.default\Cac he

Should work with Windows 7 and XP now.

chap
06-02-2012, 01:33 PM
Should work with Windows 7 and XP now.

:confused: no works

Администратор@microsof-0e0033 ~
$ AdobeHDS.sh
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
cygpath [-c HANDLE]
cygpath [-ADHOPSW]
cygpath [-F ID]

Convert Unix and Windows format paths, or output system path information

Output type options:

-d, --dos print DOS (short) form of NAMEs (C:\PROGRA~1\)
-m, --mixed like --windows, but with regular slashes (C:/WINNT)
-M, --mode report on mode of file (binmode or textmode)
-u, --unix (default) print Unix form of NAMEs (/cygdrive/c/winnt)
-w, --windows print Windows form of NAMEs (C:\WINNT)
-t, --type TYPE print TYPE form: 'dos', 'mixed', 'unix', or 'windows'

Path conversion options:

-a, --absolute output absolute path
-l, --long-name print Windows long form of NAMEs (with -w, -m only)
-p, --path NAME is a PATH list (i.e., '/bin:/usr/bin')
-s, --short-name print DOS (short) form of NAMEs (with -w, -m only)
-C, --codepage CP print DOS, Windows, or mixed pathname in Windows
codepage CP. CP can be a numeric codepage identifier,
or one of the reserved words ANSI, OEM, or UTF8.
If this option is missing, cygpath defaults to the
character set defined by the current locale.

System information:

-A, --allusers use `All Users' instead of current user for -D, -O, -P
-D, --desktop output `Desktop' directory and exit
-H, --homeroot output `Profiles' directory (home root) and exit
-O, --mydocs output `My Documents' directory and exit
-P, --smprograms output Start Menu `Programs' directory and exit
-S, --sysdir output system directory and exit
-W, --windir output `Windows' directory and exit
-F, --folder ID output special folder with numeric ID and exit
Try `cygpath --help' for more information.
find: `/*/*/Profiles/*/Cache/_*': No such file or directory
Press enter after video starts



rtmp-host
works fine:confused:

Darby_Crash
06-02-2012, 05:22 PM
Required Firefox. Only for first run required your Firefox user agent.

1) Open Firefox.
2) You must clear Firefox cache from tools menu.
3) Go on video page and wait until video start.
4) Close Firefox & run the script (batch file).
5) In main folder of the script you have manifestURL.txt and auth.txt

http://www.mediafire.com/?r6yolgutymy695l

Darby_Crash
06-02-2012, 08:17 PM
Darby_Crash
sorry accidentally deleted your post:(

What are you doing? :confused:

svnpenn
06-03-2012, 09:50 AM
Update

Script should work with Windows 7 and Windows XP

Tested to work with

C:\Users\Steven\AppData\Local
C:\Documents and Settings\Steven\Local Settings\Application Data

AdobeHDS.sh (github.com/svnpenn/dotfiles/blob/master/bin/AdobeHDS.sh)

svnpenn
06-03-2012, 05:54 PM
I made a few performance tweaks.

Finding parameters is now extremely fast, usually 1 second.

svnpenn
06-13-2012, 06:53 PM
github.com/svnpenn/dotfiles/commit/a722

Improve parsing of auth and manifest

svnpenn
06-16-2012, 04:52 PM
github.com/svnpenn/dotfiles/commit/efec

Support unauthenticated sites

Some sites, e.g. http://veevr.com/embed/hqn8v_CWP do not require authentication.
If that be the case just pass "--auth ''".

Also fix is included for clearing cache. plugin-container.exe needs to be
stopped before clearing the cache.

svnpenn
06-19-2012, 05:23 AM
github.com/svnpenn/dotfiles/commit/c581d

Call PHP directly, not from second script

Previous versions would dump the PHP command for AdobeHDS.php to a Bash script,
then call the script. The correct php command is now simply run and no script
created.

In addition a binparse() function is being used to reduce code repetition.

svnpenn
06-20-2012, 12:05 AM
github.com/svnpenn/dotfiles/commit/1667

Eliminate problems with binary data

By using

tr '\0' '\n'

only null bytes are being removed. Nonprinting characters other than null have
the possibility of crashing the script. Using "cat -v" eliminates this
possibility by using ^ and M- notation to represent nonprinting characters.

svnpenn
06-20-2012, 03:33 AM
github.com/svnpenn/dotfiles/commit/3b46

Fix handling of wildcards

svnpenn
06-25-2012, 02:39 AM
github.com/svnpenn/etc/blob/master/AdobeHDS.sh

New link, moderator please update.

svnpenn
06-29-2012, 08:01 PM
github.com/svnpenn/etc/commit/b098

AdobeHDS, search process memory instead of cache

For some time the script has searched the Firefox cache for the parameters for
AdobeHDS. Recently this has become unreliable. Script will now dump the flash
player and search its memory, a proven method.

Also I am adding the useragent parameter. I feel this is better than users
editing their user.js Firefox file every time the AdobeHDS.php script changes
its useragent. Useragent should be pulled from the RAM so users can keep their
native useragent.

Tested with
http://concertgebouw.nl/live?event=25417
http://pluzz.fr/jt-13h

lucsj30
07-02-2012, 03:00 PM
i have download cygwin and sh file to download a video

but there is one error in sh file on line 28 the error message is :

AdobeHDS.sh: line 28: Erreur de syntaxe pr?s du symbole inattendu « < »

Thank to help me to resolve this problem

Luc

svnpenn
07-02-2012, 04:37 PM
AdobeHDS.sh: line 28: Erreur de syntaxe pr?s du symbole inattendu « < »

Put link

piarpo
07-07-2012, 02:17 AM
Guys, I've got a problem
http://img100.imageshack.us/img100/9749/65303999.png
I did everything written in the first post. AdobeHDS.php doesn't work too with the same error.
If it helps I use Win7 and I downloaded all fragments of my video. I just need to merge them. Maybe there is some other way to do it =)

svnpenn
07-07-2012, 02:24 AM
I did everything written in the first post. AdobeHDS.php doesn't work too with the same error

Edit

There should not be any "DOCTYPE" in the script

github.com/svnpenn/etc/blob/master/AdobeHDS.sh

Make sure you have actually downloaded the script and not some error

Edit again

I can see clearly now you have done that, you need the raw page, sheesh!

https://raw.github.com/svnpenn/etc/master/AdobeHDS.sh

Darby_Crash
07-09-2012, 03:20 PM
Required Firefox. Only for first run required your Firefox user agent.

1) Open Firefox.
2) You must clear Firefox cache from tools menu.
3) Go on video page and wait until video start.
4) Close Firefox & run the script (batch file).
5) In main folder of the script you have manifestURL.txt and auth.txt

http://www.mediafire.com/?r6yolgutymy695l

Updated:

http://www.mediafire.com/?ah5im9pfod1mte2

Darby_Crash
07-11-2012, 03:16 PM
Updated:

http://www.mediafire.com/?ah5im9pfod1mte2

Another update:

http://www.mediafire.com/?dydd4xdqbq24wpj

Darby_Crash
07-13-2012, 10:44 AM
http://www.mediafire.com/?i1zcuwo0g6bpuyd

New php portable version...

svnpenn
07-14-2012, 03:25 AM
In the spirit of Darby Crash I have created a "package" version of AdobeHDS.sh

it includes

* Cygwin
* PHP
* AdobeHDS.php
* AdobeHDS.sh

It should be everything you need to get started downloading

github.com/downloads/svnpenn/etc/adobehds-v-49-g6f0ff7a.7z

Suggestions welcome.

Darby_Crash
07-17-2012, 01:26 PM
Added duration option:

http://www.mediafire.com/?aoogczniuu1v99y

Darby_Crash
07-21-2012, 10:54 AM
Added new functions.

http://www.mediafire.com/?a3w9zbnabv88k4a

EDIT: Updated again. All functions inclused.

Darby_Crash
07-29-2012, 09:37 AM
http://www.mediafire.com/?2egz798n23ttkd9

Updated script!

svnpenn
07-29-2012, 10:11 AM
In case people are looking for my AdobeHDS.sh "package", new version will be put here

github.com/svnpenn/etc/downloads

Darby_Crash
08-01-2012, 12:47 PM
http://www.mediafire.com/?66821z2fj69t1be

Fixed all bugs and added play switch for view streams on Mplayer (included) without downloading.

Darby_Crash
08-12-2012, 08:23 AM
http://www.mediafire.com/?66821z2fj69t1be

Fixed all bugs and added play switch for view streams on Mplayer (included) without downloading.

Required Firefox. Only for first run required your Firefox useragent.

1) Open Firefox.
2) You must clear Firefox cache from tools menu.
3) Go on video page and wait until video start.
4) Close Firefox & run the script (batch file).
5) In main folder of the script you have manifestURL.txt and auth.txt

Darby_Crash
09-21-2012, 02:58 PM
Required Firefox. Only for first run required your Firefox useragent.

1) Open Firefox.
2) You must clear Firefox cache from tools menu.
3) Go on video page and wait until video start.
4) Close Firefox & run the script (batch file).
5) In main folder of the script you have manifestURL.txt and auth.txt

http://www.mediafire.com/?fhefczcnt6ffdy4

Script updated!

meedermow
09-24-2012, 02:03 AM
http://www.mediafire.com/?fhefczcnt6ffdy4

Script updated!

Excellent package Darby_Crash - I couldn't get the KSV scripts to work for some reason but yours were more compatible with my system!

If I get this error:

Unknown packet type 40 encountered! Encrypted fragments can't be recovered

Does it mean that it is DRM protected and impossible to download? It is a Channel 4 stream, which KSV had to create a wrapper script for.

svnpenn
10-07-2012, 03:43 PM
Improve regex

Tested with
http://fora.tv/2010/06/14/FedEx_CEO_Frederick_W_Smith_Delivering_Innovation
http://pluzz.fr/replay/1
http://veevr.com/videos/ASQNbfSS
http://music.yahoo.com/programs/iheart/
http://syfy.com/videos/Lost%20Girl

github.com/svnpenn/etc/commit/71e2