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 in m3u8

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

Hazrd 03-28-2015 07:28 AM

Decrypt AES 128 in m3u8


 
Hi how can i see this m3u8 , i think is AES 128 encripted :
http://187.247.255.139/Apple/NICKHD2500.m3u8
Thanks

surya987 03-28-2015 07:36 AM

Re: Decrypt AES 128 in m3u8


 
no encryption ...... use ffmpeg

Code:

ffmpeg -i "http://187.247.255.139/Apple/NICKHD2500.m3u8" -vcodec copy -acodec copy -absf aac_adtstoasc out.mp4

hasomaso 03-28-2015 07:37 AM

Re: Decrypt AES 128 in m3u8


 
Code:

ffmpeg -i "http://187.247.255.139/Apple/NICKHD2500.m3u8" -c:v copy -c:a copy -f mpegts output.flv
Code:

ffmpeg version N-68639-g6706a29 Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec 20 2014 22:02:33 with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      54. 15.100 / 54. 15.100
  libavcodec    56. 16.100 / 56. 16.100
  libavformat    56. 16.101 / 56. 16.101
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter    5.  4.100 /  5.  4.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample  1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[aac @ 04991a00] channel element 0.0 is not allocated
Input #0, hls,applehttp, from 'http://187.247.255.139/Apple/NICKHD2500.m3u8':
  Duration: N/A, start: 40273.494622, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yu
v420p, 960x540 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, mono, fltp, 69 k
b/s
Output #0, mpegts, to 'output.flv':
  Metadata:
    encoder        : Lavf56.16.101
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1
 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, mono, 69 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 053da620] AAC bitstream not in ADTS format and extradata missing
av_interleaved_write_frame(): Invalid data found when processing input
frame=  31 fps=0.0 q=-1.0 Lsize=    345kB time=00:00:01.03 bitrate=2733.6kbits
/s
video:317kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: 8.890148%
Conversion failed!

D:\>ffmpeg -i "http://187.247.255.139/Apple/NICKHD2500.m3u8" -q:v 0 -bsf h264_mp
4toannexb -f mpegts -  | c:\progra~2\videolan\vlc\vlc - --network-caching=10000
 --file-caching=10000
ffmpeg version N-68639-g6706a29 Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec 20 2014 22:02:33 with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      54. 15.100 / 54. 15.100
  libavcodec    56. 16.100 / 56. 16.100
  libavformat    56. 16.101 / 56. 16.101
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter    5.  4.100 /  5.  4.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample  1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[aac @ 029e4340] channel element 0.0 is not allocated
Input #0, hls,applehttp, from 'http://187.247.255.139/Apple/NICKHD2500.m3u8':
  Duration: N/A, start: 40273.494622, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yu
v420p, 960x540 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, mono, fltp, 69 k
b/s
Output #0, mpegts, to 'pipe:':
  Metadata:
    encoder        : Lavf56.16.101
    Stream #0:0: Video: mpeg2video, yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=2-31,
 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
    Metadata:
      encoder        : Lavc56.16.100 mpeg2video
    Stream #0:1: Audio: mp2, 48000 Hz, mono, s16, 384 kb/s
    Metadata:
      encoder        : Lavc56.16.100 mp2
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
[mpegts @ 0557a580] Non-monotonous DTS in output stream 0:1; previous: 3960, cur
rent: 2280; changing to 3961. This may result in incorrect timestamps in the out
put file.
frame=  43 fps=0.0 q=0.0 size=    329kB time=00:00:01.36 bitrate=1972.3kbits/s
frame=  54 fps= 47 q=0.0 size=    599kB time=00:00:01.73 bitrate=2825.9kbits/s
frame=  61 fps= 37 q=0.0 size=    804kB time=00:00:01.96 bitrate=3344.7kbits/s
frame=  75 fps= 34 q=0.0 size=    1134kB time=00:00:02.43 bitrate=3812.8kbits/s
frame=  86 fps= 32 q=0.0 size=    1428kB time=00:00:02.80 bitrate=4174.3kbits/s
frame=  102 fps= 32 q=0.0 size=    1744kB time=00:00:03.33 bitrate=4282.6kbits/s
frame=  117 fps= 31 q=0.0 size=    2302kB time=00:00:03.83 bitrate=4914.7kbits/s
frame=  134 fps= 31 q=0.0 size=    2689kB time=00:00:04.40 bitrate=5001.6kbits/s
frame=  146 fps= 31 q=0.0 size=    3101kB time=00:00:04.80 bitrate=5287.2kbits/s
frame=  169 fps= 32 q=0.0 size=    3510kB time=00:00:05.57 bitrate=5160.7kbits/s
frame=  197 fps= 34 q=0.0 size=    4053kB time=00:00:06.50 bitrate=5102.9kbits/s
frame=  216 fps= 34 q=0.0 size=    4489kB time=00:00:07.14 bitrate=5149.7kbits/s
frame=  228 fps= 33 q=0.0 size=    4678kB time=00:00:07.54 bitrate=5082.1kbits/s


nullacht 03-28-2015 07:43 AM

Re: Decrypt AES 128 in m3u8


 
Code:

livestreamer "hls://187.247.255.139/Apple/NICKHD2500.m3u8" best
Code:

[cli][info] Found matching plugin stream for URL hls://187.247.255.139/Apple/NICKHD2500.m3u8
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)


sebus 06-09-2016 03:54 PM

Re: Decrypt AES 128 in m3u8


 
Same here, black VLC screeen

Code:

C:\Livestreamer>livestreamer "hls://187.247.255.139/Apple/NICKHD2500.m3u8" best
[cli][info] Found matching plugin stream for URL hls://187.247.255.139/Apple/NICKHD2500.m3u8
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[cli][info] Starting player: 'C:\Program Files\VideoLAN\VLC\vlc.exe'


Terenz 06-10-2016 09:22 AM

Re: Decrypt AES 128 in m3u8


 
The DRM actually is:
Code:

<WRMHEADER xmlns="http://schemas.microsoft.com/DRM/2007/03/PlayReadyHeader" version="4.0.0.0">
<DATA>
<PROTECTINFO>
<KEYLEN>16</KEYLEN>
<ALGID>AESCTR</ALGID>
</PROTECTINFO><KID>LlYgL1D6jEqIN5txwOYFzA==</KID>
<CHECKSUM>xthvMkA22DE=</CHECKSUM><LA_URL>http://entitlement.apptv.megacable.com.mx/opencase/EntitlementManager/resource/rest/playready/license</LA_URL>
<DS_ID>AAAAAAAAAAAAAAAAAAAAAA==</DS_ID>
</DATA>
</WRMHEADER>

I don't know if is possible to download/see that version


All times are GMT -6. The time now is 01:41 PM.