why do I have copy libffmpeg.so?
-
A Former User last edited by
opera version: 55.0.2994.61
system chromium version: 68.0.3440.75
distro: debian basedI was heavily frustrated by the fact that I couldn't play facebook (and twitter) video. every time I wanted to play a video, I had to open chromium which is really boring. I had this problem before, I couldn't play twitter video/gif then. plus opera mini on android contains 70% porn news (please note, on a fresh install). so, I eventually wanted to switch my primary browser.
all the solutions I found on forum/internet was related about different chromium and opera major version. but I am on a debian based distro and I had same chromium and opera major version and I had no libffmpeg.so in chromium lib path.
then I discovered that "/snap/chromium-ffmpeg/current/chromium-ffmpeg-92142/chromium-ffmpeg/" contains a 16 megabyte libffmpeg.so file. but opera lib folder contains only 1.8 megabyte libffmpeg.so file. after replacing the libffmpeg.so, everything is working as expected.
Now, my question is, why do I have to replace a libffmpeg.so file as a user? why do opera dev intentionally stripped down libffmpeg.so? Is that because opera dev aren't aware that facebook and twitter exists or they want to make the user experience worse or they think that we are short on bandwidth?
-
yeswap last edited by
@sgunhouse said in why do I have copy libffmpeg.so?:
Opera does not have a license to distribute some of the codecs in that library, while Google does.
How expensive is the license? Videos work with with Firefox and Vivaldi on Ubuntu as well as with Chrome, so apparently they are able to afford to license the required codecs. Why can't Opera?
-
A Former User last edited by
Vivaldi does not have a licence for h264 as well, because it also depends on chromium ffmpeg codecs to play h264 content.
As for firefox, read my post here
https://forums.opera.com/topic/27537/can-t-play-facebook-videos-or-gifs-in-opera-w-linux-mint/17
If it was not for cisco to provide ff with that royalty-free lib, firefox would still not have h264 support. -
A Former User last edited by
@sgunhouse then Opera can use
chromium-ffmpeg
snap package which is distributed by canonical. plus, unlike apt, it is version safe and available to multiple distro. -
A Former User last edited by
Please do not compare apt's (or any package manager's) features (package signing, automatic dependency resolution to menion a few) with the novelties of snap (or flatpak or appimage). A properly made package is and will always be superior to window-like software installation solutions like the forementioned.
And I assume you heard about the secret coin mining script that was found in a snap app a few months ago.
https://www.theregister.co.uk/2018/05/14/ubuntu_crypto_mining_apps/ -
yeswap last edited by
@jimunderscorep re: "Vivaldi does not have a licence for h264 as well, because it also depends on chromium ffmpeg codecs to play h264 content". On my Ubuntu 14.04 LTS system: A fresh install of Vivaldi can play the H.264/MP4 video on https://www.quirksmode.org/html5/tests/video.html but Opera can not. I don't know how Vivaldi does it. Perhaps the Opera devs can take a look at Vivaldi, figure what they are doing and add the same workaround to Opera.
Also, according to https://en.wikipedia.org/wiki/OpenH264 the OpenH264 binaries that Firefox uses are free for any software project to use. Maybe Opera could be modified to use the OpenH264 binary instead of the chromium one.
I believe that Opera adoption on Linux will remain low unless Opera can come up with a way to seamlessly play the most popular video format on the web without requiring users to implement a workaround that's only good until the next time Opera or Chromium updates.
-
operauser567 last edited by
@yeswap I'm ready to drop opera. I like opera better than any other browser but I like what works. I hope opera fixes that. I was using vivaldi for a while.. might go back.
-
A Former User last edited by
@yeswap
Do you also have chromium ffmpeg codecs along with vivaldi?
As for the openh264 lib, it only only solves a part of the problem, the h264 support. Ok, I admit that the problematic h264 playback is what 99,9% users complain about, but there is more than that. Chromium ffmpeg codecs provide support for h265 (I am not sure about that though), aac audio and a couple more non free (= loyalty free) formats which I can not remember now.
And the support for the free formats (webm, ogg etc, even mp3) comes from the libffmpeg that comes with opera. If you were an opera developer, would you risk breaking the playback of the other free formats in order to play one non free, even with an open source lib?@operauser567
Your call. I do not touch vivaldi and any other electron based bs. -
A Former User last edited by
@jimunderscorep I am not saying that snap is superior. currently, on ubuntu, opera is using chromium ffmpeg codecs shipped by canonical (apt package) which is not available on my distro. what I am trying to say here that opera should use a list of directory that contains chromium ffmpeg codecs.
@avl Isn't it possible to use snap based
chromium-ffmpeg
if a distro is not ubuntu based andchromium-ffmpeg
(shipped by canonical) snap package exists? -
A Former User last edited by A Former User
@jimunderscorep said in why do I have copy libffmpeg.so?:
As for firefox... If it was not for cisco to provide ff with that royalty-free lib, firefox would still not have h264 support.
It's not true. Cisco codec is only used fo WebRTC. Firefox required system codecs for h264 playing.
-
A Former User last edited by
@adasiko
No it is not. Here is the official statement.
https://support.mozilla.org/en-US/kb/open-h264-plugin-firefox -
denisftw last edited by
@jimunderscorep Vivaldi is not Electron-based. Brave is Electron-based, but Vivaldi is Qt-based, just like Opera. It is definitely slower than Opera though, not sure why.
@s4n-op You don't actually need to copy anything. As long as the installed Opera version is compatible with the installed Chromium codecs, everything works fine (except Netflix or Stan, but that's a different story).
-
A Former User last edited by A Former User
Please prove to me that vivaldi is qt based. It is slower than opera for that exact reason, it is built on an inferior toolkit.
And give me some time to find an article or something that proves that.Brave is electron based, but who cares
p.s. I assume you already know that electron, npm, nodejs etc is the exact same thing named differently.
---edit
Got it. Straight from wikipediaVivaldi is built around and based on web technologies such as HTML5, Node.js, React.js, and numerous NPM modules.
-
A Former User last edited by A Former User
@jimunderscorep said in why do I have copy libffmpeg.so?:
@adasiko
No it is not. Here is the official statement.
https://support.mozilla.org/en-US/kb/open-h264-plugin-firefoxYes, it’s only for video calls (not for HTML5 video). It’s very simple to check.
Firefox uses its open source alternative, OpenH264, to support video calls. OpenH264 is released in collaboration with Cisco and Mozilla. It is automatically installed by Mozilla on your Firefox browser to enable video calls with devices that require the H.264 codec.
-
A Former User last edited by A Former User
@adasiko
Let me post some screenshots to make myself understood.
Firefox 62 without libopenh264 onand with libopenh264 on
Guess which other browser has the same boxes UNticked on the above tables (because its the LACK of support that we discuss in this thread).
p.s. Removing libopenh264 also removed deadbeef, chromium and mpv from my system, pretty much everything that depends on ffmpeg's libs directly. These are 3 apps I use all the time, so there will be no more screenshots from me on that subject. I hope I made my point on how firefox works and how it would work if there was not for libopenh264. Have a nice day.
-
A Former User last edited by A Former User
@jimunderscorep said in why do I have copy libffmpeg.so?:
Firefox 62 without libopenh264 on
May be something change from 2017 year. https://github.com/cisco/openh264/issues/1529
https://andreasgal.com/2014/10/14/openh264-now-in-firefox/
Firefox currently uses OpenH264 only for WebRTC and not for the <video> tag, because OpenH264 does not yet support the high profile format frequently used for streaming video. We will reconsider this once support has been added. (c) 2014
But it's same thing. Firefox use SYSTEM codecs which depends from system authors.
And firefox can played h264 video in Ubuntu before Open264 has been created (with gstreamer0.10-plugins-bad or gstreamer0.10-plugins-ugly).And for original comment:
As for firefox... If it was not for cisco to provide ff with that royalty-free lib, firefox would still not have h264 support.
It's not true anyway.
-
yeswap last edited by yeswap
@jimunderscorep You asked "Do you also have chromium ffmpeg codecs along with vivaldi?"
I do. chromium-codecs-ffmpeg-extra version 65.0.3325.181-0ubuntu0.14.04.1 is installed. I don't recall installing it separately. I suspect it cane with chromium, which I did install.Re: "If you were an opera developer, would you risk breaking the playback of the other free formats in order to play one non free, even with an open source lib?" I'm not qualified to make that call. But any enhancement to a software project requires analysis, including risk assessment and cost/benefit analysis, as well as through testing before release.
-
A Former User last edited by A Former User
@yeswap said in why do I have copy libffmpeg.so?:
I do. chromium-codecs-ffmpeg-extra version 65.0.3325.181-0ubuntu0.14.04.1 is installed. I don't recall installing it separately. I suspect it cane with chromium, which I did install.
Then obviously h264 works on vivaldi because you provide it that "missing piece" it needs to work.
Oddly, ubuntu stopped upgrading chromium and all packages related to it, i.e. chromium ffmpeg codecs, on version 65 for ubuntu 14.04. So, in your situation, opera's h264 support will always be broken from v53 and on (opera 52 is based on chromium 65, opera 53 is based on chromium 66 etc), with or without installing chromium ffmpeg codecs because the package the repo provides is not new enough for it. So yes, from that point of view, vivaldi may be a better, if not the only, option for an up to date chromium-based browser.
You are on 14.04, aren't you?
-
yeswap last edited by yeswap
@jimunderscorep You're right. The latest stable Vivaldi is still based on Chrome 65 so that's why mpeg4 works in Vivaldi.
I also have both Chrome 67 and Opera 54 (based on Chrome 67) installed. Shouldn't Opera 54 be able to use the Chrome 67 mpeg4 codecs?
Yes. I'll stay on 14.04 until it's EOL in April 2019.