Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RedPenguin2 opened this issue Jan 3, 2017 · 25 comments
Open

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

RedPenguin2 opened this issue Jan 3, 2017 · 25 comments

Comments

@RedPenguin2
Copy link

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
Copy link
Member

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
Copy link
Author

RedPenguin2 commented Jan 4, 2017

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
Copy link
Member

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
Copy link
Member

glennguy commented Jan 4, 2017

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
Copy link
Author

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
Copy link
Member

glennguy commented Jan 4, 2017

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
Copy link
Author

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

@glennguy
Copy link
Member

glennguy commented Jan 4, 2017

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
Copy link
Author

RedPenguin2 commented Jan 4, 2017

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

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

@glennguy
Copy link
Member

glennguy commented Jan 4, 2017

What platform are you running Kodi on?

@RedPenguin2
Copy link
Author

Windows 10.

@glennguy
Copy link
Member

glennguy commented Jan 4, 2017

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

@glennguy
Copy link
Member

glennguy commented Jan 4, 2017

Are you able put your kodi.log in pastebin?

@RedPenguin2
Copy link
Author

@glennguy
Copy link
Member

glennguy commented Jan 4, 2017

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
Copy link
Author

RedPenguin2 commented Jan 4, 2017

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
Copy link
Member

glennguy commented Jan 4, 2017

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
Copy link

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

@RedPenguin2
Copy link
Author

RedPenguin2 commented Jan 7, 2017

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
Copy link
Member

glennguy commented Jan 8, 2017 via email

@RedPenguin2
Copy link
Author

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
Copy link
Author

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
Copy link
Member

glennguy commented Jan 9, 2017 via email

@AuXBoX
Copy link

AuXBoX commented Jan 23, 2017

Has this been fixed?

@glennguy
Copy link
Member

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants