Botspot / pi-apps

Raspberry Pi App Store for Open Source Projects
GNU General Public License v3.0
1.98k stars 203 forks source link

Chromium don't work with netflix, spotify ecc #1144

Closed chourmoge closed 2 years ago

chourmoge commented 2 years ago

Thanks for sharing this important app It is a necessary app for those who are not as good as me in computer science. Unfortunately the chromiun app doesn't allow me to view amazon prime video, netflix, spotify and raiplay. Is there a solution? Thank you very much

cycool29 commented 2 years ago

I got the same issue in Spotify, in Raspbian bullseye.

image

When I go to https://bitmovin.com/demos/drm, it shows me:

image

chourmoge commented 2 years ago

it is same for me

Itai-Nelken commented 2 years ago

DRM broke recently, rpf said it will be fixed in bullseye.

chourmoge commented 2 years ago

thank you for notice

PGSCOM commented 2 years ago

You try to install Chromium widevine? You can install it in pi apps

chourmoge commented 2 years ago

You try to install Chromium widevine? You can install it in pi apps

Yes, i did, but do not work for DRM's problems.

chourmoge commented 2 years ago

hello, with installation of Raspberry Pi OS (Legacy) and subsequent installation of pi-apps, and consequent installation of Chromium widevine I get error: File. invalid desktop entry: "/home/pi/.local/share/applications/widevine-chromium.desktop". There is a solution? The goal is to be able to take advantage of Netflix, Amazon video, Raiplay. Thanks in advance for any solutions

Itai-Nelken commented 2 years ago

Can you send the output of

cat /home/pi/.local/share/applications/widevine-chromium.desktop

please?

chourmoge commented 2 years ago

hello and thanks in advance for your interest Itai-Nelken. The following output is required. Greetings

pi@raspberrypi:~ $ cat /home/pi/.local/share/applications/widevine-chromium.desktop
[Desktop Entry]
Version=1.0
Name=Chromium Widevine
GenericName=Web Browser
Comment=The last several versions of RPi Chromium already use the Chromebook user-agent, so this menu button isn't necessary. But the icon looks too awesome to get rid of! And if you're using a pre-v84 Chromium version, this menu button may still be necessary.
Exec=chromium-browser %U --user-agent="Mozilla/5.0 (X11; CrOS armv7l 12371.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36" %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/pi/pi-apps/apps/Chromium Widevine/icon-64.png
Categories=Network;WebBrowser;
StartupNotify=true
pi@raspberrypi:~ $ 

S.O. Raspberry Pi OS (Legacy) with desktop

cycool29 commented 2 years ago

Try reinstalling it.

chourmoge commented 2 years ago

I uninstalled, rebooted, installed from Pi-apps again Chromium widevine, reboot, but when opening Chromium widevine a window opens with the following content: Invalid desktop entry file: "/home/pi/.local/share/applications/widevine-chromium.desktop". The command suggested by Itai-Nelken gives the following result:

pi@raspberrypi:~ $ cat /home/pi/.local/share/applications/widevine-chromium.desktop [Desktop Entry] Version=1.0 Name=Chromium Widevine GenericName=Web Browser Comment=The last several versions of RPi Chromium already use the Chromebook user-agent, so this menu button isn't necessary. But the icon looks too awesome to get rid of! And if you're using a pre-v84 Chromium version, this menu button may still be necessary. Exec=chromium-browser %U --user-agent="Mozilla/5.0 (X11; CrOS armv7l 12371.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36" %U Terminal=false X-MultipleArgs=false Type=Application Icon=/home/pi/pi-apps/apps/Chromium Widevine/icon-64.png Categories=Network;WebBrowser; StartupNotify=true pi@raspberrypi:~ $ thanks for your interest

Itai-Nelken commented 2 years ago

try running chromium-browser %U --user-agent="Mozilla/5.0 (X11; CrOS armv7l 12371.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"

chourmoge commented 2 years ago

try running chromium-browser %U --user-agent="Mozilla/5.0 (X11; CrOS armv7l 12371.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"

Here is the result

pi@raspberrypi:~ $ chromium-browser %U --user-agent="Mozilla/5.0 (X11; CrOS armv7l 12371.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36" bash: chromium-browser: comando non trovato pi@raspberrypi:~ $

cycool29 commented 2 years ago

You don't have chromium installed. Run sudo apt install chromium-browser and try again.

chourmoge commented 2 years ago

