The solution may vary depending on the operating system.
See the Chrome base version of Opera at opera://about/
.
For version 65.0.3325.181
, download the opera-ffmpeg-codecs
package from ArchLinux repository:
wget http://ftp5.gwdg.de/pub/linux/archlinux/community/os/x86_64//opera-ffmpeg-codecs-65.0.3325.181-1-x86_64.pkg.tar.xz
Extract it:
tar -xJf opera-ffmpeg-codecs-65.0.3325.181-1-x86_64.pkg.tar.xz
For other versions - as Opera will be updated in time and the above may not work anymore - see here: https://repo.herecura.eu/herecura/x86_64/. (Or search the internet for something like opera-ffmpeg-codecs-xxxxxx
where xxxxxx
is the relevant Chrome base version.)
Create the following directory:
sudo mkdir /usr/lib/x86_64-linux-gnu/opera/lib_extra/
Move the library to the right place:
sudo mv ./usr/lib/opera/lib_extra/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/lib_extra/
Let me know if that helps or not.
Edit by cipricus:
This works. I am editing this a bit to make it more largely significant and add what I have found myself, then I'll mark it as solved and grant the bounty too.
This problem is to be put in the context of browser html5 support, more specifically support for h264 streams (which affected much more than Youtube live streams). To check html5 support, go to http://html5test.com/. h264 support seems to be lacking at the date of these posts in both Chromium and Opera but can be solved only separately. For Chromium:
sudo apt-get install chromium-codecs-ffmpeg-extra
The same package can be used for Opera by downloading the deb file from http://security.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/, extracting the libffmpeg.so
and copying it as indicated.
The above was tested in Ubuntu-based systems.
In other systems Opera may have a different folder structure.
For Solus:
Based on this post.
Follow the Linux instructions at https://www.slimjet.com/en/libffmpeg.php
You will want the x64 file. Download and extract it. Make a backup of /usr/lib64/opera/libffmpeg.so
then, with administrator rights, copy the new libffmpeg.so
file into /usr/lib64/opera
, replacing the existing one.
You'll have to do this again after Opera updates.
Best Answer
This unfortunately is a known problem in Opera spanning to
OpenSuse 42.3
. YouTube reports thatH.264
andMSE & H.264
both are unsupported when accessed from that OS. This is usingOpera 46.0.2597.26
, not quite as fresh as yours, but newer OS.Looking around the web, there is reference to a Chromium codec patch. Uninstalling Chromium makes no difference on my setup, nor force reinstalling
ffmpeg
after uninstall of Chromium's extra codecs. For those not feint of heart, there is a manual-linking solution[1]
involvinglibffmpeg.so
, which seems to have success there (but must be redone each time Opera is updated). I have not tried the manual linking.[1]
https://solus-project.com/forums/viewtopic.php?t=1004