User avatar
mattrix
Posts: 143
Joined: Mon Mar 02, 2015 6:20 am
Location: New Zealand
Contact: Website Twitter

Re: DRM suddenly not working

Mon Sep 06, 2021 12:44 am

@TheGreatDayne
you mean udemy in browser doesn't work?
They may be requiring VMP which doesnt work on linux.

You could install Kodi and try use my Udemy add-on instead:
https://www.matthuisman.nz/2018/08/udem ... dd-on.html


actually, I forgot - even the Kodi add-on won't work.
They are indeed forcing VMP (the add-on will give you a warning)
https://github.com/matthuisman/slyguy.a ... in.py#L279
Last edited by mattrix on Mon Sep 06, 2021 1:21 am, edited 2 times in total.
www.matthuisman.nz

User avatar
craigevil
Posts: 283
Joined: Wed Jan 27, 2021 5:22 am
Location: OZ
Contact: Website

Re: DRM suddenly not working

Mon Sep 06, 2021 1:09 am

mattrix wrote:
Mon Sep 06, 2021 12:44 am
@TheGreatDayne
you mean udemy in browser doesn't work?
They may be requiring VMP which doesnt work on linux.

You could install Kodi and try use my Udemy add-on instead:
https://www.matthuisman.nz/2018/08/udem ... dd-on.html
No issues with Udemy here.
Raspberry PI 400 Raspberry Pi OS (Debian Sid) Kernel: 5.15.5-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"

User avatar
mattrix
Posts: 143
Joined: Mon Mar 02, 2015 6:20 am
Location: New Zealand
Contact: Website Twitter

Re: DRM suddenly not working

Mon Sep 06, 2021 1:19 am

@craigevil
some courses aren't using DRM on Udemy and some are.
I suspect the users issue is with courses that are DRM
as the ones that don't are just normal HLS or MP4
www.matthuisman.nz

User avatar
Botspot
Posts: 1780
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: DRM suddenly not working

Mon Sep 06, 2021 1:30 am

Somebody says that this docker image, containing Chromium and the necessary libraries, still works.
https://github.com/HenningThiemann/dock ... mium-armhf
Easily install apps on your Pi with Pi-Apps! Over 500k users.
Includes two Zoom desktop apps, 3 ways to run Minecraft, 10 web browsers, appearance themes, and 105 more.
More info: https://github.com/Botspot/pi-apps

TheGreatDayne
Posts: 3
Joined: Fri Sep 03, 2021 1:36 am

Re: DRM suddenly not working

Mon Sep 06, 2021 2:22 am

I installed Kodi and mattrix's Udemy add-on from SlyGuy Repository to Raspberry Pi OS.
Looked good until I entered my Login info... Then I received an error msg; Udemy - Error /n Failed to Login. /n Server Message:403 (and the OK button at the bottom of course).

Haven't tried the docker fix yet (I've never played with docker figured I will look into it if Kodi fix won't work).

User avatar
mattrix
Posts: 143
Joined: Mon Mar 02, 2015 6:20 am
Location: New Zealand
Contact: Website Twitter

Re: DRM suddenly not working

Mon Sep 06, 2021 2:43 am

@TheGreatDayne
i updated my previous comment - I forgot - udemy even on kodi has the same VMP issue.
No way around it unfortunately. The container won't help you either

You (and anyone else trying to use Udemy) contacting them and telling them to turn off VMP is the only solution
and may actually work. It's worked on other providers (eg. HBO Max)

(Also, just pushed updates to the udemy add-on that fixes the login issue that i noticed when testing the VMP issue)

@Botspot
they probably are testing with services that still allow the old widevine library (eg. Netflix & Disney+)
That container is using WV version 4.10.1610.6.
Nearly everywhere else has been using the newer 4.10.1679.0 which has definitely has been revoked by most providers.

Solution here: viewtopic.php?f=63&t=318893#p1910100 works fine without the need for containers.
(the official solution will be similar to this. replacing glibc with a patched version and then updating the widevine cdm)
Udemy and any other providers who force VMP won't work - but never have worked on Linux (no difference)
Last edited by mattrix on Mon Sep 06, 2021 2:55 am, edited 3 times in total.
www.matthuisman.nz

twiggyxlr4
Posts: 49
Joined: Fri Jun 18, 2021 12:59 am

