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.


Solution 1:

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.

Solution 2:

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/cron.daily/, 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

Solution 3:

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