Skip to content

Instantly share code, notes, and snippets.

@jadia
Last active July 5, 2020 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadia/ea7a44548bb2637f2305b3d52d9c36ea to your computer and use it in GitHub Desktop.
Save jadia/ea7a44548bb2637f2305b3d52d9c36ea to your computer and use it in GitHub Desktop.
Facebook cannot run videos in Opera and firefox

REFER TO BELOW video_fix_opera.md FILE FIRST. THIS IS A BACKUP METHOD IF THAT METHOD DOESN'T WORK

If you do not get the file from your system, you can extract the file from the chromium package. Follow below instructions to get the package. Original post. Copied here, just in case owner decides to delete the gist.

Install libffmpeg.so in vivaldi

This short instruction shows how to install libffmpeg.so in vivaldi to play e.g. mp4 videos.

I use the ubuntu repository for that but this is just one way to get the file.

1. Download .deb package

Go to http://security.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/ and choose the latest chromium-codecs-ffmpeg-extra and download it.

For example: chromium-codecs-ffmpeg-extra_58.0.3029.110-0ubuntu1.1354_amd64.deb

2. Get data.tar.xz out of deb file

The library is in a tar.xz ball inside the .deb file. Extraxt it with

ar x <your-deb-file> data.tar.xz

Now you have the data.tar.xz file next to your .deb file.

3. Extract library

Just use tar with tar -xJf data.tar.xz --strip-components=4 ./usr/lib/chromium-browser/libffmpeg.so to do so. There is now the file libffmpeg.so next to the data.tar.xz.

4. Copy libffmpeg.so to vivaldi folder

Check where vivaldi is and copy the library to this directory.

E.g. cp ./libffmpeg.so /opt/vivaldi/lib/

Facebook videos do not run in Opera and Firefox

Solution for Opera:

The devs are very lazy to update the libffmpeg.so file. Hence use the below method to get it work.

Just find / -type f -name libffmpeg.so in your system, and replace it the one that you've found with the one that is located on /usr/lib/x86_64-linux-gnu/opera in my case, I took it from the slack installation and the size is 2.9mb vs the "original" that it size is 1.7mb.

Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment