Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DRM-options not available in Firefox on Pi 5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
nameiwillforget
n00b
n00b


Joined: 07 May 2024
Posts: 37

PostPosted: Mon Jul 22, 2024 7:56 pm    Post subject: DRM-options not available in Firefox on Pi 5 Reply with quote

I'd like to replace the cable subscription of my father that he uses to watch Netflix over with a Raspberry Pi 5 he can use to watch through Firefox, on which I installed Gentoo arm64. But when I use Firefox to access a Netflix video, I get an error message that tells me playing the video is impossible. I get the same error message when I try this on my desktop, but there, FF provides an option to enable DRM-protected content, which does not appear on the PI5 FF. I found https://wiki.gentoo.org/wiki/Streaming_DRM_protected_content and looked at the steps there, but when I go into the FF settings, I can't find the option to enable DRM. I tried to emerge firefox-bin knowing that it would fail, to see what would happen, and it gave me an error message that CONFIG_SECCOMP was not set and playing DRM-protected content would be impossible, so I emerged genkernel to look at the kernel config, but found that CONFIG_SECCOMP was set. I have a theory though: while installing most packages I overlooked that the symlink to the Raspberry Pi kernel, which I had emerged during the system setup, was not set, so portage must have used the running kernel, but I did the system configuration through a QEMU setup, so I'm assuming it used the kernel of the host? Which would have been the standard amd64 Gentoo kernel, which I'm sure has seccomp enabled as well, but maybe there was some mixup? In any case, I tried re-emerging FF on the Pi5 itself, with the symlink to the kernel set, and I did not get any error messages, or complaints about seccomp, but the option to enable DRM is still not in the FF settings. So I'm running out of guesses. Maybe some package that FF depends on was compiled thinking that seccomp was unset? But how can I find out which one, or should I just recompile everything?
Back to top
View user's profile Send private message
nameiwillforget
n00b
n00b


Joined: 07 May 2024
Posts: 37

PostPosted: Thu Jul 25, 2024 6:29 pm    Post subject: Reply with quote

So, I've re-compiled every program I had on my Pi and the option to enable DRM content is still not in the settings of Firefox, but I also got no error when I re-emerged it. I'm running out of ideas. I can install Chromium, but that's about all I can think of.

Maybe there is some group my family user should be in to run DRM? I'll try to start FF as root to see.

Edit: I just found this: https://discussion.fedoraproject.org/t/firefox-and-widevine-aarch64-support/86797

Might that be the same problem as in my situation?

Edit2: I've looked into emerging Chromium or Vivaldi but in both cases the '(-widevine)'USE flag is bracketed out.
Back to top
View user's profile Send private message
M95D
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2020
Posts: 94

PostPosted: Fri Jul 26, 2024 12:09 pm    Post subject: Re: DRM-options not available in Firefox on Pi 5 Reply with quote

nameiwillforget wrote:
[...] when I use Firefox to access a Netflix video, I get an error message that tells me playing the video is impossible. I get the same error message when I try this on my desktop, but there, FF provides an option to enable DRM-protected content, which does not appear on the PI5 FF. I found https://wiki.gentoo.org/wiki/Streaming_DRM_protected_content and looked at the steps there, but when I go into the FF settings, I can't find the option to enable DRM.

That's probably because FF was not built with gmp-autoupdate USE flag. You could probably look in about:buildconfig page - I don't have a linux firefox available right now to check.
nameiwillforget wrote:
I tried to emerge firefox-bin knowing that it would fail, to see what would happen, and it gave me an error message that CONFIG_SECCOMP was not set and playing DRM-protected content would be impossible, so I emerged genkernel to look at the kernel config, but found that CONFIG_SECCOMP was set.

That's probably the wrong way to check the installed kernel. You should check /proc/config.gz.

First, install a kernel with SECCOMP and check by looking in the /proc/config.gz (zcat /proc/config.gz | grep SECCOMP).
I don't know if firefox-bin has gmp-autoupdate enabled or not.
If you decide to emerge firefox (non-bin), enable the gmp-autoupdate USE flag. openh264 is probably needed too. It will take a very long time, use a lot of memory and a lot of storage - don't do it unless you're sure that firefox-bin doesn't have gmp.
Back to top
View user's profile Send private message
nameiwillforget
n00b
n00b


Joined: 07 May 2024
Posts: 37

PostPosted: Mon Jul 29, 2024 1:13 pm    Post subject: Reply with quote

FF was compiled with gmp-autoupdate, but not with openh264. I've re-compiled it with openh264, but the problem persists. The configure options are
Code:

--enable-application=browser --host=aarch64-unknown-linux-gnu --target=aarch64-unknown-linux-gnu --update-channel=esr MOZBUILD_STATE_PATH=/var/tmp/portage/www-client/firefox-115.13.0/work/firefox_build --disable-tests MOZ_PGO=1 --enable-optimize=-O2 --with-toolchain-prefix=aarch64-unknown-linux-gnu- CC=aarch64-unknown-linux-gnu-clang-17 LD=aarch64-unknown-linux-gnu-ld CXX=aarch64-unknown-linux-gnu-clang++-17 HOST_CC=aarch64-unknown-linux-gnu-clang-17 HOST_CXX=aarch64-unknown-linux-gnu-clang++-17 --enable-linker=lld --disable-debug-symbols 'AS=aarch64-unknown-linux-gnu-clang-17 -c' AR=llvm-ar NM=llvm-nm PKG_CONFIG=aarch64-unknown-linux-gnu-pkg-config LLVM_PROFDATA=llvm-profdata --enable-lto=cross --disable-cargo-incremental --with-libclang-path=/usr/lib/llvm/17/lib64 --enable-system-ffi --enable-rust-simd --with-system-icu --with-system-graphite2 --with-system-harfbuzz --disable-wmf --with-system-av1 --disable-real-time-tracing --with-mozilla-api-keyfile=/var/tmp/portage/www-client/firefox-115.13.0/work/firefox-115.13.0/api-mozilla.key --with-google-location-service-api-keyfile=/var/tmp/portage/www-client/firefox-115.13.0/work/firefox-115.13.0/api-location.key --with-google-safebrowsing-api-keyfile=/var/tmp/portage/www-client/firefox-115.13.0/work/firefox-115.13.0/api-google.key --with-system-webp --with-unsigned-addon-scopes=app,system --with-system-libvpx --with-system-jpeg --without-wasm-sandboxed-libraries --with-system-nss --disable-updater --with-system-libevent --disable-crashreporter --disable-parental-controls --enable-system-pixman XARGS=/usr/bin/xargs --disable-install-strip --with-system-zlib --enable-official-branding --libdir=/usr/lib64 --prefix=/usr --x-includes=/usr/include --x-libraries=/usr/lib64

I've looked into /proc, but I can't find the file /proc/config.gz. I can't install firefox-bin because there is no build for arm64, I think.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22612

PostPosted: Mon Jul 29, 2024 3:01 pm    Post subject: Reply with quote

/proc/config.gz is an optional, but highly recommended, kernel feature, gated behind CONFIG_IKCONFIG_PROC. If you don't have it, you can also supply the .config that was used to build the kernel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum