Video playback problems, troubleshooting and solutions on Linux.
-
Hello, I just installed Vivaldi to try it out however there is an issue playing Twitter videos (This media could not be played) and Facebook videos don't even load. YouTube videos work wonderfully, even @60 fps. Same for Twitch. No issue watching at source quality.
I have tried the guides provided on Vivaldi's page and others trying to install Flash but there is always something happening preventing me to go with all the steps. I am using Deepin Linux 15.4.1 - The Ubuntu one doesn't recognize add repository as a command, and the script one "can't work out the latest Flash".
What else can I do? Thank you. If you need any other information feel free to ask (and tell me how to get it) about it.Edit: I am using the latest Vivaldi version.
-
@gwen-dragon Hi Gwen, thanks a lot for your answer. Yes, as far as I know, Deepin was based on Ubuntu and when 15 came out on Debian. But some commands "can't be found". I wonder if there is something different about it. I have posted this on their forums, hopefully someone can help.
Now with what you provided, that goes a bit over me -teehee-. Do I need to copy-paste that whole thing (assume, the script) into a txt and name it 'something' placing it in a Vivaldi folder to install it? Sorry for the trouble, thanks again. -
@gwen-dragon Hello and thanks again, Gwen. I've been helped a bit on Deepin forums as well. I've been asked to troubleshoot the problem with Chrome and Brave to see if they worked. I've been told that Twitter and Facebook embedded media is in fact HTML5. I thought it was different since they didn't work but Twitch did (on Vivaldi or Opera). On Chrome and Brave they did work. Do I still follow your steps above installing your script or is this for something else?
Also, Flash is installed since accessing to speedtest I get the normal version and not the beta one, even from Vivaldi. So that works. Sorry for the hassle, just trying to keep this updated to find a solution for future reference
Edit: I installed your script with -f addition and now everything works! I do have a countdown for computer explosion though ;P - Thanks a lot! -
@t160915 Not sure which script you mean exactly but some of the scripts provided at the beginning of this thread are not meant to work on openSUSE. Just look at what the script does and do it manually.
I suspect you mean the one that downloads a package from Ubuntu repo and then puts it into Vivaldi's directory. This can be done with a browser and Dolphin or any file manager. The script also checks if the older package is present or some other simple thing like that, which you can also see in the file manager.
That script is trivial but requires knowledge of Linux to make it work on every distro. Or you might mean some other script. In any case, on my openSUSE everything works as expected but I came here with the same question 5-6 pages ago.
-
@t160915 I didn't say anything about Vivaldi repo.
Ruario's script gets "libffmpeg.so" <- not a link - and puts it into your home directory creating $HOME/.local/lib/vivaldi/libffmpeg.so and this script should run on openSUSE just fine - as is, no manual messing necessary. If I remember correctly it was Gwen's script that was meant only for Ubuntu or Debian based distros.
https://gist.github.com/ruario/bec42d156d30affef655#file-latest-proprietary-media-sh
This script also creates "oxideqt-codecs-extra-version.txt" file in the same directory but it's there only for future updates of libffmpeg.so using this script - Vivaldi ignores this .txt file, as far as I know. Vivaldi only picks up libffmpeg.so when it starts and if you have other versions of this file elsewhere don't worry about them - this place, in your home directory, takes the priority and Vivaldi ignores all the others.
These other versions of libffmpeg.so are not guaranteed to work anyway, we need to download the version made for Ubuntu. If you think it's weird and inconvenient it's understandable to feel this way, but H.264 is a proprietary codec protected by various patents and different browsers and different distros deal with it differently. It's complicated.
-
@t160915 At this point I can only ask to make sure you got libffmpeg.so and corresponding text file with version number in "/home/yourusername/.local/lib/vivaldi/" directory. Maybe you can delete them and run Ruario's script again to make absolutely sure you got it right.
Or you can download my copy of libffmpeg.so from dropbox, place it into that directory, restart Vivaldi, and see it works. Before you do that, rename the existing libffmpeg.so you got from Ruario's script or move it somewhere safe. My version is 1.21.5 according to accompanying oxideqt-codecs-extra-version.txt file, and it looks like I got the libffmpeg.so back in April. I haven't updated it since.
Here's my dropbox link, it should start download automatically.
https://www.dropbox.com/s/p7lkingsav7v1p2/libffmpeg.so?dl=1
If that doesn't work you need some serious troubleshooting.
-
Since my thread below, most videos runs perfect on Vivaldi at openSUSE tumbleweed. What is todo:
- Add Packman repository and enable it if not done: e.g. with Tumbleweed:
sudo zypper ar -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman - Install vivaldi from packman:
sudo zypper in vivaldi
Thats it. vivaldi from Packman includes since 1/2 a year the needed libffmpeg.so. On my 64bit installation I can find it in:
-rw-r--r-- 1 root root 1481776 21. Sep 16:43 /usr/lib64/vivaldi/lib/libffmpeg.so
and as owner you can find with rpm -qif /usr/lib64/vivaldi/lib/libffmpeg.so:
Name : vivaldi
Version : 1.12.955.36
Release : 4.1
Architecture: x86_64
Install Date: Fr 22 Sep 2017 18:14:33 CEST
Group : Productivity/Networking/Web/Browsers
Size : 178312520
License : SUSE-Freeware
Signature : RSA/SHA1, Do 21 Sep 2017 17:25:23 CEST, Key ID 45a1d0671abd1afb
Source RPM : vivaldi-1.12.955.36-4.1.src.rpm
Build Date : Do 21 Sep 2017 14:00:00 CEST
Build Host : localhost
Relocations : (not relocatable)
Packager : [email protected]
Vendor : http://packman.links2linux.de
URL : https://vivaldi.com/
Summary : Powerful and Personal Web Browser
Description :
Vivaldi browser is made with power users in mind by people who love the Web.
Distribution: Extra / openSUSE_Tumbleweed
/etc/default/vivaldi
/usr/bin/vivaldi
/usr/lib64/vivaldi
/usr/lib64/vivaldi/features.json
/usr/lib64/vivaldi/icudtl.dat
/usr/lib64/vivaldi/lib
/usr/lib64/vivaldi/lib/libffmpeg.so
[...] - Add Packman repository and enable it if not done: e.g. with Tumbleweed:
-
After the 1.12 update the flag for preferring HTML5 over Flash seems to of gone now, so dailymotion is asking for me to enable Flash to play its videos rather than using the HTML5 player.
I guess this is because of the Chromium update, any ideas how I can solve this? -
@ultraviolet Use an user agent switcher, change to anything (chrome, ff, opera) and html5 will be served.
Sad but true, until the world will reckon Vivaldi as a valid browser, you have to hide its identity. -
@t160915, Hi, I have the Vivaldi original .rpm but the ffmpeg package from Packman and H.264/MP4 from Quirksmode play fine on Opensuse 42.3/64.
I have also Chrome stable installed.Cheers, mib
-
@t160915 I am sorry, ffmpeg package seams not correct.
You can DL my ffmpeg.so > https://www.dropbox.com/s/kp2goakgqh3g3mx/libffmpeg.so?dl=0
and copy it to /home/user/.local/lib/vivaldi
When I remove it on my system .h264 is not working anymore, copy back, restart Vivaldi and work.
The start script of Vivaldi does not check Opensuse, are you on Opensuse too?Cheers, mib
-
@gwen-dragon, if I am honest I cant remember, time stamp is 05.04.2017 and sha1sum is 567bba9b5de230a6ce4fe724f8159d19e2faf1fe.
It is still confusing for me why Vivaldi does not use it´s own lib in /opt/vivaldi/lib,
it use lib in .local/lib/vivaldi. ?
The start script does not even search in .local.Cheers, mib
-
@ian-coog thanks, can you recommend a good one?
-
I was surprised to learn that Vivaldi has been accepted into Packman repository, it's great news, but now that I installed Vivaldi from that repo it doesn't pick up libffmpeg.so in ~/.local/lib/vivaldi and H264 videos won't play. I still have vivaldi-snapshot from Vivaldi's own repo and it works. Vivaldi-stable from Vivaldi repo works, too.
Perhaps Vivaldi from Packman looks for libffmpeg in some other place.
-
@stang said in Video playback problems, troubleshooting and solutions on Linux.:
I was surprised to learn that Vivaldi has been accepted into Packman repository, it's great news, but now that I installed Vivaldi from that repo it doesn't pick up libffmpeg.so in ~/.local/lib/vivaldi and H264 videos won't play. I still have vivaldi-snapshot from Vivaldi's own repo and it works. Vivaldi-stable from Vivaldi repo works, too.
Perhaps Vivaldi from Packman looks for libffmpeg in some other place.
Yes, see my listing - at my system libffmpeg.so was stored in:
/usr/lib64/vivaldi/lib/libffmpeg.so
And all videos work fine (some old with flash required for sure only if flash was installed/enabled). On the before linked test page - all videos was shown fine:
https://www.quirksmode.org/html5/tests/video.htmlAt my local user ls -als ~/.local/
total 12
4 drwxr-xr-x 3 root root 4096 Sep 2 18:14 .
4 drwx------ 8 root root 4096 Sep 27 20:27 ..
4 drwxr-xr-x 2 root root 4096 Sep 10 19:51 shareAdditional also no lib in any subfolder - check with find ~ -name "*ffmpeg*" shows no findings.
The only vivaldi folder seems to be config files in ~/.config/vivaldi/
@mib2berlin: you can easy find all files with locate comand if mlocate package was installed or with
sudo find / -name libffmpeg.so
also you can find out the source on the original full filename including path with:
rpm -qf /usr/lib64/vivaldi/lib/libffmpeg.soOn my side it confuses me, that you have packages in /opt what is only for external packages. All packages should be installed in /usr. Only possible reason if packman does it, was a compatibilty with old structures (so I've a totally new installed system, due to a HW upgrade for some weeks).
Proposal
- Remove vivaldi repo if used
sudo zypper rr "http://repo.vivaldi.com" - Remove vivaldi package
sudo zypper rm vivaldi - shift or remove (after backup for sure) all vivaldi subfolders in home
tgz ~/vivaldi.sik.tgz ~/.local/lib/vivaldi ~/.config/vivaldi && rm -rf ~/.local/lib/vivaldi ~/.config/vivaldi - Now install packman repo if not done
sudo zypper ar -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman - Now install vivaldi from packman
sudo zypper in vivaldi
From my point of view it should work now. So it works with Tumbleweed since the inclusion from libffmpeg.so in packman at about 1/2 a year or more on min. 6 different PCs and min. 5 different users.
Update:
To be sure that no old vivaldi files beside the saved ones are available
you can check it with:
sudo find / -name "*vivaldi*"
before you again installs vivaldi. - Remove vivaldi repo if used
-
@ubix thanks for the information but I use Vivaldi repro not Packman since 3 years and it is working.
I have to reinstall Vivaldi several times and it is always in /opt as Chrome, Teamviewer and so forth.
I used rpm -ihv for first install.
Never change a running system, may when Leap 43.1 is there.
Btw. : rpm -qf /opt/vivaldi-snapshot/lib/libffmpeg.so
vivaldi-snapshot-1.13.971.8-1.x86_64
Second libffmpeg.so in my system is in .local.Thanks again, mib
-
@mib2berlin said in Video playback problems, troubleshooting and solutions on Linux.:
@ubix thanks for the information but I use Vivaldi repro not Packman since 3 years and it is working.
I expect (not checked since years) that LEAP use a restricted version of ffmpeg due to license / royalty issues. Packman uses "self compiled" versions which not need to be licensed due to private usage.
http://packman.links2linux.de/
https://de.opensuse.org/Paket_Repositorys#PackmanI have to reinstall Vivaldi several times and it is always in /opt as Chrome, Teamviewer and so forth.
I used rpm -ihv for first install.
Never change a running system, may when Leap 43.1 is there.
Btw. : rpm -qf /opt/vivaldi-snapshot/lib/libffmpeg.so
vivaldi-snapshot-1.13.971.8-1.x86_64
Second libffmpeg.so in my system is in .local.Hmmm. Seems to be only with the trick/hack that you need the ffmpeg library in the user home. But anyway, before the error fix on packman, I made only a link
to the original file, so that the library will be updated in case of error fixes. In case of a security hole in ffmpeg, this won't be fixed and your PC can be cracked.ln -s /opt/vivaldi-snapshot/lib/libffmpeg.so ~/.local/lib/vivaldi/libffmpeg.so
See also:
https://software.opensuse.org/package/vivaldi-ffmpeg-codecs?search_term=Vivaldi+ -
@ubix, the libffmpeg.so in vivaldi/lib does not work for me if I link or copy it to .local.
If I use this lib I get no h.264 support.
Never get a cracked system since SuSE 5.0 so I am fine how it work now.Thanks, mib
-
@ubix Afaik, h.264 support was in Packman's libffmpeg BEFORE but was removed maybe a year, year and a half ago. That's when Ruario script for fetching working libffmpeg from Ubuntu's repo became necessary.
I doubt that Packman introduced this support back in and this explains to me why Vivaldi installed from Packman repo doesn't play h.264 even if there is libffmpeg.so in /usr/lib64/vivaldi/lib/ directory. Opera from openSUSE Non-Oss repo also has libffmpeg in /usr/lib64/opera/ that doesn't play h.264.
To make Vivaldi from Packman repo play h.264 video I copied libffmpeg.so created by Ruario's script from ubuntu repo in ~/.local/lib/vivaldi/libffmpeg.so into /usr/lib64/vivaldi/lib/
So, in my experience, Vivaldi from Vivaldi's own repo picks libffmpeg up where Ruario's script places it - in /home/username/.local/lib/vivaldi/ but Vivaldi from Packman needs Ruario's libffmpeg.so to be manually put into /usr/lib64/vivaldi/lib/. Manually putting files into /usr is not ideal, of course, but it works if one wants to have Vivaldi from Packman and maybe drop Vivaldi's own repo altogether.
-
@mib2berlin said in Video playback problems, troubleshooting and solutions on Linux.:
@ubix, the libffmpeg.so in vivaldi/lib does not work for me if I link or copy it to .local.
If I use this lib I get no h.264 support.Hmmm... that's confusing me, normally for the kernel there is no deviation if the file is a real file, soft- or hardlink
Never get a cracked system since SuSE 5.0 so I am fine how it work now.
How you will detect this? Have you done forensic analysis to verify this?
@stang said in Video playback problems, troubleshooting and solutions on Linux.:
@ubix Afaik, h.264 support was in Packman's libffmpeg BEFORE but was removed maybe a year, year and a half ago. That's when Ruario script for fetching working libffmpeg from Ubuntu's repo became necessary.
Hmmm.. that was deviating to my information.
As answer of my problem report I received from Packman team following Answer:[Solved] Add ffmpeg codecs for browsers based on Chromium.
zypper in chromium-ffmpeg-extraNow I tested this, and it was true. Only with installed chromium-ffmpeg-extra the decoding from h.264 works fine - see my test result with installed package:
html5te.st/18bdf338e34b2d0dI doubt that Packman introduced this support back in and this explains to me why Vivaldi installed from Packman repo doesn't play h.264 even if there is libffmpeg.so in /usr/lib64/vivaldi/lib/ directory. Opera from openSUSE Non-Oss repo also has libffmpeg in /usr/lib64/opera/ that doesn't play h.264.
To make Vivaldi from Packman repo play h.264 video I copied libffmpeg.so created by Ruario's script from ubuntu repo in ~/.local/lib/vivaldi/libffmpeg.so into /usr/lib64/vivaldi/lib/
This is not needed if chromium-ffmpeg-extra was installed
On openSUSE and Packman repository was activated - an easy
zypper in chromium-ffmpeg-extra
fix the problem.PS1: I tested this behavior on different PCs and the remark from Packman team was true.
PS2: chromium-ffmpeg-extra have no dependency to chromium and can be installed separately.