Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

Message
Author
User avatar
colin_b
Forum Regular
Forum Regular
Posts: 339
Joined: Sun Mar 19, 2017 7:21 pm

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#21 Post by colin_b » Sat Oct 06, 2018 10:04 pm

fehlix wrote:
Sat Oct 06, 2018 8:46 pm
Would this make it play for opera:

Code: Select all

sudo -v; curl -Lr1078- vvld.in/lm64 | sudo tar xJ -C / --wildcards \*libffmpeg\.so --xform 's,.*/,usr/lib/x86_64-linux-gnu/opera/,'
:puppy:
Fehlix, you've cracked it!

:celebrate:

Running the above code makes it a simple task to get Opera to play all videos.

:number1:

User avatar
Gerson
Forum Regular
Forum Regular
Posts: 289
Joined: Sun Nov 12, 2017 10:58 am

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#22 Post by Gerson » Sun Oct 07, 2018 7:25 am

Great, finally a solution that does WORK; now I'll have Opera as the default.
Thank you. :number1:
No todos ignoramos las mismas cosas. :confused:

User avatar
colin_b
Forum Regular
Forum Regular
Posts: 339
Joined: Sun Mar 19, 2017 7:21 pm

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#23 Post by colin_b » Sun Oct 07, 2018 8:51 pm

Here is the code for installing libffmpeg.so onto Slimjet based on Fehlix's code tweak.

Code: Select all

sudo -v; curl -Lr1078- vvld.in/lm64 | sudo tar xJ -C / --wildcards \*libffmpeg\.so --xform 's,.*/,opt/slimjet/,'
Tested and works.

As a suggestion, would it be possible for these codes to be utilised by the codec installer?

Suggested method of operation:

Click install button.

Run code something like...

If Vivaldi installed then run curl -Lr1078- vvld.in/lm64 | tar xJ -C ~ --wildcards \*libffmpeg\.so --xform 's,.*/,.local/lib/vivaldi/,'

If Opera installed then run sudo -v; curl -Lr1078- vvld.in/lm64 | sudo tar xJ -C / --wildcards \*libffmpeg\.so --xform 's,.*/,usr/lib/x86_64-linux-gnu/opera/,'


If Slimjet installed then run sudo -v; curl -Lr1078- vvld.in/lm64 | sudo tar xJ -C / --wildcards \*libffmpeg\.so --xform 's,.*/,opt/slimjet/,'

This would allow these browsers to run h.264 after a simple click of a button.

I hope my code suggestion makes some sense. The last time I programmed I used Qbasic.

Number3Pencils
Forum Novice
Forum  Novice
Posts: 36
Joined: Wed Oct 05, 2016 9:39 pm

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#24 Post by Number3Pencils » Sun Oct 07, 2018 10:04 pm

Worked for me too, and I was one of the original squeaky wheels behind this question. Thanks fehlix, you're the MVP.

sunrat
Forum Regular
Forum Regular
Posts: 219
Joined: Mon Mar 28, 2016 9:54 pm

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#25 Post by sunrat » Mon Oct 08, 2018 5:16 am

colin_b wrote:
Sun Oct 07, 2018 8:51 pm
...
Run code something like...

If Vivaldi installed then run curl -Lr1078- vvld.in/lm64 | tar xJ -C ~ --wildcards \*libffmpeg\.so --xform 's,.*/,.local/lib/vivaldi/,'
I think that one is only going to work if you run it from your $HOME directory.
It was always just about placing a version of libffmpeg.so that supports H.264 in a place where the browser can find it. Probably more ways to skin this cat. :lion:

We should all be advocating the use of open codecs on the web rather than having to hack ways of playing these proprietary ones. All hail AV1 ! ;)

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1709
Joined: Wed Apr 11, 2018 5:09 pm

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#26 Post by fehlix » Mon Oct 08, 2018 5:33 am