Re: DRM suddenly not working

Mon Sep 06, 2021 2:51 am

I have tried the fix posted earlier and I can confirm it brought back DRM support on my Twister OS on Chromium !
Thanks so much for this !

shioyama
Posts: 3
Joined: Mon Sep 06, 2021 12:13 pm

Re: DRM suddenly not working

Mon Sep 06, 2021 12:14 pm

Thanks so much! :D

star of Mysore
Posts: 1
Joined: Mon Sep 06, 2021 4:41 pm

Re: DRM suddenly not working

Mon Sep 06, 2021 4:44 pm

Thanks mattrix,
it worked. :D

BrutPitt
Posts: 1
Joined: Mon Sep 06, 2021 4:51 pm

Re: DRM suddenly not working

Mon Sep 06, 2021 5:01 pm

mattrix solution, posted below, works fine for my system: Raspberry PI 4 with Raspberry PI OS (32bit), tested with Prime Video

ThanX @mattrix

twiggyxlr4
Posts: 49
Joined: Fri Jun 18, 2021 12:59 am

Re: DRM suddenly not working

Mon Sep 06, 2021 6:14 pm

My enthusiasm withered today when I tried watching DRM content on a website as I noticed my raspberry freezing all of a sudden after a few minutes of playback.
I tried YouTube after, but had no issues there whatsoever.
Didn't try Netflix as it was working fine even when the whole DRM thing started.
Any ideas ?

19drop84
Posts: 1
Joined: Mon Sep 06, 2021 6:46 pm

Re: DRM suddenly not working

Mon Sep 06, 2021 7:23 pm

I used the fix on rpi3 and it worked.It also fixed drm issue with kodi-addon retrospect.Thanks for fixing this.

StuartP86
Posts: 4
Joined: Thu Sep 02, 2021 12:31 pm

Re: DRM suddenly not working

Mon Sep 06, 2021 8:56 pm

mattrix wrote:
Sun Sep 05, 2021 10:26 pm
For anyone who just can't wait for the "official" resolution, commands below should get you back in action.
use at your own risk

Code: Select all

sudo apt-get update
sudo apt-get install libwidevinecdm0 gnupg
curl -s --compressed "https://wagnerch.github.io/ppa/buster/KEY.gpg" | sudo apt-key add -
sudo curl -s --compressed -o /etc/apt/sources.list.d/wagnerch-buster-ppa.list "https://wagnerch.github.io/ppa/buster/wagnerch-buster-ppa.list"
sudo apt-get update
sudo apt-get upgrade
curl https://k.slyguy.xyz/.decryptmodules/widevine/4.10.2252.0-linux-armv7.so | sudo tee /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so >/dev/null
sudo reboot
I have tested the above on Raspberry Pi OS (32-bit) on Pi4.
Tested in Chromium using https://bitmovin.com/demos/drm

OSMC instructions are similar and can be found here:
https://github.com/xbmc/inputstream.ada ... -913047151
Doesn't seem to work for me, I'll wait for the official solution

luisan86
Posts: 1
Joined: Mon Sep 06, 2021 8:58 pm

Re: DRM suddenly not working

Mon Sep 06, 2021 9:04 pm

it has worked for mi pi 4, 4 gb. Now amazon prime video runs again...

THANKS¡¡¡

twiggyxlr4
Posts: 49
Joined: Fri Jun 18, 2021 12:59 am

Re: DRM suddenly not working

Mon Sep 06, 2021 9:11 pm

BrutPitt wrote:
Mon Sep 06, 2021 5:01 pm
mattrix solution, posted below, works fine for my system: Raspberry PI 4 with Raspberry PI OS (32bit), tested with Prime Video

ThanX @mattrix
Does your raspberry pi crash after a while of watching videos DRM or not ?
Mine completely froze after a few minutes of streaming both with DRM and normal YouTube videos.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 30168
Joined: Sat Jul 30, 2011 7:41 pm

Re: DRM suddenly not working

Tue Sep 07, 2021 2:41 pm

Good news, the fix for widevine should now be in apt, so the following should get you going again:

sudo apt update
sudo apt full-upgrade


Please let me know via this thread if there are still problems.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Working in the Applications Team.

fivenote
Posts: 43
Joined: Sun Dec 06, 2020 3:52 pm

Re: DRM suddenly not working

