简体   繁体   中英

HTML5 video not playing in Opera

Having some issues with this website ...

All the browsers play HTML5 video but Opera. It played before, but I can't see anything that would affect it in the recent update I did...

Any ideas?

Here's how I finally fixed it's some problem with libffmpeg.so that comes with Opera, so we can use the library file that comes with Chromium. (kinda like what the guy above posted, but mine did not appriciate the symlinks.

install chromium browser from software manager, then:

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

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

restart Opera

Update to the latest version of Opera. Go to this repo and download the relevant ffmped binary then extract and cut to your /usr/lib/x86_64-linux-gnu/opera/ and restart Opera.

And thats it, you will be able to play the video you want.

I could not play the videos at www.edge.org. I was getting a message to the effect: can't play video with current setup. I fixed this by installing chromium-codecs-ffmpeg-extra using apt-get/aptitude. I'm using Opera version 50.0.2762.58 on Ubuntu Gnu/Linux.

Solution...

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

At least in Ubuntu 20.04 the problem exists again. At least in the scenario when Opera is installed using apt-get .

In Ubuntu 20.04 + the packages chromium and chromium-ffmpeg are now only available (in a not recent enough version) as snap. You might install Opera also as a snap to overcome the problem, which was not a solution for me, because I found no way how to migrate to the snap version of Opera with keepign all my settings.

In case Opera is installed with apt-get the file libffmpeg.so in the Opera directory /usr/lib/x86_64-linux-gnu/opera must be replaced with a link to sudo ln -s /snap/chromium-ffmpeg/current/chromium-ffmpeg-98516/chromium-ffmpeg/libffmpeg.so libffmpeg.so Maybe the linked version (98516) must be adjusted so that Opera runs fine on your system.

There is an automated solution for x86_64 systems: https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine

It will download and install latest available libffmpeg.so and optionally WidevineCDM. Also it could be started automatically after each Opera update on some systems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM