WendyH / hdsdump

Adobe HDS stream downloader
GNU General Public License v3.0
48 stars 11 forks source link

Local manifest file issue #7

Open Vangelis66 opened 7 years ago

Vangelis66 commented 7 years ago

Hi Wendy! :smile:
I realise from reading Help

-m |--manifest <param> path or url to manifest file for dumping stream (f4m)

that local (on disk) manifest files are supported :+1: (which is not the case with AdobeHDS.php :disappointed: ). I navigated to

http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/pc/vpid/b093pgy6/atk/160095a0841c5e7273b658882077e5a3159fb812/asn/1/

and from there downloaded to disk

http://aod-hds-ww-live.akamaized.net/usp/auth/vod/piff_abr_full_audio/08ee66-b093pgy6/vf_b093pgy6_8d298355-c873-4156-b89f-9b04b8c94956.ism/pc_hd_abr_v2_nonuk_hds_master.f4m?__gda__=1505085619_99aa15eaaed3004be78f2b612fa31eb6

saved as a "pc_hd_abr_v2_nonuk_hds_master.f4m" file.

Normally, that manifest URL/file will only get me 96kbps (HE-AACv1/24kHz) audio stream at best, modifying locally the file and putting into it full (rather than relative) segment URIs will allow me request from the server a higher bitrate audio stream...

I thought I'd place the modified pc_hd_abr_v2_nonuk_hds_master.f4m file next to hdsdump.exe for simplicity reasons and just issue:

hdsdump -m "pc_hd_abr_v2_nonuk_hds_master.f4m" -q 128 -th 12 -o "b093ph08_b093pgy6_128k.flv"

but, most sadly :-1: , the local manifest file was not picked up:

D:\PHP Portable\AdobeHDSdownloaders\HDSdump\2.0.1.9>hdsdump -m "pc_hd_abr_v2_non
uk_hds_master.f4m" -q 128 -th 12 -o "b093ph08_b093pgy6_128k.flv"

                  HDSdump by WendyH v2.0.1.9

manifest  : pc_hd_abr_v2_nonuk_hds_master.f4m
quality   : 128
threads   : 12
outfile   : b093ph08_b093pgy6_128k.flv

Processing manifest info...

Invalid URI: The format of the URI could not be determined.

FWIW, I had to provide in the command the full path to the manifest file for the download to start...

I think it is standard/expected behaviour for CLI apps to first search for local files in the same (working) directory as the one the executable lies, is it possible to have that feature implemented to hdsdump?

Best regards and many thanks for this magnificent tool, which improves considerably over KSV's script...