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
  #1  
Old 05-21-2014, 06:47 AM
Dune Dune is offline
Member
 
Join Date: May 2014
Posts: 39
Dune is on a distinguished road
Default

Decrypt AES-128 encrypted video files from a m3u8


Hello,

This thread is somewhat related to this recent topic.
The idea here is to decrypt the video that is described by a .m3u8 playlist:

Code:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:20
#EXT-X-KEY:METHOD=AES-128,URI="key.key",IV=0xF85A5066CCB442181ACACA2E862A34DC
#EXTINF:10.368000,
segment-00000.ts
#EXTINF:14.252000,
segment-00001.ts
...
The .key file is just:
Code:
e2f96a0861cb381a8b52801f18bf04924c3472bc8f319930
I have tried ffmpeg but it is failing, so I'm now trying to decrypt separate .ts parts (TS is one of these formats which you can read even if you have a part of the file).

I have tried to use (as well as some online AES decrypting tools) openssl, with the following command:

Code:
openssl aes-128-cbc -d -in segment-00001.ts -out output.ts -K e2f96a0861cb381a8b52801f18bf04924c3472bc8f319930 -iv F85A5066CCB442181ACACA2E862A34DC
But this returns a "bad decrypt" error:

Code:
bad decrypt
139974157190984:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:596:
Does anyone here have a clue about this?
Thank you in advance!
Dune
Reply With Quote
  #2  
Old 05-21-2014, 09:39 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


post actual link of video... i think i know how to do .. but post actual link..
Reply With Quote
  #3  
Old 05-21-2014, 09:49 AM
Dune Dune is offline
Member
 
Join Date: May 2014
Posts: 39
Dune is on a distinguished road
Default

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


That's nice of you, thanks.
What do you mean by "video"?
All you are missing from this are the TS segments (and the complete m3u8 that references all these segments).

I can download all the TS segments and zip them to you when I'm back home (within an hour).

If just one is enough, here is a link to the first one: https://www.mediafire.com/?7bx93bcs756o8d0
Reply With Quote
  #4  
Old 05-21-2014, 09:54 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


from where you got this m3u8 file... i am asking this ... or provide me m3u8 file...

thanks
Reply With Quote
  #5  
Old 05-21-2014, 10:52 AM
Dune Dune is offline
Member
 
Join Date: May 2014
Posts: 39
Dune is on a distinguished road
Default

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


You cannot directly download the m3u8 or the ts because of localization restrictions (or you'd have to use a proxy), so the automatic download of the .ts files by ffmpeg is likely not to work.

Here are the .m3u8 and the .key downloads:
.m3u8 download: http://www.mediafire.com/view/lhk7h6..._XTFCNSNV.m3u8
.key download: http://www.mediafire.com/view/wyf8ne...zrwtaxcilu.key

I'm working on uploading all the .ts chunks, in case this is not enough
I already linked one chunk to test on by the way (http://www.mediafire.com/download/7b...leeia-00001.ts)

Last edited by Dune : 05-22-2014 at 05:42 AM.
Reply With Quote
  #6  
Old 05-21-2014, 11:15 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


bro just post link of actual weburl.....i have to look m3u8 file so that i can help you .... and also where is m3u8 file..???? there are lot of files..

i cnt locate it are you kidding me or what....???
Reply With Quote
  #7  
Old 05-21-2014, 11:19 AM
Dune Dune is offline
Member
 
Join Date: May 2014
Posts: 39
Dune is on a distinguished road
Default

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


Whoops, fixed the link (http://www.mediafire.com/view/lhk7h6..._XTFCNSNV.m3u8)

Sorry for the misclick.
Reply With Quote
  #8  
Old 05-21-2014, 11:23 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


got it PM me now.... i will tell you how to actully do it...
Reply With Quote
  #9  
Old 05-22-2014, 05:42 AM
Dune Dune is offline
Member
 
Join Date: May 2014
Posts: 39
Dune is on a distinguished road
Default

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


To the people who PMd me, this guy (surya987) didn't give me (yet) an actually working solution...
I am still desperately trying to figure that out.
Reply With Quote
  #10  
Old 05-22-2014, 01:17 PM
blimey blimey is offline
Former Member
 
Join Date: Jul 2006
Posts: 286
blimey is on a distinguished road
Default

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


Quote:
Originally Posted by Dune View Post
To the people who PMd me, this guy (surya987) didn't give me (yet) an actually working solution...
I am still desperately trying to figure that out.
The key doesn't seem like what is typically used for hls/m3u8.

Usually the key is around 16 bytes varied hexadecimal (like shown at the start of the other thread you mention), and not like the alphanumeric key string you show.

What is the url original source (not some copy) for;

BlackBullet07C_HD.mp4_420kbps-zrwtaxcilu.key

and

BlackBullet07C_HD.mp4_420kbps_XTFCNSNV.m3u8

There doesn't seem to be any geo restriction on the ts segments. You say you don't need to post the original source url because you have already provided all of the pieces, but there is no way to verify that the key you provided is correct without the original source.
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 05:26 PM.


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