PDA

View Full Version : Need help downloading key protected m3u8


jgilf
04-11-2017, 03:34 AM
I have been having quite a bit of trouble downloading this stream with ffmpeg.

https://securehls-vod01.clarovideo.net/gl/playlist/quality.m3u8/legacy_mode/false/q/06/t/0a2f188fdd17f98d8087bf17d1105185/f/784/index.m3u8

The m3u8 points to a live stream so downloading and editing the m3u8 doesn't really seem to be a valid option.

ffmpeg keeps throwing 'Invalid data found when processing input' errors at me and I'm really not sure what to do.

Any help will be much appreciated! :)

troller12
04-11-2017, 07:00 AM
Hi,

if you enter your playlist in browser then you see the info invalid request.So ffmpeg gets the same results of course and can't work.Just post the page URL of the stream where you did grab that playlist link from.

greetz

jgilf
04-11-2017, 07:29 AM
Thanks for the reply!

I grabbed the playlist link from the Claro Video android app using a packet sniffer

The link above loads the playlist fine, mustn't work for you because of the token..

Here is the apk of the app

http://www.apkmonk.com/app/com.dla.android/

And here is a copy of the playlist (though this is constantly updating)

http://www.mediafire.com/file/84tcd1uh1958cct/index.m3u8

And here is the keyfile that the playlist links to:

http://www.mediafire.com/file/d6enibwlouccx3l/1491897747.dat

jgilf
04-11-2017, 08:22 AM
For what its worth also, this m3u8 plays perfectly with Chrome's native HLS player but won't load with VLC

I think it definitely has something to do with passing the headers but I just can't seem to work it out :(

EDIT: Don't worry! I fixed it! Thanks for the help anyway :)