chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 583 forks source link

Need help with encrypted stream #1097

Open sonnvl opened 8 years ago

sonnvl commented 8 years ago

http://vuapp.tranvu.info/#tivi/157

All m3u8 links are AES encrypted! Any solution >

ghost commented 8 years ago

HLS AES decryption is already available (HLS.py). The problem here is that the EXT-X-KEY tag points to the wrong key file. Output log indicates that.

Livestreamer:

livestreamer "hlsvariant://hlscache.fptplay.net.vn/liver/vtv9_hls.smil/playlist.m3u8" best
[cli][info] Found matching plugin stream for URL hlsvariant://hlscache.fptplay.net.vn/liver/vtv9_hls.smil/playlist.m3u8
[cli][info] Available streams: 240p (worst), 360p, 480p, 576p (best)
[cli][info] Opening stream: 576p (hls)
[stream.hls][error] Failed to create decryptor: Unable to open URL: http://drm.fptplay.net.vn/secure/decrypt?stream=vtv9_2000.stream (403 Client Error: Forbidden)

Playlist:

http://hlscache.fptplay.net.vn/liver/vtv9_hls.smil/playlist.m3u8
http://hlscache.fptplay.net.vn/liver/vtv9_hls.smil/chunklist_b300000.m3u8
http://hlscache.fptplay.net.vn/liver/vtv9_hls.smil/chunklist_b500000.m3u8
http://hlscache.fptplay.net.vn/liver/vtv9_hls.smil/chunklist_b1200000.m3u8
http://hlscache.fptplay.net.vn/liver/vtv9_hls.smil/chunklist_b2500000.m3u8

Header:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:15375
#EXT-X-KEY:METHOD=AES-128,URI="http://drm.fptplay.net.vn/secure/decrypt?stream=vtv9_2000.stream"

SWF:

http://vuapp.tranvu.info/player/hls6.01.swf
case "URI": _local9 = _extractURL(_local26, _arg2); if (_local9.indexof("drm.fptplay.net.vn") > -1)
{ _local9 = ((((((((((((((((((((((((((((((((((((("h" + "t") + "t") + "p") + ":") + "//") + "v") + "u") + "a") + "p") + "p") + ".") + "t") + "r") + "a") + "n") + "v") + "u") + ".") + "i") + "n") + "f") + "o") + "/") + "p") + "l") + "a") + "y") + "e") + "r") + "/") + "d") + "e") + "c") + "r") + "y") + "p") + "t");

Key file:

http://vuapp.tranvu.info/player/decrypt

So I guess there is no quick solution. It should be possible to decrypt some segments with FFMPEG, but that would be an offline solution and maybe not something you want.

expandables2 commented 8 years ago

HI I have been trying to get the rtmp for this link but i cant get it can you please help me. http://www.newzphobia.com/2013/09/get-latest-views-and-news-from-hln-live-stream/

ralyodio commented 8 years ago

I've having same problem here: Failed to create decryptor: Unable to open URL -- it works fine with ffmpeg

besweeet commented 8 years ago

I'm having similar issues with Time Warner Cable TV.

Livestreamer:

livestreamer "hlsvariant://http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/index.m3u8" best
[cli][info] Found matching plugin stream for URL hlsvariant://http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/index.m3u8
[cli][info] Available streams: 180p (worst), 270p, 360p, 720p (best)
[cli][info] Opening stream: 720p (hls)
[stream.hls][error] Failed to create decryptor: Unable to open URL: faxs://faxs.adobe.com (No connection adapters were found for 'faxs://faxs.adobe.com')
[cli][error] No data returned from stream

Playlist:

http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/index.m3u8
http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/150.m3u8
http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/440.m3u8
http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/600.m3u8
http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/900.m3u8
http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/1400.m3u8
http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/3200.m3u8
http://linear-scope010.timewarnercable.com/LIVE/2001/hls/ae/SPEEDHD/5500.m3u8

Header (5500.m3u8):

#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:7
#EXT-X-MEDIA-SEQUENCE:3383759
#EXT-X-FAXS-CM:[snipped]
#EXT-X-KEY:METHOD=AES-128,URI="faxs://faxs.adobe.com",IV=0x00000000000000000000000000000000

View the full header here: http://pastebin.com/sVQKjLLx

besweeet commented 8 years ago

Just following up on the above post to see if it's possible to get through this, or if this form of encryption hasn't been cracked yet.

jallen1788 commented 7 years ago

Any movement on @besweeet's issue? I've run into the same problem.