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

Downloading Amazon Prime streaming video

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

BlueCop 10-13-2014 04:21 PM

Re: Downloading Amazon Prime streaming video


 
amazon now uses playready/silverlight for Mac and Windows. Linux is still flash.

The licenses can be decrypted if you can get your ecc private key from the silverlight ibx. The matching public key is usually embedded in the XMR license.

I wrote at tool to parse the playready key files, secure store, certificate chains, revocation lists, and xmr licenses to help figure out all the data types contained.

They stream using smooth streaming. These are really just piff segmented mp4 files with its header stripped. It can be remade into an mp4 by generating a correct header from a manifest and A/V file segments.

mp4decrypt from the open source Bento4 can decrypt the file by specifying the AES content key for each encrypted track.

I don't think there is a standard method of obtaining your private key from the IBX because they are obfuscated differently.

FYI unlike netflix which does not encrypt their audio. Amazon does encrypt their audio streams.

The subtitles are not encrypted so can be downloaded/converted easily....

blimey 10-13-2014 05:08 PM

Re: Downloading Amazon Prime streaming video


 
Is the max quality for playready/silverlight (desktop) the same as flash, 2500k 720p with 128k aac 2.0?

All of that information is very interesting but seems like a fair bit of work, especially since the flash is just ordinary rtmpe w/swfVfy2 and no flash access (lately).

I wanted to run their new android app under bluestacks with debugger, but they make you jump hoops to get the apk, so I lost interest.

BlueCop 10-13-2014 05:12 PM

Re: Downloading Amazon Prime streaming video


 
silverlight introduced 3 quality levels above flash.

1920x1080 at 10000000 bps
1280x720 at 6000000 bps
1280x720 at 4000000 bps

It can be a bit of work to get your private key. once you have it you can decrypt most any license. netflix, amazon, etc...

edit: also the 6 channel AC3 is available on the silverlight streams.

the amazon server playready certificate expires 2015-05-31 so they might go with another scheme in the future.

Rancher 10-15-2014 12:08 AM

Re: Downloading Amazon Prime streaming video


 
Quote:

Originally Posted by BlueCop (Post 71448)
The subtitles are not encrypted so can be downloaded/converted easily....

That's interesting. I would like to know how.

BlueCop 10-15-2014 06:41 PM

Re: Downloading Amazon Prime streaming video


 
just monitor the requests and save them.

look for a url similar to this.
hxxps://atv-ps.amazon.com/cdp/catalog/GetSubtitleUrls

That returns the subtitle url with some other json data.
If you aren't authorized for the video then you can't get them.

You can then convert them from the dfxp format to something else.

surya987 10-17-2014 09:50 PM

Re: Downloading Amazon Prime streaming video


 
can still we download from amazone prime and decrypt it....if yes plese tell me ...

thanks

BlueCop 10-17-2014 10:08 PM

Re: Downloading Amazon Prime streaming video


 
blimey seems to indicate that some flash streams aren't using flash access drm. That means rtmpdump could grab them. I really haven't investigated the flash side recently so I can't comment.

Silverlight on windows/mac is much harder to decrypt. One would need a way to get the private keys from playready blackbox. There were solutions for some WMDRM 10 black boxes (drmdbg and freeme2). I don't think anything has been publicly released for silverlight.

sutha25 03-25-2015 03:53 AM

Re: Downloading Amazon Prime streaming video


 
@blimey how to download from amazon if you get the rtmpe with fpslive url i got it but it wont work on rtmpe i think iam doing something wrong

Quote:

{"bitrate":1328,"url":"rtmpe://azusfms-vodfs.fplive.net/azusfms-vod/mp4:video/Customflix/1/542/43/dd4d60d3-c7ed-4ad0-9edb-20ebe7884efd-917.f4v?nvb=20150325094853&nva=20150325194853&sess ionId=16519-edc081ec-5f6a-4b74-996b-a3c7483a4dbe&hash=1b415d8be6d912aeca7e3","contentQ uality":"SD","audioCodec":"STEREO","drm":"FLASH_AC CESS"}]}]}}},"signature":"MRDOKUCa6Bqs7fKSrfNQWqqmpln4LVKYk PTrDIMjemKfZ/r2Fmqq74GxkRZ2IVIdIDljFaqdKE8x+fqpOWxPtWe9ZHClO+La puEuMKgIBRkt+clGT9S/N+Ktx4WjbbXpIdyHe9005XNTWjFbnRcDdM28dejRMCE1OMJBPe Fa1Fo="}
can you help me how you would download this through rtmp?

Manual 03-25-2015 04:43 AM

Re: Downloading Amazon Prime streaming video


 
Since Blimey hasnt been on the forums for quite a while, I hope BlueCop could give us any tip. :)

eonmc2 08-21-2015 07:35 AM

Re: Downloading Amazon Prime streaming video


 
I copied urls of a cartoon episode from Amazon Prime Instant Video (used with chrome html5 video player) by Video Downloadhelper, and I have to use ZenMate proxy because of geoblock. While playing episode those video and audios urls changed often but they were always 372 MB and 24 MB so I downloded mp4-files and seems they contains full episode.

Code:

https://a760avoddashnsus-a.akamaihd.net/d/1$AOAGZA014O5RE,CFF44D03/videoquality$480p/ondemand/361712/prod/9/3/e/93e47bb2-9b16-4dca-994a-7e2017a06ddd/bda8e4c6-1542-4a16-9621-58e8e82f5be6_video_8.mp4/range/141419690-142071865
Code:

General          : bda8e4c6-1542-4a16-9621-58e8e82f5be6_video_8.mp4
Format            : dash at 2 006 Kbps
Length            : 372 MiB for 25mn 54s 800ms

Video #0          : AVC at 2 000 Kbps
Aspect            : 640 x 480 (1.333) at 25.000 fps

Code:

https://a760avoddashnsus-a.akamaihd.net/d/1$AOAGZA014O5RE,CFF44D03/videoquality$480p/ondemand/361712/prod/9/3/e/93e47bb2-9b16-4dca-994a-7e2017a06ddd/bda8e4c6-1542-4a16-9621-58e8e82f5be6_audio_1.mp4/range/5145798-5178527
Code:

General          : bda8e4c6-1542-4a16-9621-58e8e82f5be6_audio_1.mp4
Format            : dash at 131 Kbps
Length            : 24.2 MiB for 25mn 52s 832ms

Audio #0          : AAC at 128 Kbps
Infos            : 2 channels, 48.0 KHz
Language          : en

Those videos doesn't work in VLC/BS/MPC/POT players. I opened those file with notepad and there is text like:
ftypdash iso6dash (freeUSP by CodeShop mdia mdhd »€ Ç 2hdlr soun USP Sound Handler cpssh key-id:VRXcKGt4Q/2DXeBcwFB12Q==*SD2 ótrak \tkhd USP Video Handler


Is there any method to play or decrypt those files in nowadays?


All times are GMT -6. The time now is 08:14 PM.