My Opera can't play videos

I am using Opera 68.0.3618.125 on latest Ubuntu version. But I can't watch videos. For example on Twitter. Everyone says get libffmpeg.so and copy to /snap/opera/current/usr/lib/x86_64-linux-gnu/opera but I can't access this file even I'm in root access. Please help me.

2

6 Answers

Install ffmpeg, which will install the missing shared library libffmpeg.so:

sudo apt install ffmpeg

Sorry for this late answer, I had only just realised my suggestion which I was not 100% certain about worked for you. But here it is.

0

i had the same problem, just installing ffmpeg didnt work, so my solution is to copy the up to date chromium library to the opera directory. I called it fixopera.sh:

#!/bin/sh
apt-get -y update && apt-get -y install chromium && mv /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so.old && cp /usr/lib/chromium/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/

copied it in /etc/, to make it a root cron job and executable with chmod +x. so in case anything goes wrong you have a backup of your old file named libffmpeg.so.old

2

In my case ffmpeg didn't worked. I simply search for any possible libffmpeg.so in my system and found some varieties and pick one among them.

I selected from skype directory, and copied to opera directory and voila!! it worked!

Below are the steps.

  • Update files DB, so it search files better.

    $ sudo updatedb
  • Serach for libffmpeg.so file.

    $ locate libffmpeg.so
    /home/ravi/sw/Postman/app/libffmpeg.so
    /snap/flock-chat/281/libffmpeg.so
    /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so <-- This was already there. I just replaced it with skype's libffmpeg.so
    /usr/share/code/libffmpeg.so
    /usr/share/skypeforlinux/libffmpeg.so
  • Backup existing libffmpeg.so, just in-case things go wrong we can revert this file.

    $ sudo cp /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so.bkp
  • Overwrite libffmpeg.so

    $ sudo cp /usr/share/skypeforlinux/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so

All problems with streams and Opera comes from .deb installation pack. We all have got .deb from the official Opera download page.

But official Opera has some problems with licences and official .deb Opera cant use latest codecs for playing streams.

Stream works only on snap opera, not .deb

If you have Ubuntu 20.04 u can just use this command

sudo snap install opera

Enjoy.

Similar to the other answers, except using a symlink instead of copying the library, is this solution from the Opera forums, Solving the problem of the Opera browser with video playback in Ubuntu and similar distributions (Linux Mint, KDE neon):

First of all, you need to install the chromium-codecs-ffmpeg-extrapackage. You can do this using the terminal with the following command:

sudo apt install chromium-codecs-ffmpeg-extra

Usually the second step is to create a symlink for the filelibffmpeg.so, but since now the Opera browser delivers a file with this name (but not solving the problem), we will delete it and then create a simlink to the new file. File deletion:

sudo rm /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so

Creating a simlink:

sudo ln -s /usr/lib/chromium-browser/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/

Yes, it's all about the libffmpeg.so file. I had to download it from a previous version of Ubuntu as explained in this post The Videos Don't Play Topic as none of the files in 20.04 worked.

I did some research and replaced libffmpeg.so with the one I downloaded from

Find and extract libffmpeg.so in the downloaded package, then save it as libffmpeg.so in /usr/lib/x86_64-linux-gnu/opera (the path may vary), replacing the existing file if it is there. You will need to do this with root privileges.

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like