dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6924
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Chromium and widevine on 64-bit

Mon Feb 20, 2023 5:05 pm

An update has been pushed to support libwidevinecdm0 and chromium-browser on 64-bit RPiOS bullseye directly.
This is used by DRM protected services like Netflix and Amazon Prime.

If you were previously using 32-bit libwidevinecdm0/chromium-browser on 64-bit RPiOS, it should be possible to apt remove them,
and reinstall the native 64-bit versions. This should result in an improvement in widevine video performance.

Let us know if this works for you.

edj
Posts: 8
Joined: Sun Jan 24, 2021 5:22 pm

Re: Chromium and widevine on 64-bit

Tue Feb 21, 2023 5:33 am

It works great. Thank you!

User avatar
HermannSW
Posts: 6088
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany

Re: Chromium and widevine on 64-bit

Wed Feb 22, 2023 5:25 pm

dom wrote:
Mon Feb 20, 2023 5:05 pm
An update has been pushed to support libwidevinecdm0 and chromium-browser on 64-bit RPiOS bullseye directly.
This is used by DRM protected services like Netflix and Amazon Prime.
On 32bit systems I executed a script by vpetkov and then had to use chromium media edition for netflix:
viewtopic.php?p=1767167#p1767167

What steps are now needed to use netflix with current 64bit PiOS chromium browser?
https://github.com/Hermann-SW/RSA_numbers_factored
https://stamm-wilbrandt.de/GS_cam_1152x192@304fps
https://hermann-sw.github.io/planar_graph_playground
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6924
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Chromium and widevine on 64-bit

Wed Feb 22, 2023 5:55 pm

HermannSW wrote:
Wed Feb 22, 2023 5:25 pm
What steps are now needed to use netflix with current 64bit PiOS chromium browser?

Code: Select all

sudo apt install libwidevinecdm0
assuming you already have chromium-browser installed.

User avatar
HermannSW
Posts: 6088
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany

Re: Chromium and widevine on 64-bit

Wed Feb 22, 2023 8:50 pm

dom wrote:
Wed Feb 22, 2023 5:55 pm
HermannSW wrote:
Wed Feb 22, 2023 5:25 pm
What steps are now needed to use netflix with current 64bit PiOS chromium browser?

Code: Select all

sudo apt install libwidevinecdm0
assuming you already have chromium-browser installed.
https://stamm-wilbrandt.de/cgi-bin/echo ... ank+you%21

Code: Select all

$ echo -e 'Thank you!' | pbmtext -builtin fixed | pnmcrop | pbmtobraille
⡖⢲⠒⡎⡇⣀⠀⢀⣀⡀⢀⢀⣀⠀⢹⠀⣀⠀⠀⠀⠀⣀⡀⣀⡀⢀⣀⠀⣀⠀⣀⠀⠀⡇
⠀⢸⠀⠀⡏⠀⡇⢠⠒⢺⠀⡏⠀⡇⢸⠪⡀⠀⠀⠀⠀⠘⣄⡜⠀⡇⠀⡇⢸⠀⢸⠀⠀⠇
⠈⠉⠉⠈⠉⠈⠉⠀⠉⠁⠉⠉⠀⠉⠉⠀⠈⠁⠀⠀⠀⢀⡸⠀⠀⠈⠉⠀⠀⠉⠁⠁⠀⠁
$ 
After installing the only step needed was to close chromium and reopen it.
I verified Netflix to work, and Amazon Prime Video:
amazon_prime.Pi400.jpg
amazon_prime.Pi400.jpg
amazon_prime.Pi400.jpg (231.19 KiB) Viewed 9383 times
https://github.com/Hermann-SW/RSA_numbers_factored
https://stamm-wilbrandt.de/GS_cam_1152x192@304fps
https://hermann-sw.github.io/planar_graph_playground
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/

cvanloot
Posts: 1
Joined: Tue Feb 28, 2023 8:40 pm

Re: Chromium and widevine on 64-bit

Tue Feb 28, 2023 8:45 pm

Hi,

Really appreciate the effort. In my case however, Raspberry 4B 8gb, the streaming starts but after a few seconds pushes the CPU to 100% and the video and sound are interrupted every few seconds as of then (whereas it was working with the 32bit browser).

SkyHighPi
Posts: 4
Joined: Fri Jul 16, 2021 2:41 pm

Re: Chromium and widevine on 64-bit

Tue Feb 28, 2023 9:06 pm

This is big news and very welcome. I am curious how you did this as I was not aware of Google releasing a 64-bit version of Widevine for arm64?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6924
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Chromium and widevine on 64-bit

