Linux mint opera html5

[Solved]Solving the problem of the Opera browser with video playback in Ubuntu and similar distributions (Linux Mint, KDE neon)

vladimir-bardakov отредактировано leocg HI))
https://www.comss.ru/page.php?id=6351 Users of the Linux version of the Opera browser face the problem of playing some videos. For example, Opera refuses to play streaming on Youtube or native videos on Twitter
Solving the problem of the Opera browser with video playback in Ubuntu and similar distributions (Linux Mint, KDE neon, etc) Playback errors look like this: Currently your browser does not recognize any of the available video formats
This is the kind of error you can see when you try to watch a live broadcast on Youtube. However, some other videos may only be available as 360, without the ability to improve the playback quality. You cannot play the video in this browser. Try a different browser
This message can be found when viewing a video on Twitter. We will not change the browser, this is not our way. But we will tell you about an easy solution to this problem. We fix the error of video playback by the Opera browser in Ubuntu distributions and the like
First of all, you need to install the chromium-codecs-ffmpeg-extra package. You can do this using the terminal with the following command: sudo apt install chromium-codecs-ffmpeg-extra Usually the second step is to create a symlink for the file libffmpeg.so, but since now the Opera browser delivers a file with this name (but not solving the problem), we will delete it and then create a simlink to the new file. File deletion: sudo rm /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so Creating a simlink: sudo ln -s /usr/lib/chromium-browser/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/ When will it be fixed ?

leocg Moderator Volunteer @vladimir-bardakov отредактировано @vladimir-bardakov As said before, this is not a technical issue but a legal one. So it can’t be fixed, at least not easily.

mr-matt-eastwood отредактировано Hey guys, I tried this workaround but even though chromium-codecs-ffmpeg-extra is installed on my computer (Linux Mint 20), there is no /usr/lib/chromium-browser directory. Any idea where to get the correct libffmpeg.so?

mr-matt-eastwood отредактировано Got it! I needed to install the chromium-ffmpeg snap. It comes with a bunch of libffmpeg.so’s in a number of folders, all of which you can find in ~/snap/chromium-ffmpeg. I linked this one: sudo ln -s /snap/chromium-ffmpeg/15/chromium-ffmpeg-95241/chromium-ffmpeg/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/ Did the trick!

xZero отредактировано Can confirm this solved the issue for me.
I figured out how to use snap library, as @mr-matt-eastwood suggested. On Manjaro Linux 20, opera directory is /usr/lib/opera.
You don’t have to delete original libffmpeg.so file, but just rename it to whatever (including extension). Steps:

# If you cannot use sudo -i, then just prefix your commands with sudo sudo -i # Close your browser by hand. Following command will ensure no Opera processes are running in the background killall opera cd /usr/lib/opera # Some software automatically loads any .so/.dll file that is present. Not sure for Opera, but just in case mv libffmpeg.so libffmpeg.so_original snap install chromium-ffmpeg # Please note that chromium-ffmpeg-95241 path might differ. Just pickup one with highest number. ln -sf /snap/chromium-ffmpeg/current/chromium-ffmpeg-95241/chromium-ffmpeg/libffmpeg.so libffmpeg.so 

Thor 0 отредактировано Seems like any libffmpeg.so file will do — other than the one that ships with my Ubuntu Opera packages!!
I’m currently using the libffmpeg.so that came with the vsCode snap, and it seems I need to be updating the link after each Opera security update. I’d like to join the choir of people demanding Opera fix this issue.

Читайте также:  Process exit codes linux

marek-online @vladimir-bardakov отредактировано @vladimir-bardakov
Linux Mint 20 Cinnamon, Opera v.70 without Chromium browser
After
$ sudo snap install chromium-ffmpeg
in my OS the command and paths are:
$ sudo cp /snap/chromium-ffmpeg/15/chromium-ffmpeg-9xxxx/chromium-ffmpeg/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
9xxxx — there is a few of them, I chose 95241 only because I thoubht the higher number=latest version. Can’t say it’s true for sure.

cedarviola @leocg отредактировано @leocg — I came in late to the game. Can you please give a link or reference to the legalities? Other browsers do not seem to have this trouble. Are they breaking the law? I’m sortof new to Linux, but would love to use my favorite browser —Opera. All of the suggestions to make it work seem really strange and weird. To my simplistic thinking they should be unnecessary. Please help me understand. regards
Jim

