As others have stated, the main problem is ffmpeg library. To fix that, install Chromium and then copy the ffmpeg.so file that Chromium uses. You can do it like this:
If you are having trouble with videos on the web that are not flash, it is probably a video that uses the H.264 codec. In the past chromium-codecs-ffmpeg-extra has resolved this (and might again) Unfortunately, Opera has some issues with using the library sometimes, because it's so tightly integrated with chromium. There is no 100% good solution of getting H.264 support in Opera right now.
Basically Opera is having trouble with the licensing. The library that provides many codecs that Opera uses is called ffmpeg. However, they have removed the H.264 part of it, because even though ffmpeg has a free license, the patent pool of H.264 will demand license fees from commercial projects that are using implementations of it, like Opera.
Chromium and Chrome, however, do have support for H.264 in their ffmpeg library, because Google has payed the license fee.
Switching to Google Chrome or perhaps Chromium is highly likely to resolve this issue entirely.(it did for me on both Ubuntu 14.04 and 16.04 - 64-bit)
The only other option I can suggest even trying is the installation of the Ubuntu Resticted Extras Package Available in the [multiverse repository] which is defined as Unsupported, Closed-Source and Patent-Encumbered Software:
For more on the multiverse repository and how and whether to enable it see this excellent Q & A
I installed skype for linux
then copied skypes libffmpeg.so to opera with the following command.
sudo cp /usr/share/skypeforlinux/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
Restart Opera. Videos now play on Opera.
I'm using Linux Mint cinammon 20.0 and Opera 71.
I tried copying the libffmpeg.so from Chromium, but as I didm't install it y found another in whatsapp.
I opened /usr/lib as root.
Foud the opera libffmpeg.so (about 1.8 MB) and renamed it as libffmpeg-opera.so as a safety measure.
Then copied libffmpeg.so from whatsapp (about 3.2MB) and pasted into opera.
Reinitiated Opera and problem solved.
As others have stated, the main problem is ffmpeg library. To fix that, install Chromium and then copy the
ffmpeg.so
file that Chromium uses. You can do it like this:sudo cp /snap/chromium/current/usr/lib/chromium-browser/libffmepg.so /usr/lib/x86-64-linux-gnu/opera/
After that, just restart Opera and the problem will be fixed.
NOTE: Everytime Opera upgrades, you need to copy
ffmpeg.so
.Run this command in a terminal (Ctrl+Alt+T):
Then restart Opera.
If you are having trouble with videos on the web that are not flash, it is probably a video that uses the H.264 codec. In the past chromium-codecs-ffmpeg-extra has resolved this (and might again) Unfortunately, Opera has some issues with using the library sometimes, because it's so tightly integrated with chromium. There is no 100% good solution of getting H.264 support in Opera right now.
Basically Opera is having trouble with the licensing. The library that provides many codecs that Opera uses is called ffmpeg. However, they have removed the H.264 part of it, because even though ffmpeg has a free license, the patent pool of H.264 will demand license fees from commercial projects that are using implementations of it, like Opera.
Chromium and Chrome, however, do have support for H.264 in their ffmpeg library, because Google has payed the license fee.
Switching to Google Chrome or perhaps Chromium is highly likely to resolve this issue entirely.(it did for me on both Ubuntu 14.04 and 16.04 - 64-bit)
The only other option I can suggest even trying is the installation of the Ubuntu Resticted Extras Package Available in the [multiverse repository] which is defined as Unsupported, Closed-Source and Patent-Encumbered Software:
For more on the multiverse repository and how and whether to enable it see this excellent Q & A
Sources:
https://help.ubuntu.com/community/OperaBrowser
What's the difference between multiverse, universe, restricted and main?
Get the ffmpeg number (XXXXXX) needed:
The XXXXXX revision number to choose depends on the chrome version of your opera
Check chrome ver. in Help / About / Browser identification
Chrome version to ffmpeg XXXXXX number
Opera installed from .deb (or apt)
Opera installed as snap
snap forum
opera forum
Briefly:
I installed skype for linux then copied skypes libffmpeg.so to opera with the following command. sudo cp /usr/share/skypeforlinux/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so Restart Opera. Videos now play on Opera.
I'm using Linux Mint cinammon 20.0 and Opera 71. I tried copying the libffmpeg.so from Chromium, but as I didm't install it y found another in whatsapp. I opened /usr/lib as root. Foud the opera libffmpeg.so (about 1.8 MB) and renamed it as libffmpeg-opera.so as a safety measure. Then copied libffmpeg.so from whatsapp (about 3.2MB) and pasted into opera. Reinitiated Opera and problem solved.