Изначально в браузере Opera не установлен кодек видео HTML5 H.264. Способ проверен в Линукс Минт 21.2 с браузером Opera One(версия: 102.0.4880.78)
Исправляем это:
Скачиваю этот файл
и перехожу к п.9 или можно создать файл самому начиная с п.1
1. На рабочем столе ПКМ -- Создать документ -- Пустой документ
2. Переименовываю документ в: opera_x264_support.sh
3. Открываю документ и вставляю текст:
#!/bin/bash
# Author: Marco Carletti
# Date: May 2022
# Version: 0.2.0
# Last update: July 17, 2023
# Changed comments, tested versions and added other distros info, such as Debian and Fedora.
# Thanks to everyone for comments, suggestions, fixes and testings!
# Tested on
# ---------
#
# Ubuntu 18.04
#
# v0.1.0
# 62.0.3331.116
# 63.0.3368.66
#
# Ubuntu 20.04
#
# v0.1.0
# 70.0.3728.95
# 73.0.3856.284
# 74.0.3911.107
# 74.0.3911.232
#
# v0.2.0
# 87.0.4390.25
#
# Ubuntu 22.04
#
# v0.2.0
# 99.0.4788.13
# Other distros
# THIS SCRIPT WILL NOT WORK AS IS IS. EACH OS REQUIRES SPECIFIC FIXES.
# Search in the comments for further details :)
# -------------
#
# Debian 11.4
# Requires `-c` option in `sudo` commands (credits: `gidici`)
#
# v0.2.0
# 90.0.4480.80
#
# Fedora 37
# Requires to copy the lib file to opera lib folder and chown to root (credits: `JPDucky`)
#
# v0.2.0
# 100.0.4815.54 (Opera One)
# Release notes
# -------------
#
# v0.2.0 Smarter use of curl options to fix failing permalink. Special thanks to `dotarr` for the fix!
# Last update: May 18, 2022
#
# v0.1.0 It is basically a cleaned version of what you can find in this post from Opera forum:
# Last update: Aug 18, 2020
# Retrieve latest FFMPEG release version.
# We get the complete url pointing to the latest zip package via the curl command.
#
# -L If the server reports that the requested page has moved to a different location
# this option will make curl redo the request on the new place.
#
# -o <file> Write output to <file> instead of stdout.
#
# -s Silent or quiet mode. Don't show progress meter or error messages.
#
# -w <format> Make curl display information on stdout after a completed transfer. The format is
# a string that may contain plain text mixed with any number of variables.
URL=`curl -L -o /dev/null -s -w %{url_effective} https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/latest`
FFMPEGVER=${URL%\"*}
FFMPEGVER=${FFMPEGVER##*/}
FFMPEGZIP=${FFMPEGVER}-linux-x64.zip
# Download library from complete url and save it locally.
# Archive is extracted in the working directory and immediately deleted.
#
# -L (see above)
# -O Write output to a local file named like the remote file we get.
# Only the file part of the remote file is used, the path is cut off.
curl -L -O https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/${FFMPEGVER}/${FFMPEGZIP}
unzip ${FFMPEGZIP}
rm ${FFMPEGZIP}
# Overwrite Opera libffmpeg (requires root privileges).
# Install (ie. copy) the latest version of the library in the system library folder.
# Before overwriting the Opera library file, make a copy... So we can manually rollback if we messed up things :)
sudo mv libffmpeg.so /usr/lib/x86_64-linux-gnu/libffmpeg_h264.so
sudo mv /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so.orig
sudo ln -s /usr/lib/x86_64-linux-gnu/libffmpeg_h264.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
4. Сохраняю и закрываю документ
5. ПКМ по документу -- Свойства -- Права -- В графе " Разрешить исполнять как программу" поставить "V"
6. Закрываю Свойства.
7. Два клика ЛКМ -- Запустить
8. На рабочем столе создастся файл "libffmpeg.so"
9. Открываю папку "Файлы" и в адресной строке пишу адрес: /lib/x86_64-linux-gnu
10. Папка "opera" ПКМ -- Открыть как root
11. Файл в папке opera "libffmpeg.so" скопировать и сохранить в какой либо удобной папке на раб. столе (для возврата, если, что пойдёт не так)
12. Созданный в п.8 файл "libffmpeg.so" переношу в открытую папку "opera"
13. Перезагружаю браузер Опера
Всё. Видео показывает.