Skip to content

Instantly share code, notes, and snippets.

@7aman
Last active March 15, 2024 21:14
Show Gist options
  • Save 7aman/45e4239886e4a1855b63f875d6bab4ba to your computer and use it in GitHub Desktop.
Save 7aman/45e4239886e4a1855b63f875d6bab4ba to your computer and use it in GitHub Desktop.
fix opera's error that can not play some video files.

Error:

Opera does not play some videos and shows this error message:
"The media could not be loaded, either because the server or network failed or because the format is not supported."

Cause:

Opera has a liciensing issue. It has a libffmpeg.so library but does not works.

Solution:

There is a solution for debian based distros. Link
Opera is based on Chromium which has a working libffmpeg.so. Just replace opera's.

Tested on:

Fedora 29
Opera 58.0.3135.127

# Back up current one
sudo mv /usr/lib64/opera/libffmpeg.so /usr/lib64/opera/libffmpeg.so.org
# Add rpmfusion free repos
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
# Install library
sudo dnf install chromium-libs-media-freeworld
# Copy from chromium
sudo cp /usr/lib64/chromium-browser/libffmpeg.so /usr/lib64/opera/libffmpeg.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment