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

I downloaded NF videos in HD, I can play off line,need a little help W/.key file

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

enrud 06-12-2014 09:39 PM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
Quote:

Originally Posted by ItsAngel (Post 68264)
okay, so in order to get this HD file decrypted and playable, i must remove the "junk" which is the first line in the M3u8, which in this case is "EXT-X-BYTERANGE:6772528@7520
-_2" And THEN go ahead and decrypt the file? Because from what i understood the first line of byterange is what is causing the video to not decrypt. By the way, by any chance did you successfully get an HD video to decrypt?

Each segment specified by byte range needs to be decrypted separately. Each segment has it's own IV.

So if the first byte range starts at 6772528, then everything before it needs to be removed.

Yes I've decrypted HD content.

ItsAngel 06-12-2014 09:43 PM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
Quote:

Originally Posted by enrud (Post 68266)
Each segment specified by byte range needs to be decrypted separately. Each segment has it's own IV.

So if the first byte range starts at 6772528, then everything before it needs to be removed.

Yes I've decrypted HD content.

oh. Okay! sorry its taking me a bit to understand.
there is many byteranges. is the only way to do it, one at a time?
and youre using a PHP script, right?

enrud 06-12-2014 10:09 PM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
Quote:

Originally Posted by ItsAngel (Post 68267)
oh. Okay! sorry its taking me a bit to understand.
there is many byteranges. is the only way to do it, one at a time?
and youre using a PHP script, right?

Yes. They have to be decrypted distinctly.

No, mine is written in Python. I never did use UVD. I have my own tweak that goes into the netflix app and extracts the M3U8 playlist and keys. It also runs a service on the ipad that let's me trigger playback of a movie and then after it captures the playlists and keys, it stops playback. I can bulk rip that way.

But, everything else is the same as what you are doing. The python code downloads the media, decrypts it, and so forth.

ItsAngel 06-12-2014 10:17 PM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
Quote:

Originally Posted by enrud (Post 68268)
Yes. They have to be decrypted distinctly.

No, mine is written in Python. I never did use UVD. I have my own tweak that goes into the netflix app and extracts the M3U8 playlist and keys. It also runs a service on the ipad that let's me trigger playback of a movie and then after it captures the playlists and keys, it stops playback. I can bulk rip that way.

But, everything else is the same as what you are doing. The python code downloads the media, decrypts it, and so forth.

it seems as if your method is much more efficient. do you mind if i can try it out? because im fairly new to php and that might be why its so complicated for me to get this right. & thanks again for sticking around & helping me. i was never able to even know where to begin decrypting hd files until now.

WHOOKIDSON 06-13-2014 02:38 AM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
Quote:

Originally Posted by ItsAngel (Post 68265)
Here are all the files that are downloaded from netflix when downloading an HD video. Video/Audio files included https://www.dropbox.com/sh/ynohnax12...sREoOHZF2jvxsa

Sorry no luck bro .. basically kept getting the same error as you were :(

ItsAngel 06-13-2014 11:46 AM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
Quote:

Originally Posted by WHOOKIDSON (Post 68271)
Sorry no luck bro .. basically kept getting the same error as you were :(

same here, i feel like we are getting closer to being able to decrypt these HD files. Especially With The Help Of enrud. We should have this in no time!

enrud 06-13-2014 01:38 PM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
1 Attachment(s)
Quote:

Originally Posted by ItsAngel (Post 68269)
it seems as if your method is much more efficient. do you mind if i can try it out? because im fairly new to php and that might be why its so complicated for me to get this right. & thanks again for sticking around & helping me. i was never able to even know where to begin decrypting hd files until now.

OK, I wrote a python script that does what you were trying to do in php. It requires that you have already downloaded the files from the cdn. I tested it against your shrek sample. It will also work against HD stuff as well.

This runs in Python 2.7 and requires either the pycrypto or M2Crypto packages which implement AES. This *should* work platform independently, but I haven't tested that.

Have fun.

ItsAngel 06-13-2014 03:23 PM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
Quote:

Originally Posted by enrud (Post 68291)
OK, I wrote a python script that does what you were trying to do in php. It requires that you have already downloaded the files from the cdn. I tested it against your shrek sample. It will also work against HD stuff as well.

This runs in Python 2.7 and requires either the pycrypto or M2Crypto packages which implement AES. This *should* work platform independently, but I haven't tested that.

Have fun.

thank you! question, every time i try running the script, i get this in response. did i miss a step?

"I:\Python27>python decrypt.py
Traceback (most recent call last):
File "decrypt.py", line 19, in <module>
except ImportException:
NameError: name 'ImportException' is not defined

I:\Python27>"

enrud 06-13-2014 03:34 PM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
1 Attachment(s)
Sorry. But it does mean that you need to install a crypto package for python. Either of these will work:
https://pypi.python.org/pypi/pycrypto
https://pypi.python.org/pypi/M2Crypto

Fix attached.

enrud 06-13-2014 03:35 PM

Re: I downloaded Netflix videos in HD, I can play off line,need a little help W/.key


 
pycrypto prebuilt for windows:
http://www.voidspace.org.uk/python/m...shtml#pycrypto


All times are GMT -6. The time now is 01:58 AM.