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

How to record/stream m3u8 AES-128 stream

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

soernf 02-02-2016 11:39 AM

How to record/stream m3u8 AES-128 stream


 
Hi

My question might not be in the right Category, since there is a little more to it.

I have a Mythtv Backend where I would like to be able to play/record following stream:
http://ys-hlslive.ds.cdn.yousee.tv:8...e=yousee.tv-pc

I have more similar streams, but the incryption should be the same.

As fare as I can figure out, it is AES-128 Verimatrix incryption.

My final goal is to be able to record the stream on my Mythtv backend, but for now I "just" want to be able to record the files in a terminal.
The Mythtv supports ffmpeg, so if that could be used, it would properly make the final goal simpler.

I get this in terminal:
Code:

[root@sfalkenberg ~]# mythffmpeg -i "http://ys-hlslive.ds.cdn.yousee.tv:80/Content/HLS/Live/Channel(DR1)/index.m3u8" -c copy /var/flexshare/shares/disk_1/DVD/test2.ts
ffmpeg version 1.2.7 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan 31 2016 06:52:56 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
  configuration: --compile-type=release --arch=x86_64 --enable-mmx --prefix=/usr --libdir-name=lib64 --x11-path=/usr/include --enable-joystick-menu --enable-lirc --enable-ivtv --enable-firewire --enable-dvb --enable-audio-oss --enable-audio-alsa --enable-audio-jack --enable-x11 --enable-xrandr --enable-xv --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfftw3 --enable-opengl-video --enable-vdpau --enable-crystalhd --enable-vaapi --enable-ffmpeg-pthreads --perl-config-opts='INSTALLDIRS=vendor' --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libfaac --enable-libvpx --enable-nonfree
  libavutil      52. 18.100 / 52. 18.100
  libavcodec    54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter    3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample  0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Unable to open key file https://vkey.cdn.yousee.tv/CAB/keyfile?s=883&r=00000000-0000-0000-0000-000000000007&t=DTV&p=1454428800
[hls,applehttp @ 0x1fa4f40] Error when loading first segment 'http://ys-hlslive.ds.cdn.yousee.tv:80/Content/HLS/Live/Channel(DR1)/Stream(02)/Segment(14544303590000000)/segment.ts'
http://ys-hlslive.ds.cdn.yousee.tv:80/Content/HLS/Live/Channel(DR1)/index.m3u8: Invalid data found when processing input

Thanks,

S?ren

surya987 02-02-2016 10:00 PM

Re: How to record/stream m3u8 AES-128 stream


 
try to download key manualyy while playing stream...

or paste orignal video url

soernf 02-02-2016 10:10 PM

Re: How to record/stream m3u8 AES-128 stream


 
I dont know how to download the key while playing.

I tried using windows to save the key to a .psx file, but did not help to edit the m3u8 and use the key locally.

I tried using a url scanner while playing the streams in a webplayer and got this:

http://taa-cds-se2.se.ys-hlslive.ds....e=yousee.tv-pc
http://taa-cds-se2.se.ys-hlslive.ds....05)/index.m3u8
http://taa-cds-se2.se.ys-hlslive.ds....02)/index.m3u8
http://taa-cds-se2.se.ys-hlslive.ds....02)/index.m3u8
http://taa-cds-se2.se.ys-hlslive.ds....00)/segment.ts
http://taa-cds-se2.se.ys-hlslive.ds....02)/index.m3u8
http://taa-cds-se2.se.ys-hlslive.ds....00)/segment.ts

I think this is encrypted using Viewright.

If anyone know how it would be great.

surya987 02-02-2016 10:21 PM

Re: How to record/stream m3u8 AES-128 stream


 
i am talking about

Code:

https://vkey.cdn.yousee.tv/CAB/keyfile?s=883&r=00000000-0000-0000-0000-000000000007&t=DTV&p=1454475600
open any playlist and download inside key in it and try again editing m3u8 file...

soernf 02-02-2016 10:44 PM

Re: How to record/stream m3u8 AES-128 stream


 
I have already tried that, but since I am using Windows because that is the only thing I can get the web player to work on, I am only being permitted to download a psx file.

Can you please instruct on how to download the key?


All times are GMT -6. The time now is 04:25 AM.