Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Opera can't play HTML5 videos on some sites

Help for Current Versions of MX
Message
Author
Number3Pencils
Forum Novice
Forum  Novice
Posts: 36
Joined: Wed Oct 05, 2016 9:39 pm

Opera can't play HTML5 videos on some sites

#1 Post by Number3Pencils » Tue Aug 07, 2018 6:54 pm

Pretty much what it says in the topic. Things that don't play include: any video on Twitter, .gifv gif-videos, and the embedded video players in most news sites. YouTube works fine. I'm on MX-17 and the system's up to date. This has been happening for many months, and I usually just fall back on Firefox, but I thought I'd ask if someone's got a solution for this, since Opera's my favorite browser and I'd like to just be able to use it without having to open up something else for videos.

Some research suggests the problem may be something to do with ffmpeg codecs, namely some proprietary(?) ones called h264 and h265, or something like that. People who've had similar problems say something I can't quite figure out about installing a new libffmpeg.so. But before trying that I wanted to find out if someone's got an MX-specific solution. I saw someone had problems like this in this thread, but I couldn't make heads or tails of their solution.

Ideas?

Number3Pencils
Forum Novice
Forum  Novice
Posts: 36
Joined: Wed Oct 05, 2016 9:39 pm

Re: Opera can't play HTML5 videos on some sites

#2 Post by Number3Pencils » Sun Aug 19, 2018 4:34 pm

No takers? Anyone know anything at all about this?

User avatar
Gerson
Forum Regular
Forum Regular
Posts: 354
Joined: Sun Nov 12, 2017 10:58 am

Re: Opera can't play HTML5 videos on some sites

#3 Post by Gerson » Sun Aug 19, 2018 5:47 pm

Opera does not allow to see videos on some sites like facebook, it is a problem of the browser not of MX and when it is managed to make it work by installing a specific file, if an update of Opera arrives, it returns everything to zeroes and touches to reconfigure, sometimes it is solved and others are not, that's why I switched to Vivaldi, which, although it has a similar problem, is easily solved with a scrip.
http://forum.mxlinux.org/viewtopic.php? ... 22#p450879

G.Translate
Opera no permite ver vídeos en algunos sitios como facebook, es problema del navegador no de MX y cuando se logra hacerlo funcionar mediante instalar un archivo específico, si luego llega una actualización de Opera, vuelve todo a ceros y toca re-configurar, a veces se soluciona y otras no, por eso me pasé a Vivaldi que aunque tiene un problema similar se soluciona fácilmente con un scrip.
El hilo que pides se encuentra aquí:
http://forum.mxlinux.org/viewtopic.php? ... 22#p450879
No todos ignoramos las mismas cosas. :confused:

User avatar
colin_b
Forum Regular
Forum Regular
Posts: 408
Joined: Sun Mar 19, 2017 7:21 pm

Re: Opera can't play HTML5 videos on some sites

#4 Post by colin_b » Sun Aug 19, 2018 6:58 pm

This seems to be a problem on quite a few Chromium based browsers.
https://forums.opera.com/topic/24299/pl ... fmpeg-so/4

Debian does not package chromium ffmpeg codecs from chromium's source, but uses some libav* libs to give its chromium the needed codecs for better html5 support. The same applies to mageia as I found out yesterday.
Unfortunately, opera is coded to only use libffmpeg, so if your distro does not have it available in any package, you are stuck with the poor html5 support its stock libffmpeg provides...
From the Slimjet website:
https://www.slimjet.com/en/libffmpeg.php

Slimjet doesn't include h.264, AAC and mp3 decoders on Linux and Mac platform due to patent issues. Without h.264 and AAC decoders, HTML5 videos encoded with MP4 format will not be playable. Without mp3 decoder, mp3 streaming music will not be playable. There are some external ffmpeg libraries contributed by the community which includes the proprietary decoders. You can download and install them on your own.

...

NOTE: Every time you upgrade to a newer version of Slimjet, you will need install the ffmpeg library again.
Here is a proposed solution to the problem for Opera:
https://unix.stackexchange.com/question ... nsuse?rq=1

go to https://github.com/iteufel/nwjs-ffmpeg- ... t/releases
copy link to latest release (in my case 0.26.6)
close Opera browser
open terminal, and enter the following:

Code: Select all

$ curl -L -O https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/0.26.6/0.26.6-linux-x64.zip
$ unzip 0.26.6-linux-x64.zip
$ sudo mv libffmpeg.so /usr/lib64/libffmpeg_h264.so
$ sudo mv /usr/lib64/opera/libffmpeg.so /usr/lib64/opera/libffmpeg.so.orig
$ sudo ln -s /usr/lib64/libffmpeg_h264.so /usr/lib64/opera/libffmpeg.so
verify that Opera now supports H.264 at https://html5test.com

User avatar
Gerson
Forum Regular
Forum Regular
Posts: 354
Joined: Sun Nov 12, 2017 10:58 am

Re: Opera can't play HTML5 videos on some sites