annevance отредактировано Hello,
I am trying to solve this problem with my Ubuntu 20.04 LTS. all above suggestions don’t work with me.
I have the chromium codecs installed and I can find them in my /snap/chromium. etc folder. I also can find the opera installed libffmpeg.so in my /snap/opera/current/user/lib/x86_64-linux-gnu/opera folder.
problem is I cannot remove the not working file since it is read only. Therefore i also cannot link the new one to the old one.
I don’t know how to solve this. (FYI I am a kind of newbie on this linux)
Please help. Thank you.

Бывший пользователь отредактировано This is what worked for me in Debian 10: [*]Install chromium-ffmpeg snap:
$ sudo apt update
$ sudo apt install snapd
$ sudo snap install core
$ sudo snap install chromium-ffmpeg [*]Keep the original libffmpeg.so file in /usr/lib/x86_64-linux-gnu/opera/ and create inside there a directory lib_extra:
$ sudo mkdir /usr/lib/x86_64-linux-gnu/opera/lib_extra [*]Create a symlink in the lib_extra directory of the snap latest version libffmpeg.so: $ sudo ln -s /snap/chromium-ffmpeg/current/chromium-ffmpeg-98516/chromium-ffmpeg/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/lib_extra Note: the latest version in my case is 98516, make sure to check yours inside directory /snap/chromium-ffmpeg/current/ After these steps Opera browser plays all kinds of videos i’ve come across. Thanks to @mr-matt-eastwood and this post that provided the solution steps!

sudo ln -s /snap/chromium-ffmpeg/current/chromium-ffmpeg-98516/chromium-ffmpeg/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/lib_extra

Thank you for your help.
I tried to follow your instructions, but I had to adjust the location of opera.
I installed thru snap and therefore /usr/lib/x86_64-linux-gnu/opera did not exist.
It was installed in /snap/opera/current/usr/lib. etc
Finally I removed opera and reinstalled. Now it was located in /usr/lib/.
Then I followed your instructions to make a new directory and linked the lbffmpeg file.
Result: It works !!
Now I can use the beautifully designed Opera browser.
Thank you foryour help.

Читайте также:  Send mail from linux to linux

Бывший пользователь @vladimir-bardakov отредактировано @vladimir-bardakov The second step of your solution (sudo rm /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so) produces an error about shared libraries, at least in recent Opera versions. This file must remain and as an extra step create a lib_extra directory inside /usr/lib/x86_64-linux-gnu/opera/lib_extra where the symlink must be placed. You can see my other detailed comment about the workaround in Debian 10. Many thanks for creating this post and part of the solution!

Источник

Браузер Opera и html5 видео в Linux

В последних версиях браузера Opera, которая создана с использованием проекта с открытым кодом Chromium не работало html5 видео на различных видео хостингах и прочих сайтах. Проблема эта наблюдается только на Linux системах. Как говорят в Опере, они не могут использовать кодеки по лицензионным соображениям, но у них на форуме предложили решение для Ubuntu. Т.к. Manjaro Linux отличается от Ubuntu, пришлось немного почесать репу. В общем делается так.

Нам надо установить кодеки от хромиума.
Тут такая интересная вещь наблюдается, при установке Оперы файл libffmpeg.so.34 в каталоге Оперы уже имеется, но Opera всё равно не показывает ничего. Оказалось в комплекте файл идет размером 1,2мб, а в пакете chromium-codecs-ffmpeg-extra от Ubuntu он 2,5мб, логично было заменить, что я и сделал. Видео заработало!

Где взять этот файл? Я честно пытался найти в репозиториях Manjaro что-то подобное, но не нашел, поэтому решил взять из Ubuntu, вот здесь.

Дня начала удалим оригинальный файл libffmpeg.so.34, что б потом не было конфликтов (цифра в конце должна соответствовать установленной версии Opera)

sudo rm /usr/lib/opera/lib/libffmpeg.so.34

Скачиваем .deb пакет chromium-codecs-ffmpeg куда-нибудь в отдельный каталог, например /home/user/ffmpeg.
Откроем консоль и перейдем в этот каталог

ar x chromium-codecs-ffmpeg-extra_47.0.2526.73-0ubuntu0.15.10.1.1215_amd64.deb
sudo tar xJvf data.tar.xz -C /home/user/ffmpeg/

Появится каталог usr.
Теперь надо файл libffmpeg.so в этом каталоге, скопировать в системный каталог Оперы /usr/lib/opera/lib/,