@cycool29 But I use chromium browser and it works, and it is present in the menu. The Chromium widevine icon is also present, but upon opening it presents the window that I indicated in the thread above. So it is possible that although I will try to reinstall the browser shortly as you indicated, the problem is something else. Thanks for the directions

cycool29 commented 2 years ago

What is the output of dpkg -s chromium-browser | grep Status

chourmoge commented 2 years ago

here is the result

pi@raspberrypi:~ $ dpkg -s chromium-browser | grep Status
dpkg-query: il pacchetto "chromium-browser" non è installato e non è disponibile alcuna informazione
Usare "dpkg --info" (= "dpkg-deb --info") per esaminare gli archivi.

pi@raspberrypi:~ $ 

pi@raspberrypi:~ $ "dpkg-deb --info"
bash: dpkg-deb --info: comando non trovato
pi@raspberrypi:~ $ "dpkg --info"
bash: dpkg --info: comando non trovato
pi@raspberrypi:~ $ 

From Pi-apps> Chromium browser> script:

#!/bin/bash
cd $HOME

rm -rf ~/chromium-v84-widevine &>/dev/null

git_clone https://github.com/Botspot/chromium-v84-widevine || error 'Failed to clone chromium-v84-widevine repository!'

echo "[Desktop Entry]
Version=1.0
Name=Chromium Widevine
GenericName=Web Browser
Comment=The last several versions of RPi Chromium already use the Chromebook user-agent, so this menu button isn't necessary. But the icon looks too awesome to get rid of! And if you're using a pre-v84 Chromium version, this menu button may still be necessary.
Exec=chromium-browser %U --user-agent="\""Mozilla/5.0 (X11; CrOS armv7l 12371.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"\"" %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=$(dirname "$0")/icon-64.png
Categories=Network;WebBrowser;
StartupNotify=true" > ~/.local/share/applications/widevine-chromium.desktop
sudo cp -a ~/chromium-v84-widevine/WidevineCdm /opt

rm -rf ~/chromium-v84-widevine

mkdir -p ~/.config/chromium-browser/WidevineCdm
echo "{"\""Path"\"":"\""/opt/WidevineCdm"\""}" 1> ~/.config/chromium-browser/WidevineCdm/latest-component-updated-widevine-cdm
#create old libwidevinecdm.so for older Chromium versions
     #see https://github.com/Botspot/pi-apps/commit/803a7d3cc14d24ddc651af94927823aac1331e7e#diff-d56f6359d240f69e4164425b599d08869574fc013b9e5727951048914db12c5b
sudo wget -O /usr/lib/chromium-browser/libwidevinecdm.so https://raw.githubusercontent.com/Botspot/pi-apps/f5b6c38602e5a8b075dc14d4b68ce02a77f5e745/apps/Chromium%20Media%20Edition/libwidevinecdm.so

if [ ! -z "$(ps aux | grep /usr/lib/chromium-browser | grep -v grep)" ];then
  echo -e "\e[97mFor Chromium Widevine to work, you need to exit all instances of Chromium.\e[39m"
fi
Botspot commented 2 years ago

@chourmoge Perhaps you have chromium installed instead of chromium-browser?

chourmoge commented 2 years ago

Hi, I tried to install via: sudo apt install chromium-browser and spotify free, Netflix and Raiplay seem to work, but Amazon video doesn't. Sorry, but Chromium browser is not installed standard on the S.o. Raspberry? However, I am grateful to you for your availability. Below is the result of the installation

pi@raspberrypi:~ $ sudo apt install chromium-browser
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
  chromium-common chromium-sandbox libjsoncpp1 libminizip1 libre2-5
  libu2f-udev
Usare "sudo apt autoremove" per rimuoverli.
I seguenti pacchetti aggiuntivi saranno inoltre installati:
  chromium-browser-l10n chromium-codecs-ffmpeg-extra
Pacchetti suggeriti:
  webaccounts-chromium-extension unity-chromium-extension adobe-flashplugin
I seguenti pacchetti saranno RIMOSSI:
  chromium
I seguenti pacchetti NUOVI saranno installati:
  chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra
0 aggiornati, 3 installati, 1 da rimuovere e 0 non aggiornati.
È necessario scaricare 124 MB di archivi.
Dopo quest'operazione, verranno occupati 275 MB di spazio su disco.
Continuare? [S/n] s
Scaricamento di:1 http://archive.raspberrypi.org/debian buster/main armhf chromium-codecs-ffmpeg-extra armhf 92.0.4515.98~buster-rpt2 [1.589 kB]
Scaricamento di:2 http://archive.raspberrypi.org/debian buster/main armhf chromium-browser armhf 92.0.4515.98~buster-rpt2 [118 MB]
Scaricamento di:3 http://archive.raspberrypi.org/debian buster/main armhf chromium-browser-l10n all 92.0.4515.98~buster-rpt2 [4.073 kB]
Recuperati 124 MB in 19s (6.586 kB/s)                                          
(Lettura del database... 101810 file e directory attualmente installati.)
Rimozione di chromium (90.0.4430.212-1~deb10u1)...
update-alternatives: viene usato /usr/bin/dillo per fornire /usr/bin/x-www-browser (x-www-browser) in modalità automatica
Selezionato il pacchetto chromium-codecs-ffmpeg-extra non precedentemente selezionato.
(Lettura del database... 101779 file e directory attualmente installati.)
Preparativi per estrarre .../chromium-codecs-ffmpeg-extra_92.0.4515.98~buster-rpt2_armhf.deb...
Estrazione di chromium-codecs-ffmpeg-extra (92.0.4515.98~buster-rpt2)...
Selezionato il pacchetto chromium-browser non precedentemente selezionato.
Preparativi per estrarre .../chromium-browser_92.0.4515.98~buster-rpt2_armhf.deb...
Estrazione di chromium-browser (92.0.4515.98~buster-rpt2)...
Selezionato il pacchetto chromium-browser-l10n non precedentemente selezionato.
Preparativi per estrarre .../chromium-browser-l10n_92.0.4515.98~buster-rpt2_all.deb...
Estrazione di chromium-browser-l10n (92.0.4515.98~buster-rpt2)...
Configurazione di chromium-codecs-ffmpeg-extra (92.0.4515.98~buster-rpt2)...
Configurazione di chromium-browser (92.0.4515.98~buster-rpt2)...
update-alternatives: viene usato /usr/bin/chromium-browser per fornire /usr/bin/x-www-browser (x-www-browser) in modalità automatica
update-alternatives: viene usato /usr/bin/chromium-browser per fornire /usr/bin/gnome-www-browser (gnome-www-browser) in modalità automatica
Configurazione di chromium-browser-l10n (92.0.4515.98~buster-rpt2)...
Elaborazione dei trigger per mime-support (3.62)...
Elaborazione dei trigger per hicolor-icon-theme (0.17-2)...
Elaborazione dei trigger per gnome-menus (3.31.4-3)...
Elaborazione dei trigger per libc-bin (2.28-10+rpt2+rpi1)...
Elaborazione dei trigger per man-db (2.8.5-2)...
Elaborazione dei trigger per desktop-file-utils (0.23-4)...

Grazie ancora, manca ancora Amazon video, ma forse si troverà la soluzione

cycool29 commented 2 years ago

Sorry, but Chromium browser is not installed standard on the S.o. Raspberry?

There are two chromium packages in APT - chromium is built for Debian and chromium-browser is built specifically for Raspbian. chromium-browser should be installed by default in all Raspbian releases.

Hi, I tried to install via: sudo apt install chromium-browser and spotify free, Netflix and Raiplay seem to work, but Amazon video doesn't.

Are there any error messages? (Sorry, I am not an Amazon Video user and I don't know how it will look like.) I just search for a 'test video', and I found this it played smoothly for me.

Can you try to play this video and send a screenshot here if there are any error messages?

Also, can you go to https://bitmovin.com/demos/drm and send a screenshot? Just want to make sure your widevine is working.

chourmoge commented 2 years ago

hi, below what is required. I specify that Spotify is opened by Chromium widevine, but the songs stop after 10 seconds, the video test on Amazon works without problems, and that https://bitmovin.com/demos/drm produces what in the following image Schermata del 2021-12-31 17-15-56

Thank you for your interest, and I wish you a happy new year

chourmoge commented 2 years ago

@Botspot There is not a solution?

chourmoge commented 2 years ago

Good morning everyone. It seems to me that the lack of answers indicates that the problem is complex. I ask for my knowledge if this situation occurs for all those who use Chromium widevine on raspberry pi4 with o.s. Buster legacy. Thanks and greetings

cycool29 commented 2 years ago

What is the problem now? Does the menu entry works?

chourmoge commented 2 years ago

From the menu Chromium widevine open the windows of browser, but do not works the follow sites: amazon music, amazon video, netflix. All problem of permit, i suppose drm that chromium widevine browser does not manage

Kolpixx commented 2 years ago

I also had the same issue here is how i fixed it:

1. Uninstall Chromium Widevine if you have it installed. 2. do sudo apt install chromium-browser 3. Install Chromium Widevine 4. Close all Chrome instances 5. Open Chromium Widevine (the normal chrome menu entry also works for me)

chourmoge commented 2 years ago

hello and thanks for the availability. I followed your instructions, more precisely: "Uninstall Chromium Widevine if you have it installed. "Unistalled from Pi-apps "sudo apt install chromium-browser" executed, currently installed v. 92.0.4515 "Install Chromium Widevine" installed by Pi-apps "Close all Chrome instances and Open Chromium Widevine (the normal chrome menu entry also works for me)" Done and rebooted. Opening Chromium widevine, netflix, amazon video, amazon music does not work. Youtube seems to work instead. I do not understand if it is a widespread problem and in case why Chromium Widevine does not work for me. Thanks for any explanation

Post scriptum: from [https://forums.raspberrypi.com/viewtopic.php?p=1954915&hilit=widevine#p1954915] : Re: Cannot watch Amazon Prime video on Bullseye (Raspberry Pi4)

Sat Jan 01, 2022 11:29 pm Prime video, Disney+, PBS, and Netflix work fine on my PI4-8G with bullseye. (on a wired connection) note: this was a clean start with Bullseye, NOT an upgraded buster.

chromium version: Version 95.0.4638.78 (Official Build) Built on Raspbian , running on Raspbian 11 (32-bit) (not the media edition)...

i do have the widevine library loaded with: sudo apt install libwidevinecdm0 . Is it a possible solution?

Kolpixx commented 2 years ago

ohhh. I was in a Issue where it was about Raspberry piOS Legacy and it had the same Problem and then someone linked to this Issue so i thinked it was about Raspberry piOS Legacy and https://github.com/Botspot/pi-apps/issues/1144#issuecomment-1005623571 actually fixxed it for Raspian 10 (Legacy) but not for Raspian 11 (Bullseye), sorry.

chourmoge commented 2 years ago

sorry, i use raspberry o. s. Legacy buster! I have a hard time understanding what you mean

Kolpixx commented 2 years ago

sorry, i use raspberry o. s. Legacy buster! I have a hard time understanding what you mean

But Debian 11 is bullseye

chromium version: Version 95.0.4638.78 (Official Build) Built on Raspbian , running on Raspbian 11 (32-bit) (not the media edition)...

chourmoge commented 2 years ago

This is a post of: *[https://forums.raspberrypi.com/viewtopic.php?p=1954915&hilit=widevine#p1954915]

Sat Jan 01, 2022 11:29 pm Prime video, Disney+, PBS, and Netflix work fine on my PI4-8G with bullseye. (on a wired connection) note: this was a clean start with Bullseye, NOT an upgraded buster.

chromium version: Version 95.0.4638.78 (Official Build) Built on Raspbian , running on Raspbian 11 (32-bit) (not the media edition)...

i do have the widevine library loaded with: sudo apt install libwidevinecdm0

Only I ask if will work

Kolpixx commented 2 years ago

sudo apt install libwidevinecdm0 actually fixed that issue (https://github.com/Botspot/pi-apps/issues/1108) for me. And amazon Music and Videos also works perfectly with this command.

chourmoge commented 2 years ago

Good Morning. With libwidevinecdm0 for me works : amazon video, spotify, netflix and Raiplay (italian tv), but don't works amazon music.

theofficialgman commented 2 years ago

@Botspot can this issue be closed? I think this is just users misunderstanding that chromium-browser does NOT come with widevineDRM libraries installed by default.

I don't have a pi so can't say, but does the libwidevinecdm0 package from the archive.raspberrypi.org https://archive.raspberrypi.org/debian/pool/main/w/widevine/ (last updated in september) repo work by default with the latest version of chromium-browser?

ryanfortner commented 2 years ago

I don't have a pi so can't say, but does the libwidevinecdm0 package from the archive.raspberrypi.org https://archive.raspberrypi.org/debian/pool/main/w/widevine/ (last updated in september) repo work by default with the latest version of chromium-browser?

For me, it works with Spotify drm content on RPiOS bullseye, haven't tested buster.