Wed Mar 01, 2023 10:58 am

cvanloot wrote:
Tue Feb 28, 2023 8:45 pm
Really appreciate the effort. In my case however, Raspberry 4B 8gb, the streaming starts but after a few seconds pushes the CPU to 100% and the video and sound are interrupted every few seconds as of then (whereas it was working with the 32bit browser).
What resolution is it using on 32-bit and 64-bit?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6924
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Chromium and widevine on 64-bit

Wed Mar 01, 2023 10:59 am

SkyHighPi wrote:
Tue Feb 28, 2023 9:06 pm
This is big news and very welcome. I am curious how you did this as I was not aware of Google releasing a 64-bit version of Widevine for arm64?
There are chromeos images for arm64.

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

Re: Chromium and widevine on 64-bit

Thu Mar 23, 2023 6:14 pm

This is awesome!

There’s a bit more screen tearing compared to 32 bit. I checked chrome://gpu and it says it’s using hardware acceleration for video decode.

Any tips to improve this?

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

Re: Chromium and widevine on 64-bit

Fri Mar 24, 2023 4:40 pm

fivenote wrote:
Thu Mar 23, 2023 6:14 pm
This is awesome!

There’s a bit more screen tearing compared to 32 bit. I checked chrome://gpu and it says it’s using hardware acceleration for video decode.

Any tips to improve this?
Forgot to disable the compositor to reduce screen tearing…

https://www.raspberrypi.org/forums/view ... 5#p1641815

caerandir
Posts: 152
Joined: Tue Dec 18, 2012 11:26 am
Location: Bonn, Germany

Re: Chromium and widevine on 64-bit

Mon Mar 27, 2023 8:57 am

Big thanks also from my side: Spotify Web Player works now out of the box.

wibble
Posts: 6
Joined: Sat Dec 28, 2013 3:50 pm

Re: Chromium and widevine on 64-bit

Thu May 11, 2023 11:22 pm

As of the most recent (3rd May 2023) Raspbian update, none of the installation suggestions here work anymore.

I found viewtopic.php?p=2105770&hilit=netflix#p2105770 and now with chromium:armhf and libwidevinecmd0:armhf I'm back in business :)

Undertow
Posts: 357
Joined: Thu Feb 18, 2021 2:00 pm

Re: Chromium and widevine on 64-bit

Thu May 11, 2023 11:49 pm

wibble wrote:
Thu May 11, 2023 11:22 pm
As of the most recent (3rd May 2023) Raspbian update, none of the installation suggestions here work anymore.

I found viewtopic.php?p=2105770&hilit=netflix#p2105770 and now with chromium:armhf and libwidevinecmd0:armhf I'm back in business :)
Latest 64 bit Chromium "Version 113.0.5672.59 (Official Build) Built on Debian , running on Debian 11 (64-bit)" works for me with widevine on various sites including Prime Video. I don't have netflix so can't comment on that.

a14
Posts: 4
Joined: Fri Feb 13, 2015 8:27 pm

Re: Chromium and widevine on 64-bit

Tue Jul 25, 2023 5:46 pm

I tried the following combinations, but none of them work for me when opening https://open.spotify.com/:
  • firefox-esr:armhf libwidevinecdm0:armhf
  • firefox-esr libwidevinecdm
  • chromium:armhf libwidevinecdm0:armhf
  • chromium libwidevinecdm0
I also tried changing the user agent to something more common in Chromium, but that didn't seem to affect anything. In all cases it says "Playback of protected content is not enabled".

So, how have you all managed to enable Widevine? Because it certainly doesn't seem to work for me.

I also looked at chrome://flags/#full-user-agent but it doesn't seem to exist on my Chromium version (115.0.5790.98-1~deb11u1).

User avatar
kerry_s
Posts: 6502
Joined: Thu Jan 30, 2020 7:14 pm

Re: Chromium and widevine on 64-bit

Tue Jul 25, 2023 6:22 pm

So, how have you all managed to enable Widevine? Because it certainly doesn't seem to work for me.
it's only for the raspberry os chromium, no other browser. the useragent is set to chrome os.
mine on raspberry os 64bit:
Mozilla/5.0 (X11; CrOS aarch64 13597.84.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.5672.95 Safari/537.36

if you don't have it you can install with apt.

Code: Select all

sudo apt install libwidevinecdm0
Chromium version (115.0.5790.98-1~deb11u1)
that is not raspberry chromium.
Attachments
2023-07-25-082638_1920x1080_scrot.png
2023-07-25-082638_1920x1080_scrot.png (177.36 KiB) Viewed 3844 times

Return to “Raspberry Pi OS”