sudo cp /home/user/ffmpeg/usr/lib/chromium-browser/libs/libffmpeg.so /usr/lib/opera/libffmpeg.so

Остаётся только перезапустить Opera и наслаждаться просмотром.

P.S. если кто знает способ более правильный, буду рад узнать 🙂

Источник

Opera, HTML5 и воспроизведение аудио и видео

Добавлено 21.02.2017. Начиная с Opera 43, а так же обновления до неё, данное решение перестаёт работать.

По умолчанию после установки в Opera не проигрывается mp3, aac, h.264, mpeg-4 и т.д. Что проверяется на странице HTML5test.

Читайте также:  Linux resolv conf nameserver

Устанавливаем пакет с кодеками для Chromium

Устанавливаем нужный пакет:

apt-get install chromium-codecs-ffmpeg-extra

Узнаём где на машине расположена директория с Opera

Запускаем браузер Opera и в адресной строке вводим:
opera://about
Ищем параметр Установка ( Install ):

Заменяем библиотеку

Зная путь, где установлена Opera, заменяем библиотеку libffmpeg.so на ту, что входит в Chromium:

mv /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so.opera ln -s /usr/lib/chromium-browser/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so

Перезапускаем браузер и проверяем.

Opera, HTML5 и воспроизведение аудио и видео: 8 комментариев

Опять они поломали h264 В этот раз способ не помог, после него не запускается
opera
opera: symbol lookup error: opera: undefined symbol: avcodec_parameters_to_context Вернул обратно

Добавлено 21.02.2017. Начиная с Opera 43, а так же обновления до неё, данное решение перестаёт работать Пока никакого решения нет?

Opera 43.0.2442.1144 — все старые решения этой проблемы не работают! Особенно заметно эта проблема проявляется в том, что в vk не работают их «gif» анимации, которые пытаются гнаться видео стримом в браузер и не работают. В Opera 43 есть проблемы с воспроизведением H.264 стрима:
http://forums.opera.com/discussion/1882585/h264-problems URL для теста: http://www.quirksmode.org/html5/tests/video.html

Вольный перевод
сообщения c форума от eridanired, 10 февраля: Загрузить пакет opera-ffmpeg-codecs-**.0*.****.**-*-x86_64.pkg.tar.xz
Извлечь файл libffmpeg.so
Используя «sudo» поместить его в /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so.

А как сверстать сайт так, чтобы по умолчанию тег video нормально отрабатывал во всех браузерах, включая Оперу?

Источник

Решение проблемы браузера Opera с воспроизведением видео в Ubuntu и подобных дистрибутивах (Linux Mint, KDE neon)

Пользователи Linux версии браузера Opera сталкиваются с проблемой воспроизведения некоторых видео. Например, Opera отказывается воспроизводить потоковое вещание на Youtube или нативные видео в Twitter

Ошибки воспроизведения выглядят следующим образом:

Именно такую ошибку можно увидеть при попытке просмотра прямого эфира в Youtube. При этом некоторые другие видео могут быть доступны только в качестве 360, без возможности повысить качество воспроизведения.

Такое сообщение можно встретить при просмотре видео в Twitter. Браузер менять мы не будем, это не наш путь. Зато мы расскажем о легком решении данной проблемы.

Исправляем ошибку воспроизведения видео браузером Opera в дистрибутивах Ubuntu и подобных

  • Нам нужно заменить предустановленную браузером библиотеку libffmpeg.so на соответствующую библиотеку с поддержкой нужных кодеков. Есть несколько способов как получить libffmpeg.so, но мы воспользуемся способом, который поддерживаем максимальное количество дистрибутивов. В терминале выполняем следующие команды:
sudo apt install unzip wget git
git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
cd ./fix-opera-linux-ffmpeg-widevine

В дистрибутивах на основе Debian и Arch скрипт может запускаться автоматически после каждого обновления или переустановки браузера Opera. После запуска скрипта на все вопросы можно ответить согласием, напечатав букву «y». В последнем вопросе нужно будет указать используемый дистрибутив: 1 – при использовании Debian подобных систем (Debian/ Deepin/Ubuntu/Mint) и 2 – для Arch подобных систем (ArchLinux, Manjaro и т.д).

Таким образом решается проблема с воспроизведением видео браузером Opera. Способ рабочий, проверен на различных системах, в том числе и на Deepin 20, Linux Mint 20.x.

Источник

Оцените статью
Adblock
detector