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

Decrypt AES-128 encrypted video files from a m3u8

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

griller 08-12-2014 04:56 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
I tried, it is same. Doesn't matter if I'm logged in or not.

surya987 08-12-2014 05:07 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
PM please your login info.. only than can able to help you...

otherwise soory....!!!!!

griller 08-14-2014 04:07 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
PM sent.

BlueCop 08-19-2014 11:12 PM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
Some key files require cookies that are set when you retrieve the m3u8. I have a script that handles the downloading and decryption to a single transport stream file for many streams.

If you can log the playback of the stream then you should be able to see what is needed in the request for the key file. It is probably just a cookie.

surya987 08-19-2014 11:56 PM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
can you share the script so tht we can look into this.....

BlueCop 08-20-2014 12:16 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
If I try to play the streams on an iOS device I get the "the server requires a client certificate"

So it is probably just using the right client certificate. I would have to clean up the script a bit to make it friendly for usage. I mostly just hack around in idle. it works for hulu and some other services pretty well.

I would try to log some sessions and then replicate the traffic. It is pretty simple. just aes in cbc mode and parsing the key and iv. The apple media players uses a 00'd iv if none is provided.

If I can examine a ssl mitm proxied of a playback then I could probably write/update a script to download it.

surya987 08-20-2014 01:59 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
Are you using Curl script..... As cookies expire very fast... As it download encrypted stream and keys using cookies and whn comes to decrypt stage mostly key expires.....

Also some keys require secure iOS token to access...!!

Any update to this.....???

BlueCop 08-20-2014 04:02 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
no I am only using python. I just keep a temporary cookie jar in memory for the stream. I tried to replicate the AppleCoreMedia behavior. it is easy to add tokens or special headers to a request.

I just wrote it to save several streams that I couldn't save with any method I tried. It might be my fault because I didn't know how to use the existing utilities for saving them. it calls ffmpeg to remux the decrypted ts to mp4 or mkv.

I will try to get it in a useful form to post. I would love to expand the functionality.

surya987 08-20-2014 06:31 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
will love to see your python script.. whn you are going to share.....

BlueCop 08-20-2014 08:11 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
yea nevermind. i will keep working on my own stuff.


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