Tue Sep 07, 2021 3:12 pm

Just installed updates on Buster that look like they address the problem. Amazon Video and Spotify working again!

YouTube sometimes still won’t load video w/o refreshing the page a bunch. May be a different issue. If anybody how’s how to fix this please let me know.

Thanks Pi Engineers!

FlynnTheAvatar
Posts: 14
Joined: Wed Apr 07, 2021 6:23 pm

Re: DRM suddenly not working

Tue Sep 07, 2021 4:36 pm

Thank you very much for your update.

Installed the new widevine version, but it does not work for me. Tested my browser with https://bitmovin.com/demos/drm.

Chomium 88.0.4324.187:
License request failed
(DRM_FAILED_LICENSE_REQUEST)

Vivaldi 4.1.2369.21:
Unable to instantiate a key system supporting the required combinations
(DRM_NO_KEY_SYSTEM)

Firefox 78.13.0esr:
Plugin crashes and
Unable to instantiate a key system supporting the required combinations
(DRM_NO_KEY_SYSTEM)

Raspberry OS 32-bit:
Linux raspberrypi 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux

Installed one package from buster-backports to make docker work:
libseccomp2/buster-backports,now 2.4.4-1~bpo10+1 armhf [installiert]

User avatar
mattrix
Posts: 143
Joined: Mon Mar 02, 2015 6:20 am
Location: New Zealand
Contact: Website Twitter

Re: DRM suddenly not working

Tue Sep 07, 2021 8:58 pm

@FlynnTheAvatar
The current official fix only works with Chrome (not Kodi / other browsers)
https://github.com/xbmc/inputstream.ada ... -914635326
Looks like they will be fixing that shortly though :)

The reason your DRM_FAILED_LICENSE_REQUEST in Chrome is because their demo is broken
I have a PR with them to fix: https://github.com/bitmovin/demos/pull/58

In the meantime, you can enter the manifest url and license server below to test

Manifest URL: https://bitmovin-a.akamaihd.net/content ... /11331.mpd
License Server URL: https://cwip-shaka-proxy.appspot.com/no_auth

@jamesh
Thank you team for the quick resolution.
I've removed my work-around commands and now point to your post
www.matthuisman.nz

nlin1980
Posts: 4
Joined: Tue Sep 07, 2021 10:39 pm

Re: DRM suddenly not working

Tue Sep 07, 2021 10:45 pm

I tried two different raspberry pi3B+(s). Both started with the same sd card with fresh image of buster. One of them worked for Amazon vod with the workaround from Mattrix. I tried the other one with the "official" fix from apt, but it still won't play amazon vod.

nlin1980
Posts: 4
Joined: Tue Sep 07, 2021 10:39 pm

Re: DRM suddenly not working

Tue Sep 07, 2021 10:47 pm

I forgot to add that I'm playing amazon through kodi 18.7. Works fine with Mattrix's workaround, just not with upgrade from apt.

nlin1980
Posts: 4
Joined: Tue Sep 07, 2021 10:39 pm

Re: DRM suddenly not working

Wed Sep 08, 2021 12:57 am

Sorry, I just caught the detail in Mattrix's post about the official fix not yet working for Kodi. Guess I'll need to wait a little while longer. At least I have the workaround on the other Raspberry Pi. Thanks for that.

FlynnTheAvatar
Posts: 14
Joined: Wed Apr 07, 2021 6:23 pm

Re: DRM suddenly not working

Wed Sep 08, 2021 5:30 am

@mattrix
Thank you, that fixes the issue with the bitmovin demo. Hopefully it works soon with other browers soon - Raspberry OS'es Chromium is really out of date.

sunny20212021
Posts: 3
Joined: Sat Aug 14, 2021 2:37 pm

Re: DRM suddenly not working

Wed Sep 08, 2021 4:30 pm

After running apt updates , some updates installed for widevine and it started working now great

FlynnTheAvatar
Posts: 14
Joined: Wed Apr 07, 2021 6:23 pm

Re: DRM suddenly not working

Thu Sep 09, 2021 3:50 pm

Just installed the libc updates. I can verify that widevine works in Firefox-ESR, Chromium and Vivaldi now. And the playback on music.amazon.de no longer stops after a few seconds!

Outstanding work! Thank you very much.

Return to “General discussion”