Firefox and widevine aarch64 support

Working in Firefox for Disney+ does not work in Chromium

Let me know what diags/logs you want!

I installed this extension for Chromium

and used the same UA string that I listed above and Netflix works fine.
I don’t have a Disney+ account , so I’m not able test that out.

Just testing here at the moment in Chromium

Does not even detect Widevine :frowning:

Works OK in Firefox

Did you install Chromium after running the winevine-installer?
Do you see this file on your system?

[root@m1 ~]# ll /usr/lib64/chromium-browser/WidevineCdm
lrwxrwxrwx. 1 root root 29 Nov 13 01:00 /usr/lib64/chromium-browser/WidevineCdm -> /var/lib/widevine/WidevineCdm

Chromium was already installed. Yes those files exist :blush:

Ok, can you run the following command:

strace chromium-browser 2>&1 | tee log.file

then navigate to DRM Secure Stream Test using HTML5 Video Player | Bitmovin
try pressing play, then close the browser

Then , can you post the contents of this command?
cat log.file | grep widevine
ie

[leif.liddy@m1 ~]$ cat log.file | grep -i widevine
faccessat(AT_FDCWD, "/home/leif.liddy/.config/chromium/WidevineCdm", F_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so", F_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/usr/lib64/chromium-browser/WidevineCdm/_platform_specific/linux_arm64/libwidevinecdm.so", F_OK) = 0
openat(AT_FDCWD, "/usr/lib64/chromium-browser/WidevineCdm/manifest.json", O_RDONLY|O_CLOEXEC) = 47

Also, can you post of the output of these commands as well?

md5sum /var/lib/widevine/libwidevinecdm.so
md5sum /var/lib/widevine/manifest.json

ie

[leif.liddy@m1 ~]$ md5sum /var/lib/widevine/libwidevinecdm.so
c136f452acde6130e2f26900b7e14872  /var/lib/widevine/libwidevinecdm.so

[leif.liddy@m1 ~]$ md5sum /var/lib/widevine/manifest.json 
64795ca4a71a4b5c12ffcbb2e1d8ed5a  /var/lib/widevine/manifest.json

cat log.file | grep widevine prints nothing. Here is the full log: zsh: strace: command not found... * Waiting in queue... The following pack - Pastebin.com

md5 sums below:

➜  /tmp md5sum /var/lib/widevine/libwidevinecdm.so
c136f452acde6130e2f26900b7e14872  /var/lib/widevine/libwidevinecdm.so
➜  /tmp md5sum /var/lib/widevine/manifest.json
64795ca4a71a4b5c12ffcbb2e1d8ed5a  /var/lib/widevine/manifest.json
➜  /tmp 

I don’t understand how there’s only about 4400 lines in that log. As a test I created a new user (via the command line – I never logged directly into the system with that account – so no desktop was ever created.
Then I remoted into the m1 mac via ssh -X -l user...etc
Then I ran the following cmd: (keep in mind that the entire profile is completely vanilla). I never touched chromium before this, changed the UA string or anything…it’s completely stock
strace chromium-browser 2>&1 https://bitmovin.com/demos/drm | tee user.log
…and then I closed the browser the exact moment it displayed on my screen.

The thing is…there are 26000 lines from that log.

[user@m1 ~]$ wc -l user.log 
26250 user.log

…and it found the widevine directory without issue

[user@m1 ~]$ cat user.log  | grep -i widevine
faccessat(AT_FDCWD, "/home/user/.config/chromium/WidevineCdm", F_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so", F_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/usr/lib64/chromium-browser/WidevineCdm/_platform_specific/linux_arm64/libwidevinecdm.so", F_OK) = 0
openat(AT_FDCWD, "/usr/lib64/chromium-browser/WidevineCdm/manifest.json", O_RDONLY|O_CLOEXEC) = 45

I’m running the cinnamon desktop with Xorg on my host system (that I’m remoting in from).
Not sure if that make a difference or not.
What desktop and display manager are you running?
And what hardware are you running this on?
Actually could you just post the output of asahi-diagnose somewhere – and I’ll try and replicate your setup as much as possible.

I just don’t understand how your log could only be 4400 lines long…
Make sure to close all other running Chromium browsers before running strace
Also, could you please post the following output as well? (as I’m not seeing a version number in your output)

[user@m1 ~]$ chromium-browser --version
Chromium 119.0.6045.123 Fedora Project

Also, you might consider joining this channel

I’ve been discussing your issue there – and there are some top-tier devs lingering about that can likely provide better insight then I can .

1 Like

Here it is:

➜  /tmp  cat log.file | grep widevine
faccessat(AT_FDCWD, "/home/user/.config/chromium/WidevineCdm/_platform_specific/linux_arm64/libwidevinecdm.so", F_OK) = -1 ENOENT (No such file or directory)

I made a boo boo when I ran strace, you were right :slight_smile:

I had a PWA open that was using Chromium. Closed it all, ran it again, got the above in the grep

➜  /tmp chromium-browser --version
Chromium 119.0.6045.123 Fedora Project

FWIW, running Gnome on Wayland, Fedora 38

You want grep -i widevine, but I bet I know what the problem is. /home/user/.config/chromium/WidevineCdm/ probably exists. Delete it. If that exists, it won’t use system widevine.

Did you previously try to use any other method of installing widevine, like the old legacy stuff from Arch?

1 Like

I was just doing what i was told :smiley: -i wasn’t in the original request but that would make sense.

Correct that directory does exist and yes I did try to cobble some stuff together previously which I thought I had removed but obviously not fully! :smiley:

Anyway that’s fixed it, I had deleted that directory before seeing your post!

I’m encountering the same problem with flatpak chromium, but deleting WidevineCdm in var/app… doesn’t solve the problem. Maybe i need to give some specific permission to the flatpak?

I’d say just use chromium from the fedora repos. Flatpak isolates apps, and while this is good for security, won’t work with the widevine script.

i cannot reproduce drm content on Firefox since few weeks (i’m trying spotify). I have installed widewine-installer, launched the script with sudo and reboot but still not able to play. In chromium it works

Visit https://bitmovin.com/demos/drm and see if widevine is supported in Chromium and Firefox, or just Chromium.

No DR on Firefox, using Widewine on Chromium

I had that happen to me out of nowhere, and some combination of uninstalls and rerunning the script many times eventually fixed it, but I didn’t know exactly what caused it to start working again. One thing to look into is removing the widevine from firefox’s files.

Edit: Profiles - Where Firefox stores your bookmarks, passwords and other user data | Firefox Help
Your profile directory > gmp > Linux_aarch64-gcc3 contains some widevine files.

1 Like

No luck. I completely deleted my firefox profile, re-ran widewine-installer but still No DR

It works if i launch it from terminal or in a gnome session.
It doesn’t work if launched from kde plasma (i checked the .desktop file and it calls firefox without options)

It seems that launching apps from gnome wayland or plasma wayland have different results (Chromium in gnome has the correct cursor size, in plasma is smaller than any other apps). Perhaps i screwed up kde session :slight_smile:

EDIT: solved launching Plasma (Wayland) from SDDM instead of GDM

1 Like