#5 Post by Gerson » Sun Aug 19, 2018 7:49 pm

go to https://github.com/iteufel/nwjs-ffmpeg- ... t/releases
copy link to latest release (in my case 0.26.6)
close Opera browser
open terminal, and enter the following:
It does not work, the terminal says that directory is not found.
No todos ignoramos las mismas cosas. :confused:

User avatar
colin_b
Forum Regular
Forum Regular
Posts: 408
Joined: Sun Mar 19, 2017 7:21 pm

Re: Opera can't play HTML5 videos on some sites

#6 Post by colin_b » Sun Aug 19, 2018 8:18 pm

Gerson wrote:
Sun Aug 19, 2018 7:49 pm
go to https://github.com/iteufel/nwjs-ffmpeg- ... t/releases
copy link to latest release (in my case 0.26.6)
close Opera browser
open terminal, and enter the following:
It does not work, the terminal says that directory is not found.
Here are the links for the latest release:

Code: Select all

32 bit

https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/0.32.3/0.32.3-linux-ia32.zip

64 bit

https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/0.32.3/0.32.3-linux-x64.zip
Does this solve the problem?

Number3Pencils
Forum Novice
Forum  Novice
Posts: 36
Joined: Wed Oct 05, 2016 9:39 pm

Re: Opera can't play HTML5 videos on some sites

#7 Post by Number3Pencils » Sun Aug 19, 2018 9:41 pm

Nope, and it won't. The solution you pasted comes from an OpenSUSE board, and it looks like OpenSUSE arranges its libs differently than MX. MX doesn't even have a directory called /usr/lib64/, and in /usr/lib/ I find no evidence of a libffmpeg.so. In fact, Catfish found only one libffmpeg.so on my whole system, in my home folder, and I have no idea how it got there. Thought maybe curl put it there, but I only just curled it, and the info says it was last modified a week ago. I'm guessing it's a red herring.

Where does MX put its libffmpeg.so, if it uses such a thing?

User avatar
Gerson
Forum Regular
Forum Regular
Posts: 354
Joined: Sun Nov 12, 2017 10:58 am

Re: Opera can't play HTML5 videos on some sites

#8 Post by Gerson » Mon Aug 20, 2018 7:21 am

This is the file I downloaded and tried before commenting (0.32.3-linux-x64.zip)
The file libffmpeg.so for Opera is located in the path: /usr/lib/x86_64-linux-gnu/opera/
I downloaded the file, unzipped it (12.7 MiB vs 1.8 of the current one) and placed it there in replacement of the existing one; Opera starts to fail, closes the pages unexpectedly and says it has no connection to the network.
I also tried to create a folder in the following path: /opt/opera/lib/ and place the downloaded libffmpeg.so file there and it did not work either.
No todos ignoramos las mismas cosas. :confused:

catalinux
Forum Novice
Forum  Novice
Posts: 49
Joined: Sun Dec 10, 2017 1:58 pm

Re: Opera can't play HTML5 videos on some sites

#9 Post by catalinux » Mon Aug 20, 2018 9:55 am

I don't know if this would help, but I found this solution on r/operabrowser. The OP of the thread says it worked, but is using Ubuntu (although the guide has some Debian options).

If you fear possible system instability by installing that .deb file you could use your live media to install it there, and copy the file over to your actual system. Hope it works :crossfingers: .
Acer Aspire One D260
Lately got a Lenovo V110-15ISK too

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16918
Joined: Fri Dec 15, 2006 8:07 pm

Re: Opera can't play HTML5 videos on some sites

#10 Post by Stevo » Mon Aug 20, 2018 2:04 pm

Number3Pencils wrote:
Sun Aug 19, 2018 9:41 pm
Nope, and it won't. The solution you pasted comes from an OpenSUSE board, and it looks like OpenSUSE arranges its libs differently than MX. MX doesn't even have a directory called /usr/lib64/, and in /usr/lib/ I find no evidence of a libffmpeg.so. In fact, Catfish found only one libffmpeg.so on my whole system, in my home folder, and I have no idea how it got there. Thought maybe curl put it there, but I only just curled it, and the info says it was last modified a week ago. I'm guessing it's a red herring.

Where does MX put its libffmpeg.so, if it uses such a thing?
I asked dpkg for where my installed packages put their file:

Code: Select all

dpkg -S libffmpeg.so

iridium-browser: /usr/lib/iridium-browser/libffmpeg.so
iridium-browser: /usr/lib/iridium-browser/libs/libffmpeg.so
slimjet: /opt/slimjet/libffmpeg.so
opera-stable: /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
etcher-electron: /opt/Etcher/libffmpeg.so

So the only version of that library is shipped with those third-party browsers. Slimjet's and Opera's shipped versions do not support h.264 because of the large fees involved, so that's why we have to replace them with one that does, and repeat that every time the browser is upgraded. The same sort of location might also work for other Chromium-based browsers, such as Brave or Vivaldi.

I don't know how Iridium handles h.264.

Post Reply

Return to “MX Help”