View Single Post
  #15  
Old 04-10-2017, 03:31 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: Download key protected m3u8


Hi,

again: Post the browser pagelink where you do watch the stream.

If the key link is protected (need to use specific static or also dynamic request paramters) then ffmpeg & Co will fail to get successfully access to this link.

So the 5 playlist links you have are a part of the master playlist you can normaly use with hlsvariant scheme to choose any link with qualitiy X.So in your case you can choose from 5 diffrent streams.If you look inside of these single playlist then you can see another infos like all ts links from 1 - 2706 = your entire stream you want to download.At the top you can see the key method info and link...
Code:
EXT-X-KEY:METHOD=AES-128,URI="http://voyo.ro/lbin/mplay/eshop/ws/getAesKey.php?id=159764"
...this is the link to request the key.So if you now call this key link alone without any specific parameters then it dosent work and I get status 403 forbidden as response back.So you can try this simple by yourself if you enter the link in your browser and check the browser console.So it means you need specific request paramters to call this key link successfully and to get response status 200 for example and then you can also see some key datas into response content.Also this you can check / follow in your browser if you enter the stream address where you can watch the stream.Thats why I did ask you post the URL of the stream to grab all datas by myself.

The id 159764 isnt the key so its just a part of the key URL to read the key bytes from.What you have to do is to download the key bytes into a file which you can then name to 159764.key or whatever and then mod the playlist (as you can see some posts before) and then use ffmpeg to play or download your video.

If you got the right key bytes into your key file then it will also work but if they wrong then you get the message like on the picture you did postet of ffmpeg (failed to open segment).

Just try again and check the example above another time which is same to your link.

PS: Post the page URL of the stream next time.

greetz
Reply With Quote