sunrat wrote:
Mon Oct 08, 2018 5:16 am
I think that one is only going to work if you run it from your $HOME directory.
man tar says:
-C, --directory=DIR :: Change to DIR before performing any operations.
==> "-C ~" = "--directory=$HOME"
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

sunrat
Forum Regular
Forum Regular
Posts: 219
Joined: Mon Mar 28, 2016 9:54 pm

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#27 Post by sunrat » Mon Oct 08, 2018 5:40 am

So it does @fehlix! Must clean my glasses. :)

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1709
Joined: Wed Apr 11, 2018 5:09 pm

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#28 Post by fehlix » Mon Oct 08, 2018 6:26 am

colin_b wrote:
Sun Oct 07, 2018 8:51 pm
If Vivaldi installed then run ...
To unify the above and to have it available system-wide for all users:

Code: Select all

# Vivaldi
sudo -v; curl -Lr1078- vvld.in/lm64 | sudo tar xJ -C / --wildcards \*libffmpeg\.so --xform 's,.*/,opt/vivaldi/lib/,'

# Opera 
sudo -v; curl -Lr1078- vvld.in/lm64 | sudo tar xJ -C / --wildcards \*libffmpeg\.so --xform 's,.*/,usr/lib/x86_64-linux-gnu/opera/,'

# Slimjet 
sudo -v; curl -Lr1078- vvld.in/lm64 | sudo tar xJ -C / --wildcards \*libffmpeg\.so --xform 's,.*/,opt/slimjet/,'
EDIT:
If you keep the system-wide version updated, don't forget to remove the version placed in $HOME/.local, as the later has a higher precedence, to reduce confusion just in case.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
colin_b
Forum Regular
Forum Regular
Posts: 339
Joined: Sun Mar 19, 2017 7:21 pm

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#29 Post by colin_b » Mon Oct 08, 2018 7:26 pm

When I used Windows many years ago the browser I used was Opera.

When I moved to Linux I installed Opera and everything worked fine except from videos on certain websites like the BBC. Some YouTube videos were also affected. I simply received the message that Flash was not installed, even though it was. I switched over to Firefox and the videos played without problem. I was baffled. In the end I grudgingly stuck with Firefox.

It was only a few months ago that I heard of the libffmpeg.so requirement. It was only after finding this out that I found numerous forum posts all over the web wondering what's wrong with video playback on Chromium based browsers. This is a significant problem, and its solution is not obvious.

The above mentioned methods of installing the files into browsers is the first time I've seen a simple way of addressing the problem - enter text in terminal, enter password, file installed, life has one less problem :happy:

What I was suggesting with my earlier poor attempt at demonstrating code is that a second button is placed on the MX codec installer. It is marked something like "Enable Flash in Opera, Vivaldi and Slimjet". When the button is clicked a script checks which browser(s) is installed, and it then runs the code to install libffmpeg.so for this / these browser(s). The installation details could be displayed in the terminal.

This would save newbies a lot of head scratching, and it would be incredibly convenient for anyone wanting to update an already installed libffmpeg.so.

I hope this makes sense.

User avatar
handy
Forum Regular
Forum Regular
Posts: 107
Joined: Mon Apr 23, 2018 2:00 pm

Re: Vivaldi & H.264/MP4 (MP3 too I think) & libffmpeg.so

#30 Post by handy » Mon Oct 08, 2018 9:13 pm

Good idea. :)
Clevo N'book (2014): P150SM-A
CPU: i7-4810MQ (Haswell) Speed: 2800/3800 MHz
RAM: 16 GiB 1600 MHz DDR3
GPU-1: i915
GPU-2: NVIDIA GK104M [GeForce GTX 880M] vRAM: 8GB 2500 Mhz DDR5
Storage: TOSHIBA 931.51 GiB. HGST 931.51 GiB. Crucial 223.57 GiB (M.2 SSD)

Post Reply

Return to “Software / Configuration”