Video and Opera does not seem to be going good on Linux Mint
-
lavanyadeepak 0 last edited by
I recently switched to Linux Mint from Windows 11. Facing the following issues with Opera not able to play videos on Twitter or Facebook. Interestingly I guess Youtube is able to manage the show though.
Tried these and after reboot Opera itself does not launch. Had to purge opera totally and reinstall again.
sudo rm /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so sudo ln -s /usr/lib/chromium-browser/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/ sudo apt install snapd sudo snap install core sudo snap install chromium-ffmpeg sudo mkdir /usr/lib/x86_64-linux-gnu/opera/lib_extra sudo ln -s /snap/chromium-ffmpeg/current/chromium-ffmpeg-98516/chromium-ffmpeg/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/lib_extra
-
myswtest last edited by
All works here (though I would never use Twit or FB).
In contrast, I use openSuse Tumbleweed (four machines) with Opera installed natively. I do have a a fifth v-machine running MicroOS Kalpa with Opera as a Flatpak. (personally I would never use snap).
Have you tried installing Opera natively?
-
lavanyadeepak 0 last edited by
@myswtest By native, did you mean downloading the .DEB file and running it through package manager?
-
myswtest last edited by
@lavanyadeepak-0 said in Video and Opera does not seem to be going good on Linux Mint:
@myswtest By native, did you mean downloading the .DEB file and running it through package manager?
Exactly! (I assume you're using Snap?)
-
lavanyadeepak 0 last edited by
@myswtest No. Opera was installed using the following command
sudo apt-get install opera-stable
These were the package sources configured to enable the abovesaid updates.
deb [arch=amd64 signed-by=/usr/share/keyrings/opera.gpg] https://deb.opera.com/opera-stable/ stable non-free deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
I guess these are the same when we download the .DEB and run through package manager which the DEB will use internally.
-
styen last edited by styen
@lavanyadeepak-0 Use https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine
But first reinstall operasudo apt reinstall opera-stable
-
mochica last edited by
@lavanyadeepak-0 Some browsers for Linux lacks the proper video codecs. The solution is to download the library that provide those: libffmpeg.so
Download it and replace the one that comes with the Opera installation. A word, everytime a mayor update is installed, chances are that the libffmpeg.so library is going to be replace with one that could not provide the proper codecs. So keep it handy the latest version and the howto info (I am providing this info like this,in order that a less experienced user could fix this issue)Codec: https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases
Get the 0.78.1-linux-x64.zipExtract it and with admin rights, copy it in (if using File browser, get admin permission by File - Open as Administrator. A new window will open). Copy it from download location and paste and replace the one in the following folder:
/usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
/usr/lib/x86_64-linux-gnu/opera/lib_extra folder/libffmpeg.so (just in case) -
Robgo last edited by
@mochica Thank you for your post, I love anons like you solving strangers problems, I log in to this forum just to thank you, you posted the simplest solution to this issue, hopefully opera will fix this in the future or they need pin this post on the opera linux subforum so people don't go on rabbit holes trying to solve this issue..
-
jedi-am last edited by jedi-am
Hi,
this is not specific to mint / ubuntuBut also all debian base distro and fedora.
I dont understand why opera team since they decide release a complete redesign browser, why didnt fix the problem witn .deb and .rpm packages for linux.
Why not make the browser search for codec package like ffmeg, openH264 in user machine. Why no Ask to install ?
A browser like Brave automatically detect the codecs and works fine even with a snap codec base.
In some old posts alredy asked this, Why Opera still does not Fix this? i dont want to install / to use snap if i am using fedora, mint , popOS, etc.
Please fix this, just use openH264 ( with libopenh264 decoder) inside of Opera or Fix the Paths to find which codecs the user machine has.
Maybe i will create a seprate post about, because the old one about this issue was closed which i dont agree with the solution.
Thanks -
jedi-am last edited by jedi-am
This is only valid for chromium base browsers like opera, brave vivaldi, etc. because few years ago the codes were removed from chromium.
However, for example brave, when i install ffmeg or have open264 or even the snap code version installed, it finds one of this codecs and the videos works fine in brave.
However in Opera, expects the folder in the one of folders of the opera browser, which is wrong and they should fix this way.
-
lavanyadeepak 0 last edited by
@mochica I tried this route and Opera totally started crashing its tabs.
-
-
-
-
-
mochica last edited by
Make sure the chromiun libffmpeg version matches your Opera Installation.
I've uninstalled Opera using the Software Manager and installed this version:Then I replaced the libffmpeg with the one from the 0.78.1-linux-x64.zip in this folder: /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
-
vbnvbn last edited by
@lavanyadeepak-0 try an older version of libffmpeg.so from the link provided by @mochica - e.g. 0.78.0
If that doesn't solve the problem, check the driver for your graphics/video adapter you use - it may be inappropriate - e.g. if you use xserver-xorg-video-nouveau, some old nvidia graphics adapters are no longer supported by it - for example many 2D apps may work, but some apps, which use hardware acceleration may not.
-
lavanyadeepak 0 last edited by lavanyadeepak 0
@vbnvbn How are other browsers on the same platform able to manage and run the show seamlessly?
-
vbnvbn last edited by
@lavanyadeepak-0 If other chromium-based browsers work flawlessly with the hardware acceleration option switched on, then find the appropriate libffmpeg.so version for you. Use these links:
https://repo.herecura.eu/herecura/x86_64/
https://launchpad.net/ubuntu/+source/chromium-browser
https://launchpad.net/~savoury1/+archive/ubuntu/chromium
https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases
-
DarkMac78 last edited by
I am using th libffmpeg.so from the Slack installation. Bottom line, if you already have libffmpeg.so installed, just backup /usr/lib64/opera/libffmpeg.so and then do a symlink for /usr/lib/slack/libffmpeg.so.
-
jito463 last edited by
You know, I have to thank the Opera team. Because of this issue after installing Linux on my work PC, I have finally decided to ditch ChrOpera once and for all. It's been a long time coming, with multiple aggravations/ irritations, and this just made it easy to take the final step. I was going to try and fix the issue with the above steps, but I'm finally fed up.
So thank you Opera dev team.