aussieaddons / repo

Aussie Add-ons repository for Kodi
http://aussieaddons.com/installation/
100 stars 45 forks source link

7Plus can't play most shows (SAMPLE-AES error). #48

Open RedPenguin2 opened 7 years ago

RedPenguin2 commented 7 years ago

I noticed in the 7Plus addon that it will not play the vast majority of the shows now.

Kodi will just error out without saying anything other then that it's unplayable.

If you put the exact same m3u8 links from Kodi.log into ffmpeg it will spit out the following error:

[hls,applehttp @ 0x7f0504009280] Failed to open segment of playlist 0 [hls,applehttp @ 0x7f0504009280] SAMPLE-AES encryption is not supported yet

That was trying What Went Down Season 1 Episode 36

The m3u8 it tried was https://yahoo7p-a.akamaihd.net/2376984108001/201612/1042/5238272211001/2376984108001_5238272211001_5238263610001.m3u8

Oddly two episodes that expired a few hours ago worked just fine, but not a single other episode of WWD will work.

I also tried other programs and end up with the same error.

andybotting commented 7 years ago

Plus 7 are using a newer Widevine format for streaming the new programs. @glennguy has been hard at work adding support for this into the addon, but it's probably not quite ready for release. When it is, it's likely you'll need to use the newest Kodi v17 (which is still in beta).

RedPenguin2 commented 7 years ago

So more than likely downloading/ripping the videos is no longer an option I am assuming with Widevine.

I noticed the website has FlashAccess DRM on the f4m's as well, so that's no fun either.

andybotting commented 7 years ago

We've never supported that, so I can't comment really. We have a way of using Google's official Widevine library which is available as part of Chrome browser to decrypt the streams, so I'm assuming downloader could be written around that.

glennguy commented 7 years ago

Hi @RedPenguin2 ,

Would you like to try the latest changes in master at https://github.com/andybotting/xbmc-addon-plus7 ?

Most systems are supported with a major exception being Android. Further info to get set up is in the readme at https://github.com/glennguy/plugin.video.9now .

RedPenguin2 commented 7 years ago

Trying it now. Oddly some videos find a working Brightcove m3u8 link but then others don't.

I have no idea why that is occuring.

The very lastest What Went Down works with Brightcove but then the second newest fails trying an old SAMPLE-AES link.

The latest version seems to be having the exact same issue.

I also tried Kodi 17 just to try that also.

glennguy commented 7 years ago

It seems that from a certain date all new shows are being encoded with the new DRM.

You will need Kodi 17 (at least beta 6, ideally RC2). Is the add-on prompting you to download Widevine modules and enable inputstream.adaptive?

RedPenguin2 commented 7 years ago

I have RC2 but for some reason it never asked anythin about Widevine.

glennguy commented 7 years ago

Try uninstalling the plus7 add-on and definitely make sure you're using this copy to reinstall: https://github.com/andybotting/xbmc-addon-plus7/archive/master.zip

RedPenguin2 commented 7 years ago

It now gave me an error I have never seen before.

"Error fetching program information, possibly unavailable. play (43) - Unable to play video."

glennguy commented 7 years ago

What platform are you running Kodi on?

RedPenguin2 commented 7 years ago

Windows 10.

glennguy commented 7 years ago

And just to be sure, for you, plus7 now has shows sorted by genre and the live streams?

glennguy commented 7 years ago

Are you able put your kodi.log in pastebin?

RedPenguin2 commented 7 years ago

http://pastebin.com/uQUQbYup

glennguy commented 7 years ago

It looks like your requests to the Brightcove API are coming back with some sort of HTTP error. Do you happen to be running through a VPN atm?

RedPenguin2 commented 7 years ago

On a VPN atm.

The videos themselves play on the website.

For the longest time it was all working but then with the new version it all of the sudden completely stopped working.

glennguy commented 7 years ago

Got to the bottom of it! :)

For the DRM protected shows and live streams we need to query a different Brightcove API (edge.api.brightcove.com) which apparently is geoblocked. The old API (api.brightcove.com) works but only gives back a HLS URL, which we know doesn't work anymore. I've seen other add-ons circumvent this with a simple X-Forwarded-For header. I'm considering getting my own VPN service soon so I'll give that a try then.

If you're feeling experimental, you can try replacing line 237 in comm.py with

data = fetch_url(brightcove_url, {'BCOV-POLICY': key, 'X-Forwarded-For': '101.175.18.124'}) 

Make sure the indentation of the line stays the same. I've tested and it still plays but I'm not behind a VPN, so you'll have to test that for me.

unlocKing commented 7 years ago

I've already tried using x-forward with 7 - that method no longer works

RedPenguin2 commented 7 years ago

So far it's working perfectly now!

Oddly it's using the mpd file now but I always heard online you needed a "License" URL to be fetched.

Yet I don't see Kodi trying to fetch the license URL which seems to be usually https://wvlic.brightcove.com/proxy/NUMBERS

At least people who used wvstream.exe claim you need a License URL to play the MPD.

glennguy commented 7 years ago

That's great news.

It's definitely getting the license file. The add-on doesn't log getting it as that is handled by the inputstream.adaptive add-on. If you turn on debug logging you should see it in the log file.

On 8 Jan 2017 04:57, "RedPenguin2" notifications@github.com wrote:

So far it's working perfectly now!

Oddly it's using the mpd file now but I always heard online you needed a "License" URL to be fetched.

Yet I don't see Kodi trying to fetch the license URL which seems to be usually https://wvlic.brightcove.com/proxy/NUMBERS

At least people who used wvstreams.exe claim you need a License URL to play the MPD.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xbmc-catchuptv-au/repo/issues/48#issuecomment-271099113, or mute the thread https://github.com/notifications/unsubscribe-auth/ALW4yOO8CYyrl8yLoHPp_as_DnmbisxKks5rP9IggaJpZM4LZttV .

RedPenguin2 commented 7 years ago

I see it getting the license now. Oddly wvstream.exe which is supposed to do the exact same thing that Kodi is doing refuses to play the video. Even though I gave it the correct parameters that the 7Plus Addon is also sending.

RedPenguin2 commented 7 years ago

Just a real quick question.

What normally produces the DASH stream?

Chrome, Firefox, and IE all give you the f4m.

I noticed that iOS gives you the m3u8 (makes sense Apple developed it).

So other than the Kodi add-on what normally would cause the DASH stream to be called?

glennguy commented 7 years ago

The Android app.

re wvstream - not really the place here to ask for support. Try raising a new issue on the wvstream page. The issue is that brightcove license server wants the license challenge sent as binary, not urlencoded base64.

On 9 January 2017 at 04:27, RedPenguin2 notifications@github.com wrote:

Just a real quick question.

What normally produces the DASH stream?

Chrome, Firefox, and IE all give you the f4m.

I noticed that iOS gives you the m3u8 (makes sense Apple developed it).

So other than the Kodi add-on what normally would cause the DASH stream to be called?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xbmc-catchuptv-au/repo/issues/48#issuecomment-271165227, or mute the thread https://github.com/notifications/unsubscribe-auth/ALW4yCQpSUGlxdL2b-bfp7C-xeBEqwHEks5rQRx1gaJpZM4LZttV .

AuXBoX commented 7 years ago

Has this been fixed?

glennguy commented 7 years ago

@AuXBoX - Can Kodi play Sample-AES encrypted streams - no. Can we use another method to view shows - yes. Grab the latest master.zip and follow instructions in readme at https://github.com/glennguy/plugin.video.9now