I was asked for help with Opera installed on Ubuntu 24.04 via Snap not playing some videos.
I've heard about the issue with ffmpeg version Opera uses, but thought it was about opera installed via APT. It's newest available version installed. It worked previously I also tried to reinstall chromium-ffmpeg
snap and reverting opera Update. Nothing worked. I read a lot of posts about copying chromium version of ffmpeg, but these posts are old and if it's snap I cannot directly affected it. I do not know if it was a recent Ubuntu upgrade that make it stop working or the opera update. Have any of you had similar problems with Opera snap?
Can you provide any solution?
EDIT:
I've tried things mentioned by @Rinzwind
Unfortunately it did not help.
I've run the install script it completed but videos still not working.
I've tried to manually download libffmpeg.so
and copied it to this places:
/var/snap/opera/
/var/snap/opera/303/
/var/snap/opera/304/
/var/snap/opera/common/
/usr/lib/x86_64-linux-gnu/opera/
In opera I've checked opera://about
and got such install path:
Install: /snap/opera/304/usr/lib/x86_64-linux-gnu/opera
And 304 is the newest and 303 is the older one that I also checked.
I tried to copy libffmpeg.so
to this install path and got such error:
sudo cp libffmpeg.so /snap/opera/304/usr/lib/x86_64-linux-gnu/opera/
cp: cannot create regular file '/snap/opera/304/usr/lib/x86_64-linux-gnu/opera/libffmpeg.so': Read-only file system
I got the libffmpeg.so
from latest release.
What am I doing wrong?
I've finally fixed the issue:
The problem was I pasted it into:
/usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
without adding
lib_extra
directory.The propper path would be:
/usr/lib/x86_64-linux-gnu/opera/lib_extra/libffmpeg.so
I've found the solution here.