Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Most public domain software is free, at least at first glance.


computers / comp.sys.raspberry-pi / Re: Amazon Prime Video/Widevine on Arm64.

SubjectAuthor
* Re: Amazon Prime Video/Widevine on Arm64.Pancho
`* Re: Amazon Prime Video/Widevine on Arm64.Theo
 `* Re: Amazon Prime Video/Widevine on Arm64.Pancho
  `* Re: Amazon Prime Video/Widevine on Arm64.Jim Diamond
   `* Re: Amazon Prime Video/Widevine on Arm64.Pancho
    `- Re: Amazon Prime Video/Widevine on Arm64.Jim Diamond

1
Re: Amazon Prime Video/Widevine on Arm64.

<tp1lq3$ctf$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6180&group=comp.sys.raspberry-pi#6180

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!vPF30hC8X1PMUa8x11uILw.user.46.165.242.91.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Amazon Prime Video/Widevine on Arm64.
Date: Tue, 3 Jan 2023 16:40:35 +0000
Organization: Aioe.org NNTP Server
Message-ID: <tp1lq3$ctf$1@gioia.aioe.org>
References: <tot831$epn$1@gioia.aioe.org> <touff1$1o8on$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="13231"; posting-host="vPF30hC8X1PMUa8x11uILw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Pancho - Tue, 3 Jan 2023 16:40 UTC

On 1/2/23 11:33, A. Dumas wrote:
> Pancho <Pancho.Jones@proton.me> wrote:
>> The main showstopper, so far, is that I watch Amazon Prime Video, which
>> requires Widevine DRM software. Widevine doesn't appear to work on
>> AArch64 Linux,
>
> This is also a problem on the 64-bit version of RasPiOS which has been out
> of beta for almost a year now. The RPi people don't care and point to
> Google. Their solution is to install the 32-bit version of Chromium. But
> they can't be installed next to each other, it's either/or, and it will
> probably lead to incompatibilities. See
> https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/ and the comments.

Thanks, I hadn't realized that you could install 32 bit apps on a 64 bit
linux OS.

32bit Chromium-browser installs and runs, as a snap. AIUI, this implies
32 bit userland.

I managed to download two versions of libwidevinecdm.so.

The Raspbian repo apt install:

$ sudo apt install chromium-browser:armhf libwidevinecdm0

puts libwidevinecdm.so in:

/opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so

and I got another version from a chrome OS install and put it in:

$HOME/snap/chromium/current/.local/lib/WidevineCdm/libwidevinecdm.so

However, Chromium didn't load either libwidevinecdm.so. DRM wasn't enabled.

I get the helpful log message from Chromium

$ chromium -enable-logging=stderr --v=1 > chrome.log 2>&1

--
cdm_registration.cc(189)] Widevine enabled but no library found
--

But it doesn't tell me where it was looking!

I give up!

Re: Amazon Prime Video/Widevine on Arm64.

<nxk*L1r7y@news.chiark.greenend.org.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6181&group=comp.sys.raspberry-pi#6181

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+news@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Amazon Prime Video/Widevine on Arm64.
Date: 03 Jan 2023 18:36:05 +0000 (GMT)
Organization: University of Cambridge, England
Message-ID: <nxk*L1r7y@news.chiark.greenend.org.uk>
References: <tot831$epn$1@gioia.aioe.org> <touff1$1o8on$1@dont-email.me> <tp1lq3$ctf$1@gioia.aioe.org>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="24936"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-15-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Tue, 3 Jan 2023 18:36 UTC

Pancho <Pancho.Jones@proton.me> wrote:
> The Raspbian repo apt install:
>
> $ sudo apt install chromium-browser:armhf libwidevinecdm0
>
> puts libwidevinecdm.so in:
>
> /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so
>
> and I got another version from a chrome OS install and put it in:
>
> $HOME/snap/chromium/current/.local/lib/WidevineCdm/libwidevinecdm.so
>
>
> However, Chromium didn't load either libwidevinecdm.so. DRM wasn't enabled.
>
> I get the helpful log message from Chromium
>
> $ chromium -enable-logging=stderr --v=1 > chrome.log 2>&1
>
> --
> cdm_registration.cc(189)] Widevine enabled but no library found
> --
>
> But it doesn't tell me where it was looking!
>
> I give up!

If I look for shared libraries in x86_64 Ubuntu 22.04's chromium snap, I
find them in:

$ find /snap/chromium/2254/ -name "*.so*" | xargs -n1 dirname | sort | uniq
/snap/chromium/2254/usr/lib/chromium-browser
/snap/chromium/2254/usr/lib/man-db
/snap/chromium/2254/usr/lib/x86_64-linux-gnu
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/dri
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/nss
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/pipewire-0.3
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/audioconvert
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/audiomixer
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/audiotestsrc
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/control
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/support
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/v4l2
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/videoconvert
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/videotestsrc
/snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/volume

I would guess /snap/chromium/2254/usr/lib/chromium-browser/ is the most
plausible place to put it.

But there's two problems. The first is that snap upgrades apps constantly,
so you can't put the library in there and expect it to last very long,
because in a short while a new version of the snap will be released and
we'll move to 2255 or whatever.

The other problem is this:

$ mount | grep chrom
/var/lib/snapd/snaps/chromium_2254.snap on /snap/chromium/2254 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
/var/lib/snapd/snaps/chromium_2238.snap on /snap/chromium/2238 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)

ie the /snap/chromium/NNNN isn't a real directory, it's a read-only squashfs
filesystem. So you can't write the file in there anyway. The only way I
can think to resolve this is via an overlayfs on top of the squashfs mount,
but I'm not sure snap is going to be happy about that. And you'd still need
to remount it every time the snap is updated.

Another thought is to run the chromium binary with an LD_PRELOAD hack:

LD_PRELOAD=/opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so /snap/bin/chromium

which I think has a better chance of working and should persist over
updates. If it works, perhaps you could make it into a script called
chromium?

Theo

Re: Amazon Prime Video/Widevine on Arm64.

<tp2lag$190t$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6182&group=comp.sys.raspberry-pi#6182

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!vPF30hC8X1PMUa8x11uILw.user.46.165.242.91.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Amazon Prime Video/Widevine on Arm64.
Date: Wed, 4 Jan 2023 01:38:24 +0000
Organization: Aioe.org NNTP Server
Message-ID: <tp2lag$190t$1@gioia.aioe.org>
References: <tot831$epn$1@gioia.aioe.org> <touff1$1o8on$1@dont-email.me>
<tp1lq3$ctf$1@gioia.aioe.org> <nxk*L1r7y@news.chiark.greenend.org.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="42013"; posting-host="vPF30hC8X1PMUa8x11uILw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Pancho - Wed, 4 Jan 2023 01:38 UTC

On 1/3/23 18:36, Theo wrote:
> Pancho <Pancho.Jones@proton.me> wrote:
>> The Raspbian repo apt install:
>>
>> $ sudo apt install chromium-browser:armhf libwidevinecdm0
>>
>> puts libwidevinecdm.so in:
>>
>> /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so
>>
>> and I got another version from a chrome OS install and put it in:
>>
>> $HOME/snap/chromium/current/.local/lib/WidevineCdm/libwidevinecdm.so
>>
>>
>> However, Chromium didn't load either libwidevinecdm.so. DRM wasn't enabled.
>>
>> I get the helpful log message from Chromium
>>
>> $ chromium -enable-logging=stderr --v=1 > chrome.log 2>&1
>>
>> --
>> cdm_registration.cc(189)] Widevine enabled but no library found
>> --
>>
>> But it doesn't tell me where it was looking!
>>
>> I give up!
>
> If I look for shared libraries in x86_64 Ubuntu 22.04's chromium snap, I
> find them in:
>
> $ find /snap/chromium/2254/ -name "*.so*" | xargs -n1 dirname | sort | uniq
> /snap/chromium/2254/usr/lib/chromium-browser
> /snap/chromium/2254/usr/lib/man-db
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/dri
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/nss
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/pipewire-0.3
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/audioconvert
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/audiomixer
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/audiotestsrc
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/control
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/support
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/v4l2
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/videoconvert
> /snap/chromium/2254/usr/lib/x86_64-linux-gnu/spa-0.2/videotestsrc
> /snap/chromium/2254/usr/lib/x86_64$HOME/snap/chromium/2254-linux-gnu/spa-0.2/volume
>
> I would guess /snap/chromium/2254/usr/lib/chromium-browser/ is the most
> plausible place to put it.
>
> But there's two problems. The first is that snap upgrades apps constantly,
> so you can't put the library in there and expect it to last very long,
> because in a short while a new version of the snap will be released and
> we'll move to 2255 or whatever.
>

That's a bit odd. $HOME/snap/chromium/current is a symlink to
$HOME/snap/chromium/2254. Maybe upgrades will automatically copy user
stuff under $HOME/snap/chromium/2254 to the new version.

> The other problem is this:
>
> $ mount | grep chrom
> /var/lib/snapd/snaps/chromium_2254.snap on /snap/chromium/2254 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
> /var/lib/snapd/snaps/chromium_2238.snap on /snap/chromium/2238 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
>
> ie the /snap/chromium/NNNN isn't a real directory, it's a read-only squashfs
> filesystem. So you can't write the file in there anyway. The only way I
> can think to resolve this is via an overlayfs on top of the squashfs mount,
> but I'm not sure snap is going to be happy about that. And you'd still need
> to remount it every time the snap is updated.
>

Firstly, I will preface the following comments with the caveat that I
don't have a clue what I'm talking about... This is the first time I
have ever used a snap, and I know little of Chromium.

I assume snap file system overlays (and squashfs) are conceptually a
list of locations to find a file, combined with something like copy on
write of a shared file.

Independently of that, I also assume Chromium allows libwidevinecdm.so
to be loaded from a machine wide location, traditionally under a folder
like /usr/lib, but also from a user specific override folder somewhere
under $HOME.

So my guess is that snap gives a writeable overlay user override area
under $HOME/snap/chromium/current/... I just don't have a clue where.

> Another thought is to run the chromium binary with an LD_PRELOAD hack:
>
> LD_PRELOAD=/opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so /snap/bin/chromium
>
It didn't work. /snap/bin/chromium is a symlink to /usr/bin/snap which
is 64-bit elf. So the LD_PRELOAD of a 32 bit file failed. Presumably,
/usr/bin/snap forks a 32 bit process based on arg[0].

> which I think has a better chance of working and should persist over
> updates. If it works, perhaps you could make it into a script called
> chromium?
>

This is very annoying because this machine is so close to being good.
The only other real showstopper is pulse audio and the bluetooth
(dongle) falling over.

The actual video (1920x1080) and general performance is brilliant.

Re: Amazon Prime Video/Widevine on Arm64.

<slrntreh1u.qbo.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6183&group=comp.sys.raspberry-pi#6183

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Amazon Prime Video/Widevine on Arm64.
Date: Thu, 5 Jan 2023 17:42:22 -0400
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <slrntreh1u.qbo.JimDiamond@x360.localdomain>
References: <tot831$epn$1@gioia.aioe.org> <touff1$1o8on$1@dont-email.me>
<tp1lq3$ctf$1@gioia.aioe.org> <nxk*L1r7y@news.chiark.greenend.org.uk>
<tp2lag$190t$1@gioia.aioe.org>
Injection-Info: reader01.eternal-september.org; posting-host="2f9952e756857de616baaa47b3c46730";
logging-data="3079324"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199FMxsTrvW1xKrJl8QZcjv"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:YlFpvbaHXMZkhQX67LUdGSZhslc=
 by: Jim Diamond - Thu, 5 Jan 2023 21:42 UTC

On 2023-01-03 at 21:38 AST, Pancho <Pancho.Jones@proton.me> wrote:
> On 1/3/23 18:36, Theo wrote:
>> Pancho <Pancho.Jones@proton.me> wrote:
>>> The Raspbian repo apt install:
>>>
>>> $ sudo apt install chromium-browser:armhf libwidevinecdm0
>>>
>>> puts libwidevinecdm.so in:
>>>
>>> /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so
>>>
>>> and I got another version from a chrome OS install and put it in:
>>>
>>> $HOME/snap/chromium/current/.local/lib/WidevineCdm/libwidevinecdm.so
>>>
>>>
>>> However, Chromium didn't load either libwidevinecdm.so. DRM wasn't enabled.
>>>

I recently put 64-bit Raspberry Pi OS on an RPi4 4 GB system.

Unfortunately I don't have at hand to examine closely. For what it's
worth...

I then installed the 32 bit version of chromium. I *did not* use the
snap, I installed it with (IIRC) the same command as you wrote above
(which put the library in
/opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so, I believe).

My chromium happily uses the 32-bit version of libwidevine installed
via apt. I don't recall doing anything else special to get it
working. Have you tried the usual debian repeat the following
apt update
apt upgrade
and then maybe either
depmod -a
or even a good old M$ "Three R"s and reboot?

If you try all this and remain stuck, follow up and I'll go get my
64-bit Pi and have a look.

Jim

Re: Amazon Prime Video/Widevine on Arm64.

<tp9m57$37jdu$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6184&group=comp.sys.raspberry-pi#6184

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Amazon Prime Video/Widevine on Arm64.
Date: Fri, 6 Jan 2023 17:35:35 +0000
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <tp9m57$37jdu$1@dont-email.me>
References: <tot831$epn$1@gioia.aioe.org> <touff1$1o8on$1@dont-email.me>
<tp1lq3$ctf$1@gioia.aioe.org> <nxk*L1r7y@news.chiark.greenend.org.uk>
<tp2lag$190t$1@gioia.aioe.org> <slrntreh1u.qbo.JimDiamond@x360.localdomain>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 6 Jan 2023 17:35:35 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="993970e291f9d8b5ae5cdd070d19b60f";
logging-data="3395006"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19q3JVH9e5N6AfoYcNflJAWGaJW9Dws6UU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.0
Cancel-Lock: sha1:+kkebEsr0uiXi38P5dIdpIjZCtA=
Content-Language: en-GB
In-Reply-To: <slrntreh1u.qbo.JimDiamond@x360.localdomain>
 by: Pancho - Fri, 6 Jan 2023 17:35 UTC

On 05/01/2023 21:42, Jim Diamond wrote:
> On 2023-01-03 at 21:38 AST, Pancho <Pancho.Jones@proton.me> wrote:
>> On 1/3/23 18:36, Theo wrote:
>>> Pancho <Pancho.Jones@proton.me> wrote:
>>>> The Raspbian repo apt install:
>>>>
>>>> $ sudo apt install chromium-browser:armhf libwidevinecdm0
>>>>
>>>> puts libwidevinecdm.so in:
>>>>
>>>> /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so
>>>>
>>>> and I got another version from a chrome OS install and put it in:
>>>>
>>>> $HOME/snap/chromium/current/.local/lib/WidevineCdm/libwidevinecdm.so
>>>>
>>>>
>>>> However, Chromium didn't load either libwidevinecdm.so. DRM wasn't enabled.
>>>>
>
> I recently put 64-bit Raspberry Pi OS on an RPi4 4 GB system.
>
> Unfortunately I don't have at hand to examine closely. For what it's
> worth...
>
> I then installed the 32 bit version of chromium. I *did not* use the
> snap, I installed it with (IIRC) the same command as you wrote above
> (which put the library in
> /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so, I believe).
>
> My chromium happily uses the 32-bit version of libwidevine installed
> via apt. I don't recall doing anything else special to get it
> working. Have you tried the usual debian repeat the following
> apt update
> apt upgrade
> and then maybe either
> depmod -a
> or even a good old M$ "Three R"s and reboot?
>
> If you try all this and remain stuck, follow up and I'll go get my
> 64-bit Pi and have a look.
>
> Jim
Thanks Jim.

First point, the current oPi Ubuntu "apt install chromium-browser" uses
snap under the hood. On my oPi Ubuntu system, apt says 64bit, but is
installing a 32bit snap Chromium.

Secondly, the apt libwidevinecdm0 apt install is rPi specific, from an
rPi repo. Maybe the rPi install of Chromium is tailored to it. I do have
a rPi 4 which I could test on, if I get desperate enough. Currently, I'm
having other problems with the oPi, which may mean the oPi isn't
currently a viable HTPC even if I could view Amazon Prime Video.

I did a Chromium install on an Ubuntu Intel VM. I can see that it
installs libwidevinecdm.so + related files into a folder structure
under: $HOME/snap/chromium/common/chromium/WidevineCdm. I tried to
duplicate this on the oPi, but Chromium didn't load files as expected.

I don't understand the relevance of depmod. I did think about some
utility tool to build a linkage dependency tree for libwidevinecdm.so,
but I have used strace to see that oPi Chromium isn't even attempting to
open libwidevinecdm.so, so a missing dependency isn't the problem.

Re: Amazon Prime Video/Widevine on Arm64.

<slrntrh68e.2f2.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6185&group=comp.sys.raspberry-pi#6185

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Amazon Prime Video/Widevine on Arm64.
Date: Fri, 6 Jan 2023 17:56:24 -0400
Organization: A noiseless patient Spider
Lines: 136
Message-ID: <slrntrh68e.2f2.JimDiamond@x360.localdomain>
References: <tot831$epn$1@gioia.aioe.org> <touff1$1o8on$1@dont-email.me>
<tp1lq3$ctf$1@gioia.aioe.org> <nxk*L1r7y@news.chiark.greenend.org.uk>
<tp2lag$190t$1@gioia.aioe.org> <slrntreh1u.qbo.JimDiamond@x360.localdomain>
<tp9m57$37jdu$1@dont-email.me>
Injection-Info: reader01.eternal-september.org; posting-host="fd3efdba90a8c729a80fda8357ba183d";
logging-data="3444301"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FjuuaIdgpLqKuhOTvFbSV"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:0wFqK3mq7I4wcdsn9c9QLjo82tw=
 by: Jim Diamond - Fri, 6 Jan 2023 21:56 UTC

On 2023-01-06 at 13:35 AST, Pancho <Pancho.Jones@proton.me> wrote:
> On 05/01/2023 21:42, Jim Diamond wrote:
>> On 2023-01-03 at 21:38 AST, Pancho <Pancho.Jones@proton.me> wrote:
>>> On 1/3/23 18:36, Theo wrote:
>>>> Pancho <Pancho.Jones@proton.me> wrote:
>>>>> The Raspbian repo apt install:
>>>>>
>>>>> $ sudo apt install chromium-browser:armhf libwidevinecdm0
>>>>>
>>>>> puts libwidevinecdm.so in:
>>>>>
>>>>> /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so
>>>>>
>>>>> and I got another version from a chrome OS install and put it in:
>>>>>
>>>>> $HOME/snap/chromium/current/.local/lib/WidevineCdm/libwidevinecdm.so
>>>>>
>>>>>
>>>>> However, Chromium didn't load either libwidevinecdm.so. DRM wasn't enabled.
>>>>>
>>
>> I recently put 64-bit Raspberry Pi OS on an RPi4 4 GB system.
>>
>> Unfortunately I don't have at hand to examine closely. For what it's
>> worth...
>>
>> I then installed the 32 bit version of chromium. I *did not* use the
>> snap, I installed it with (IIRC) the same command as you wrote above
>> (which put the library in
>> /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so, I believe).
>>
>> My chromium happily uses the 32-bit version of libwidevine installed
>> via apt. I don't recall doing anything else special to get it
>> working. Have you tried the usual debian repeat the following
>> apt update
>> apt upgrade
>> and then maybe either
>> depmod -a
>> or even a good old M$ "Three R"s and reboot?
>>
>> If you try all this and remain stuck, follow up and I'll go get my
>> 64-bit Pi and have a look.
>>
>> Jim
> Thanks Jim.
>
> First point, the current oPi Ubuntu "apt install chromium-browser" uses
> snap under the hood.

My bad! I missed the "Ubuntu" in there somewhere. (In fact, I
dislike snaps enough that I am looking for another distro for my
wife's laptop, which has been running Ubuntu for a long, long time.)

> On my oPi Ubuntu system, apt says 64bit, but is installing a 32bit
> snap Chromium.
>
> Secondly, the apt libwidevinecdm0 apt install is rPi specific, from an
> rPi repo. Maybe the rPi install of Chromium is tailored to it.

Quite possibly.

Is it possible to install chromium from the raspbian repos on your
Ubuntu system? (And, I wonder, if so, would it run?)

> I do have a rPi 4 which I could test on, if I get desperate enough.
> Currently, I'm having other problems with the oPi, which may mean
> the oPi isn't currently a viable HTPC even if I could view Amazon
> Prime Video.

Too bad.

> I did a Chromium install on an Ubuntu Intel VM. I can see that it
> installs libwidevinecdm.so + related files into a folder structure
> under: $HOME/snap/chromium/common/chromium/WidevineCdm. I tried to
> duplicate this on the oPi, but Chromium didn't load files as expected.

I don't know whether this will provide any useful information to you
or not, but when I do
strings /usr/lib/chromium-browser/chromium-browser-v7
on a 32-bit raspberry pi OS system, I get
useWideViewport
Media.EME.Widevine.VideoCapability.HasEmptyRobustness
application_x-ppapi-widevine-cdm
Widevine enabled but no library found
wideViewportQuirkEnabled
../../chrome/browser/component_updater/widevine_cdm_component_installer.cc
Widevine CDM v1.0
Failed to update Widevine CDM hint path.
Installed Widevine CDM component is incompatible.
WideView Technology Inc.
Registering component updated Widevine
Registering bundled Widevine
Updating hint file with Widevine CDM
Widevine Content Decryption Module
com.widevine.alpha
com.widevine.alpha
Widevine
WidevineCdm
Widevine Content Decryption Module
widevinecdm
widevinecdm
WidevineCdm
latest-component-updated-widevine-cdm
.@com.widevine.alpha
com.widevine.alpha
com.widevine.alpha
com.widevine.alpha

If you run "strings" on the chromium browser you installed and grep
the output as above, do you get anything? This might indicate whether
or not your chromium has been compiled to know about widevine,

> I don't understand the relevance of depmod.

None whatsoever. (Mea culpa!) I meant to type "ldconfig", just in
case the installation of widevine via apt didn't cache the location of
the library. And this is just in case your one of your system's
/etc/ld.so.conf files points at
/opt/WidevineCdm/_platform_specific/linux_arm/ (admittedly a long
shot) and your chromium only looks there, rather than under $HOME
(also a long shot).

> I did think about some utility tool to build a linkage dependency
> tree for libwidevinecdm.so, but I have used strace to see that oPi
> Chromium isn't even attempting to open libwidevinecdm.so, so a
> missing dependency isn't the problem.

Indeed!

I doubt I've been much help here, but if you do try to install the
chromium from the rPi repo, or do that strings|grep command, I'd be
interested in knowing what you discover.

Good luck!

Jim

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor