Solved [Solved] HTML5 codecs, again
-
@paul1149 said in HTML5 codecs, again:
/opt/vivaldi and then /opt/vivaldi/lib. This had worked in the past, but not now. Still nothing.
Things have changed a bit last time you had to manage your Codecs.
You received all the necessary info to fix the issue from different people, and after 26 replies, issue is still present.
Please, read again the aforementioned article. -
@Gwen-Dragon said in HTML5 codecs, again:
@paul1149 said in HTML5 codecs, again:
If that did not help find all libffmpeg.so files with:
sudo find / -name "libffmpeg*so*" | xargs ls -al
and post the findings here.I just saw this post, thanks. I ran the command. I got a ton of "file missing" or permission denied, mostly pertaining to backup files on my old mx18 installation. Here is the part I think is relevant:
-rwxrwxr-x 1 root root 13202248 Jun 13 22:02 /opt/slimjet/libffmpeg.so -rwxrwxr-x 1 root root 13202248 Jun 13 22:02 /opt/vivaldi/libffmpeg.so -rwxrwxr-x 1 root root 13202248 Jun 13 22:02 /opt/vivaldi/lib/libffmpeg.so lrwxrwxrwx 1 root root 30 Jul 19 2018 /usr/lib/x86_64-linux-gnu/libffmpegthumbnailer.so.4 -> libffmpegthumbnailer.so.4.11.0 -rw-r--r-- 1 root root 93544 Jul 19 2018 /usr/lib/x86_64-linux-gnu/libffmpegthumbnailer.so.4.11.0
-
@lamarca said in HTML5 codecs, again:
@paul1149 said in HTML5 codecs, again:
Things have changed a bit last time you had to manage your Codecs.
You received all the necessary info to fix the issue from different people, and after 26 replies, issue is still present.
Please, read again the aforementioned article.I'm not sure what's going on, but when I just returned to the help article - which I have read and followed numerous times - I was greeted with "Success!" This was without restarting Vivaldi.
Unfortunately I have no idea what solved the problem. Probably using Slimjet's libffmpeg.so, which solved it in my previous mx installation.
The odd thing, though, is that the Vivaldi error message persists upon restart (see pic). Perhaps there is another codec missing? I doubt it. I am going to hide the message and consider the immediate problem solved, but the deeper problem of why it occurred at all yet unsolved.
-
@Gwen-Dragon said in HTML5 codecs, again:
@paul1149 No. Do not copy any libs from other browsers over vivaldi libs. That breaks you video decoding.
You should do a
sudo rm -fr /opt/vivaldi/ /var/opt/vivaldi/
sudo apt reinstall vivaldi-stable
Ok, I've done this now, and I'm back to Square One, with failure at the test page. And failure when following its instructions. The only difference is the V. error popup remains hidden, as I had instructed it to.
-
@Gwen-Dragon said in HTML5 codecs, again:
@paul1149 After installing Vivaldi it downloads the correct codec package from a Ubuntu repo and installs the needed libffmpeg.
I tested with Ubuntu 19, Mint 17,. Mint 19 and Debian 10 and got all distributions working video.
Ok then, thanks. I'm going to ask over at MX.
-
@Gwen-Dragon said in HTML5 codecs, again:
@paul1149 Do yuo get any error messages if you start vivaldi in a shell?
Please copy&paste them here.Here's what I got:
$ vivaldi 'Proprietary media' support is not installed. Fix this by running: /opt/vivaldi/update-ffmpeg The Widevine CDM is not installed. Fix this by running: /opt/vivaldi/update-widevine
I ran the widevine command, which led to:
4.10.1440.18-linux-x64.zip does not match the expected sha256sum; aborting
-
@Gwen-Dragon said in HTML5 codecs, again:
@paul1149 I could fetch the widevine with my Debian 10.
Please retry
sudo -x /opt/vivaldi/update-widevine
(may be the download was broken) and copy&paste the output here.//EDIT: Meanwhile i gonna test the MX 18.3 ISO and check if Vivaldi installation fails.
sudo -x /opt/vivaldi/update-widevine
yielded:
$ sudo -x /opt/vivaldi/update-widevine sudo: invalid option -- 'x' usage: sudo -h | -K | -k | -V usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] file ...
As I recall, I had similar problems with the MX 18 series, but I solved them using the Slimjet codec. I was on mx18 for over a year and was unaware of any negative consequences to using it.
-
@Gwen-Dragon , ok, here's the output:
$ sudo bash -x /opt/vivaldi/update-widevine [sudo] password for paul: + WIDEVINE_VERSION=4.10.1440.18 + case "amd64" in + WIDEVINE_ZIP_ARCH=x64 + WIDEVINE_ZIP_SUM=768ffe64a8efca991fce37d4cf35eb15b1cf2fdb2fa4773278a1bfce1e620046 + WIDEVINE_LIBRARY=0,3539397,_platform_specific/linux_x64/libwidevinecdm.so + WIDEVINE_MANIFEST=3539398,237,manifest.json + WIDEVINE_LICENSE=3539635,520,LICENSE.txt + '[' x = x--system ']' + '[' x = x--user ']' + WIDEVINE_INSTALL_DIR=/var/opt/vivaldi/WidevineCdm + '[' root '!=' root ']' + WIDEVINE_PKG=4.10.1440.18-linux-x64.zip + VIVALDI_INSTALL_DIR=/opt/vivaldi + '[' x = x--undo ']' + available sha256sum + command -v sha256sum + '[' -e /var/opt/vivaldi/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so -a -e /var/opt/vivaldi/WidevineCdm/manifest.json ']' + available wget + command -v wget + DOWNLOAD='wget -q -T3' + cleanup_files + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so ']' + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/manifest.json ']' + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/LICENSE.txt ']' + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/4.10.1440.18-linux-x64.zip ']' + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/../libwidevinecdm.so ']' + '[' -d /var/opt/vivaldi/WidevineCdm ']' + rm -f /opt/vivaldi/WidevineCdm + ln -fs /opt/google/chrome/WidevineCdm /opt/vivaldi/WidevineCdm ++ dirname _platform_specific/linux_x64/libwidevinecdm.so + mkdir -p /var/opt/vivaldi/WidevineCdm/_platform_specific/linux_x64 + cd /var/opt/vivaldi/WidevineCdm + wget -q -T3 https://dl.google.com/widevine-cdm/4.10.1440.18-linux-x64.zip + : + sha256sum -c + echo '768ffe64a8efca991fce37d4cf35eb15b1cf2fdb2fa4773278a1bfce1e620046 4.10.1440.18-linux-x64.zip' + echo '4.10.1440.18-linux-x64.zip does not match the expected sha256sum; aborting' 4.10.1440.18-linux-x64.zip does not match the expected sha256sum; aborting + cd - + cleanup_files + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so ']' + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/manifest.json ']' + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/LICENSE.txt ']' + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/4.10.1440.18-linux-x64.zip ']' + for WIDEVINE_FILE in "${WIDEVINE_LIBRARY##*,}" "${WIDEVINE_MANIFEST##*,}" "${WIDEVINE_LICENSE##*,}" "$WIDEVINE_PKG" ../libwidevinecdm.so + '[' -e /var/opt/vivaldi/WidevineCdm/../libwidevinecdm.so ']' + '[' -d /var/opt/vivaldi/WidevineCdm ']' + find /var/opt/vivaldi -depth -type d -empty -exec rmdir '{}' ';' + rm -f /opt/vivaldi/WidevineCdm + ln -fs /opt/google/chrome/WidevineCdm /opt/vivaldi/WidevineCdm + exit 1 paul@mx19:~
Sorry, don't know what
syslog
is. -
Issue the following and then rerun the script
sudo sed -i '/^ DOWNLOAD/s/3/10/' /opt/vivaldi/update-widevine
-
Thanks, @Gwen-Dragon . I also got interesting feedback over at MX that might bear on the problem. Knowledgeable guy there had initial install problems, as did I, but solved them and his install codecs are good. I might need to retrace his steps.
-
@ruario said in HTML5 codecs, again:
sudo sed -i '/^ DOWNLOAD/s/3/10/' /opt/vivaldi/update-widevine
paul@mx19:~ $ sudo sed -i '/^ DOWNLOAD/s/3/10/' /opt/vivaldi/update-widevine [sudo] password for paul: paul@mx19:~ $ sudo /opt/vivaldi/update-widevine 4.10.1440.18-linux-x64.zip does not match the expected sha256sum; aborting paul@mx19:~
Could you take a look at https://forum.mxlinux.org/viewtopic.php?f=104&t=54266&p=542038#p542038 and see if that makes any sense? I think there's a flaw in the installation somehow.
-
@paul1149 I read it, that is a work around but a bad one and will only fix it until you next upgrade. Better to fix it properly
-
@ruario said in HTML5 codecs, again:
@paul1149 I read it, that is a work around but a bad one and will only fix it until you next upgrade. Better to fix it properly
Ok. Thanks for taking a look. Now to figure out how to do this right...
-
Can you try fetching manually via wget. I want to see if it works on your system or is failing because of something that is missing (e.g. proxy configuration)
wget -O /tmp/4.10.1440.18-linux-x64.zip https://dl.google.com/widevine-cdm/4.10.1440.18-linux-x64.zip
If you get no errors from wget, then try issuing the following in the same terminal
sha256sum /tmp/4.10.1440.18-linux-x64.zip
and let me know what that command reports.
EDIT: Simplified the commands to a couple of one-liners
-
@ruario No errors that I can see:
paul@mx19:~ $ cd ~/Downloads paul@mx19:~/Downloads $ wget https://dl.google.com/widevine-cdm/4.10.1440.18-linux-x64.zip --2019-11-22 11:09:46-- https://dl.google.com/widevine-cdm/4.10.1440.18-linux-x64.zip Resolving dl.google.com (dl.google.com)... 172.217.12.174, 2607:f8b0:4006:81a::200e Connecting to dl.google.com (dl.google.com)|172.217.12.174|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3540154 (3.4M) [application/zip] Saving to: ‘4.10.1440.18-linux-x64.zip’ 4.10.1440.18-linux-x64.z 100%[=================================>] 3.38M 9.15MB/s in 0.4s 2019-11-22 11:09:52 (9.15 MB/s) - ‘4.10.1440.18-linux-x64.zip’ saved [3540154/3540154] paul@mx19:~/Downloads $ sha256sum 4.10.1440.18-linux-x64.zip 768ffe64a8efca991fce37d4cf35eb15b1cf2fdb2fa4773278a1bfce1e620046 4.10.1440.18-linux-x64.zip paul@mx19:~/Downloads
-
Ok, let's remove the entire timeout from the script, like so
sudo sed -i '/^ DOWNLOAD/s/ -T[0-9]\+//' /opt/vivaldi/update-widevine
Then re-run it
sudo /opt/vivaldi/update-widevine
-
@ruario You nailed that one! But I then retried ffmpeg, and same problem there.
$ sudo /opt/vivaldi/update-widevine Widevine (4.10.1440.18) installed successfully (PLEASE RESTART VIVALDI) However, support for 'proprietary media' is not installed. Fix this by running: /opt/vivaldi/update-ffmpeg paul@mx19:~ $ /opt/vivaldi/update-ffmpeg You may need to be root (or rerun this command with sudo) mkdir: cannot create directory ‘/var/opt/vivaldi/media-codecs-78.0.3904.70’: Permission denied paul@mx19:~ $ sudo /opt/vivaldi/update-ffmpeg xz: (stdin): File format not recognized tar: This does not look like a tar archive tar: ./usr/lib/chromium-browser/libffmpeg.so: Not found in archive tar: Exiting with failure status due to previous errors The extracted libffmpeg.so does not match the expected sha256sum; aborting
-
Ok, same fix then
sudo sed -i '/^ DOWNLOAD/s/ -T[0-9]\+//' /opt/vivaldi/update-ffmpeg
sudo /opt/vivaldi/update-ffmpeg
EDIT: For anyone else who has this issue, the following should work if for snapshot and stable. It will remove the timeout from both scripts (it assumes
bash
). Clearly the timeout is too short for many people's networks.sudo sed -i '/^ DOWNLOAD/s/ \(-T\|--connect-timeout \)[0-9]\+//' /opt/vivaldi*/update-{widevine,ffmpeg}
-
@ruario Dude, you nailed it. Thanks!
Two questions then. How do I remediate my friend's machine with the same problem? I guess I go through these same steps.
Second, is there a way to prevent this problem from happening in new installs?
There's also the issue of why this apparently happens only on MX and not other Linux distros.
-
@paul1149 said in HTML5 codecs, again:
@ruario Dude, you nailed it. Thanks!
Two questions then. How do I remediate my friend's machine with the same problem? I guess I go through these same steps.
sudo sed -i '/^ DOWNLOAD/s/ \(-T\|--connect-timeout \)[0-9]\+//' /opt/vivaldi*/update-{widevine,ffmpeg}
Second, is there a way to prevent this problem from happening in new installs?
Yes… I need to fix it in the source and ship an updated Vivaldi that includes the fix.
There's also the issue of why this apparently happens only on MX and not other Linux distros.
It is almost certainly nothing to do with MX and more to do with you having a slower connection than I predicted when I added a short 3 second timeout.
EDIT: We have had other reports that were likely this from several distros