Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #61  
Old 08-12-2014, 05:56 AM
griller griller is offline
Junior Member
 
Join Date: Feb 2013
Posts: 9
griller is on a distinguished road
Default

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.
Reply With Quote
  #62  
Old 08-12-2014, 06:07 AM
surya987 surya987 is offline
Senior Member
 
Join Date: May 2014
Location: India
Posts: 280
surya987 is on a distinguished road
Default

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


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

otherwise soory....!!!!!
Reply With Quote
  #63  
Old 08-14-2014, 05:07 AM
griller griller is offline
Junior Member
 
Join Date: Feb 2013
Posts: 9
griller is on a distinguished road
Default

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


PM sent.
Reply With Quote
  #64  
Old 08-20-2014, 12:12 AM
BlueCop BlueCop is offline
Member
 
Join Date: May 2011
Posts: 44
BlueCop is on a distinguished road
Default

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.
Reply With Quote
  #65  
Old 08-20-2014, 12:56 AM
surya987 surya987 is offline
Senior Member
 
Join Date: May 2014
Location: India
Posts: 280
surya987 is on a distinguished road
Default

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


can you share the script so tht we can look into this.....
Reply With Quote
  #66  
Old 08-20-2014, 01:16 AM
BlueCop BlueCop is offline
Member
 
Join Date: May 2011
Posts: 44
BlueCop is on a distinguished road
Default

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.
Reply With Quote
  #67  
Old 08-20-2014, 02:59 AM
surya987 surya987 is offline
Senior Member
 
Join Date: May 2014
Location: India
Posts: 280
surya987 is on a distinguished road
Default

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.....???
Reply With Quote
  #68  
Old 08-20-2014, 05:02 AM
BlueCop BlueCop is offline
Member
 
Join Date: May 2011
Posts: 44
BlueCop is on a distinguished road
Default

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.
Reply With Quote
  #69  
Old 08-20-2014, 07:31 AM
surya987 surya987 is offline
Senior Member
 
Join Date: May 2014
Location: India
Posts: 280
surya987 is on a distinguished road
Default

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


will love to see your python script.. whn you are going to share.....
Reply With Quote
  #70  
Old 08-20-2014, 09:11 AM
BlueCop BlueCop is offline
Member
 
Join Date: May 2011
Posts: 44
BlueCop is on a distinguished road
Default

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


yea nevermind. i will keep working on my own stuff.
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 09:17 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons