@xzero said in [Solved]Solving the problem of the Opera browser with video playback in Ubuntu and similar distributions (Linux Mint, KDE neon):
Can confirm this solved the issue for me.
I figured out how to use snap library, as @mr-matt-eastwood suggested.On Manjaro Linux 20, opera directory is /usr/lib/opera.
You don't have to delete original libffmpeg.so file, but just rename it to whatever (including extension).Steps:
# If you cannot use sudo -i, then just prefix your commands with sudo sudo -i # Close your browser by hand. Following command will ensure no Opera processes are running in the background killall opera cd /usr/lib/opera # Some software automatically loads any .so/.dll file that is present. Not sure for Opera, but just in case mv libffmpeg.so libffmpeg.so_original snap install chromium-ffmpeg # Please note that chromium-ffmpeg-95241 path might differ. Just pickup one with highest number. ln -sf /snap/chromium-ffmpeg/current/chromium-ffmpeg-95241/chromium-ffmpeg/libffmpeg.so libffmpeg.so
Works like charm.
This works on Fedora (38 Workstation tested) as well, but paths are slightly different.
chromium-ffmpeg snap: /var/lib/snapd/snap/chromium-ffmpeg/current/chromium-ffmpeg-111306/chromium-ffmpeg/libffmpeg.so
Opera install dir: /usr/lib64/opera
ln -s /var/lib/snapd/snap/chromium-ffmpeg/current/chromium-ffmpeg-111306/chromium-ffmpeg/libffmpeg.so /usr/lib64/opera/libffmpeg.so
chromium-ffmpeg version might differ, so make sure to find the directory with the highest number by using:
ls -al /var/lib/snapd/snap/chromium-ffmpeg/current/
As always, make sure to backup original libffmpeg.so file, as I had experience where Opera would refuse to start with new file - probably incompatible version.