This page is no longer maintained, go to https://help.vivaldi.com/article/html5-proprietary-media-on-linux/ for help
This comment has been minimized.
This comment has been minimized.
Chromium patches FFMpeg. The default FFMpeg provided on distros does not include these patches and hence it is incompatible. There is also the issue that the system version is often a different version (older or newer) so would probably be incompatible anyway, in addition to the patches issue. |
This comment has been minimized.
This comment has been minimized.
@ruario What do you think about this conversation with Opera developers? Seems like Chromium can be patched to use system ffmpeg/libav. |
This comment has been minimized.
This comment has been minimized.
On my Debian machine I had to install several dev-packages before being able to build the ffmpeg lib: For pulseaudio support: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@matsbtegner they are being updated from time to time so the herecura links are mostly only usefull for Arch Linux users |
This comment has been minimized.
This comment has been minimized.
@matsbtegner Thanks, indeed I have not maintained this page as well as I would hope. Though it is up to date as I write this |
This comment has been minimized.
This comment has been minimized.
@ruario do you have any web page to validate the installation ? |
This comment has been minimized.
This comment has been minimized.
just a dumb question: if there are sources and can be installed right in place, why is the support not included in the snapshots and the beta by default? just tried the herecura repos from Fedora 23 using the latest vivaldi snapshot and it works fine |
This comment has been minimized.
This comment has been minimized.
@titilambert I linked to a suitable page several times in the instructions, (see my statements: "You can then test support on this page"). Use the first video labelled H.264/MP4. If is plays, all is good. ;) P.S. If you just want to test audio support, this page is also handy. |
This comment has been minimized.
This comment has been minimized.
@JuanCAlpizar Not a dumb question. If you are unsure, it is always best to ask. HTML5 media (audio and video) allows for the use of several different codecs. The most common ones (H.264, MP3 and AAC) are what I would call "proprietary" media codecs because they are patented and hence require various licenses to distribute software that can decode them. Each user costs the person distributing the software money. To an extent, these costs reduce as you gain more users (e.g. the licensor for H.264 gives discounts over certain numbers of users and you eventually hit a cap where these is no additional cost) but at our current size it is not viable for us to pay for a license for all our users and still fund the development of the browser. The repositories I have linked to (that include binaries capable of decoding these codecs) are not associated with us. In addition, I am not a lawyer and cannot give legal advice but if I was to guess as to how they are able to distribute, I would assume that in the case of the Ubuntu repositories, they either paid for the licenses or they have some reason why they believe that they do need to pay for licenses. In the case of the herecura repo, it is maintained by a single individual in Europe, where software patents are not valid (to the best of my knowledge), so again I guess he should be fine. |
This comment has been minimized.
This comment has been minimized.
I needed to install the sysroot (Debian Wheezy) with |
This comment has been minimized.
This comment has been minimized.
The herecura repo now also contains ffmpeg-codecs for vivaldi-stable: |
This comment has been minimized.
This comment has been minimized.
ffmpeg-codecs for vivaldi-stable (v1.1) [herecura repo]: |
This comment has been minimized.
This comment has been minimized.
With some x86 Linux it happend that Vivaldi on my Netbook MSI WInd U110 wont play MPEG4/H265 videos, even after installing package chromium-codecs-ffmpeg-extra or adding libffmpeg.so from herecura. I opened vivaldi://gpu and discovered that GPU section is all shown as Software, but then CPU should render the videos. But that did not work. Video was Black or White, only with sound. I could workaround the problem by starting vivaldi from shell as |
This comment has been minimized.
This comment has been minimized.
Vivaldi will not open once the stable releases have been installed to /opt/vivaldi/lib/libffmpeg.so. Have to install the default libffmpeg.so to get it to launch again. Anybody else getting this to work for stable Vivaldi? EDIT: Nevermind, I was using the wrong bit version... |
This comment has been minimized.
This comment has been minimized.
links are outdated. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
On Fedora 23, I have Chromium installed as well from the "Russian Fedora" repository. If you have that then you can just create a symlink pointing to |
This comment has been minimized.
This comment has been minimized.
Some systems will not do hardware video decoding unless you route things via a suitable VDPAU driver, I have put together instructions for Debian jessie with an integrated Intel GPU which may help others. |
This comment has been minimized.
This comment has been minimized.
Thanks jimdigriz. However, the directory in your instructions does not exist. Everything worked fine in Vivaldi on Ubuntu until the latest snapshop. None of the other suggestions above work either. The flash recommended by https://help.vivaldi.com/article/install-flash-player-for-vivaldi/ can be installed but is disabled without any means to enable it. The suggestion at https://vivaldi.net/en-US/forum/vivaldi-browser-for-linux/14100-ubuntu-flash#71518 does not work either so its back to using Firefox unless I want to use Chrome itself or the chrome clone Opera. ... sign Oh well, maybe in the future if Vivaldi grows, licensing will not be an issue. Regardless, thanks for all the suggestions posted above. |
This comment has been minimized.
This comment has been minimized.
@matsbtegner @xchronox0 Thanks I finally updated the links @DesertOutlaw for Flash use this. For H264 the document is now updated and Vivaldi has been made more robust in accepting a wider range of library versions. |
This comment has been minimized.
This comment has been minimized.
Thanks for all, btw just some advice. The AUR version seems to be having some problems when compiling so use the herecura one ;) |
This comment has been minimized.
This comment has been minimized.
For my debian system tracking the testing distribution, the easiest of all to run h264 videos on vivaldi was to add a ubuntu repository and a preferences file to exclude all ubuntu packages other than chrome-ffmpeg-codecs-extra. This will also allow new versions of chromium-ffmpeg-codecs-extra to be found and installed in the normal manner used for all other packages. /etc/apt/sources.list: added an ubuntu repository: # chrome-ffmpeg-extra-codecs from ubuntu to play H264 videos: /etc/apt/preferences.d: added a preference file to exclude all of ubuntu except for chrome-ffmpeg-codecs-extra: Explanation: do not block ffmpeg-extra but lower priority than debian After installing chrome-ffmpeg-codecs-extra, videos from the test page http://www.quirksmode.org/html5/tests/video.html as well as videos from movies.yahoo.com, netflix and amazon all run well! => apt-cache policy chromium-codecs-ffmpeg-extra |
This comment has been minimized.
This comment has been minimized.
Hi! I tried to install ffmpeg library to latest stable (Vivaldi 1.8) but it is not working. I tried to use more recent chromium (57.0.2987.99 to be exact) but it failed on this error during gyp phase:
Any ideas what is going on? |
This comment has been minimized.
This comment has been minimized.
I would avoid against compiling your own replacement libffmpeg.so unless you are a package maintainer on a distro and want to offer a supporting package for your users. It is a lot of effort for little reward. Far better to run the attached script, which will fetch a suitable libffmpeg for you from Ubuntu and place it in a location Vivaldi will find it. I have re-written most of the script. You no longer need root/sudo/superuser privileges to run it as the file is places in a user owned location. |
This comment has been minimized.
This comment has been minimized.
The script worked great for me on OpenSUSE Tumbleweed with Vivaldi 1.8. Thanks! |
This comment has been minimized.
This comment has been minimized.
@tphecca great. Nice to hear it |
This comment has been minimized.
This comment has been minimized.
Wow, just thank you :) Works on Solus ! |
This comment has been minimized.
This comment has been minimized.
on opensuse leap, you can also install vivaldi-ffmpeg-codecs (though I did have to create a symlink /usr/lib64/vivaldi/lib/libffmpeg.so pointing to /opt/vivaldi/lib/libffmpeg.so) |
This comment has been minimized.
This comment has been minimized.
i also tested the latest-proprietary-media.sh script now on opensuse leap 42.2. works flawlessly (netflix also tested). ruario, you rock :) |
This comment has been minimized.
This comment has been minimized.
Worked for me in Fedora 25 today; thanks! |
This comment has been minimized.
This comment has been minimized.
Works on Ubuntu 16.04, thanks! |
This comment has been minimized.
This comment has been minimized.
Hey, thanks a lot! This fix works on Solus OS, as well. |
This comment has been minimized.
This comment has been minimized.
Woot! Worked on Fedora 25. Last hurdle to switch to vivaldi from firefox. |
This comment has been minimized.
This comment has been minimized.
Works on Debian 10 EDIT: |
This comment has been minimized.
This comment has been minimized.
With the slow death of Unity it seems like the chromium-codecs-ffmpeg-extra is now (once again) the most likely source of this lib to be updated (for a while there it was oxideqt-codecs-extra), so I have updated this gist accordingly. If you were having issues, try again! |
This comment has been minimized.
This comment has been minimized.
May worth to change this line to: LOUD_DL="wget --config=/dev/null" in case someone has |
This comment has been minimized.
This comment has been minimized.
I am a little bit uncomfortable with doing that @powerman as they might have other options in their |
This comment has been minimized.
This comment has been minimized.
I added ARM support to the |
This comment has been minimized.
This comment has been minimized.
I just runed the sh file. |
This comment has been minimized.
This comment has been minimized.
Thank you. Well done. |
This comment has been minimized.
This comment has been minimized.
Any chance you can add a username to the path for STAGINGDIR? With multiple system users I have to manually wipe that directory before I can run the script for another user, something like this,
|
This comment has been minimized.
This comment has been minimized.
I should have mentioned this a while back but the Arch method of building your own libffmpeg.so is really slow, overcomplicated, and requires downloading the huge Chromium source tarball. Everything you need is in the FFmpeg sources, you just have to build it in a certain way. I wrote a patch for this, which was rejected by FFmpeg upstream, but we use it in Gentoo. Include the new Makefile in the top-level Makefile and do this: ./configure --disable-shared --enable-static --enable-pic --extra-cflags="-DFF_API_CONVERGENCE_DURATION=0"
make libffmpeg
sudo make install-libffmpeg |
This comment has been minimized.
This comment has been minimized.
@blackjackshellac why don't you just define $TMP to be somewhere else locally? |
This comment has been minimized.
This comment has been minimized.
@chewi I will investigate, thanks |
This comment has been minimized.
This comment has been minimized.
@chewi, i am a gentoo user and i tryed to use the generated libffmpeg.so with ffmpeg sources but the current vivaldi-snapshot does not detect the generated lib. And if i force the library, replacing the original in vivaldi-snapshot, it just broke the video reproduction. |
This comment has been minimized.
This comment has been minimized.
@feilee Thanks for confirmation. I was just about to try myself. This makes sense to me as ffmpeg within Chromium is heavily patched, i.e. AFAIK this could not be a true statement
So I was suprised anyone claimed it worked |
This comment has been minimized.
This comment has been minimized.
The script works with fedora 28 too. Thanks! |
This comment has been minimized.
This comment has been minimized.
Just a quick thanks for the script...been banging my head on the wall with this one trying everything else I can think of. Works like a charm in bunsenlabs with vivaldi stable. |
This comment has been minimized.
This comment has been minimized.
ATTN: Linux Mint 17 64 (Qiana, based on Ubuntu 14.04) users: I downloaded
I manually extracted the After restarting Vivaldi all videos played perfectly. |
This comment has been minimized.
This comment has been minimized.
The patch doesn't work. https://bugs.gentoo.org/653448 |
This comment has been minimized.
This comment has been minimized.
Hi Everyone, I just installed Vivaldi into my Linux KDE Neon user edition based on Ubuntu 18.04 Bionic. And I really like it, but I had trouble with x264/mp4 videos on the test page? After reading this thread, I checked to see if "chromium-codecs-ffmpeg-extra" was installed in "Synaptic Package Manager (SPM)" and it was installed version 75. I also ran vivaldi from the console terminal prompt which recommended installing an older version.
To add support for proprietary media, issue the following command and restart
I thought I would just try copying the "libffmpeg.so" from "/usr/lib/chromium-browser/" into the Vivaldi "lib" folder which in my Linux KDE Neon is "/opt/vivaldi/lib/" and restarted Vivaldi and it works great; only vivaldi when run from the console terminal still show I need to install it? Hope this helps ... |
This comment has been minimized.
This comment has been minimized.
<OBRIGADO procurei muito por isto -----> http://www.quirksmode.org/html5/tests/video.html |
This comment has been minimized.
This comment has been minimized.
It's cool but I am not sure it is the easiest. Just start Vivaldi from a terminal and it gives you a one line command to enable H.264 and AAC https://help.vivaldi.com/article/html5-proprietary-media-on-linux/#example |
This comment has been minimized.
This comment has been minimized.
Oh and that quirksmode page is not maintained and does not work
The Vivaldi help page has it's own test video though |
This comment has been minimized.
This comment has been minimized.
On Fedora 32 you only need to install the GStreamer h.264 package which you can do from Gnome Software. I just did that. Videos work now. |
This comment has been minimized.
This comment has been minimized.
@DanMan No that is incorrect. Vivaldi will not make use of that package. Vivaldi will fetch the files it needs itself and this document and steps are no longer relevant or valid. |
This comment has been minimized.
Thanks for this solution for all :) I have one question. Why we need use custom libffmpeg? We cant use default ffmpeg?