在 openSUSE15.4leap 中安装许多解码器让火狐浏览器 Firefox 播放网页视频
实际难题:
在 opensuse15.2 和 15.3leap 中安装 flash-player、ffmpeg-4、gstreamer-plugins 和 vlc-codecs 就能让火狐浏览器 Firefox 播放酷狗、网易云音乐、优酷、哔哩哔哩网站的视频,但在 opensuse15.4 却是不能播放视频,提示:“没有找到支持的视频格式和 MIME 类型”
系统 opensuse15.4leap 自带火狐浏览器 Firefox 版本是 91.8.0esr (64 位)
参考文章:
《由于版权保护,你需要自己为浏览器安装多媒体解码器。详见:解码器》
https://zh.opensuse.org/解码器
《多媒体编解码器——来自中国科学技术大学 ustc 的 opensuse 非官方指南》
https://opensuse-guide.ustclug.org/codecs.php
localhost:~ # zypper addrepo -cfg ‘Index of /packman/suse/openSUSE_Leap_15.4/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror’ tuna-packman
localhost:~ # zypper repos
由 guoyunhe 开发的 opi (Open Build Service Package Installer) 可以在 Leap 和 Tumbleweed 上快速安装解码器。
localhost:~ # zypper install opi
localhost:~ # opi codecs
Do you want to install codecs from Packman repository? (Y/n) Y 输入大写字母 Y 再按回车键
自动安装 50 个解码器软件包,就能播放酷狗、网易云音乐、优酷、哔哩哔哩网站的视频,让我很奇怪的地方是它竟会连带安装网易云音乐客户端
安装编解码 H.264 视频的 OpenH264 解码器
localhost:~ # zypper addrepo Index of /openh264/openSUSE_Leap repo-openh264
localhost:~ # zypper install gstreamer-1.20-plugin-openh264
Checking for file conflicts: …[done]
( 1/50) Installing: chromium-ffmpeg-extra-103.0.5060.114-150400.2.pm.1.x86_64 …[done]
( 2/50) Installing: libmodplug1-0.8.9.0+git20170610.f6dd59a-pm154.3.1.x86_64 …[done]
( 3/50) Installing: libtag1-1.13-pm154.2.2.x86_64 …[done]
( 4/50) Installing: flash-player-32.0.0.465-pm154.3.1.x86_64 …[done]
( 5/50) Installing: libavutil55-3.4.12-pm150400.1.1.x86_64 …[done]
( 6/50) Installing: libx264-164-0.164+git20220602.baee400f-pm154.1.1.x86_64 …[done]
( 7/50) Installing: libdca0-0.0.7-pm154.1.4.x86_64 …[done]
( 8/50) Installing: libvlccore9-3.0.18-150400.2.6.pm.1.x86_64 …[done]
( 9/50) Installing: libopencore-amrwb0-0.1.6-pm154.1.1.x86_64 …[done]
(10/50) Installing: libavutil56_70-4.4.4-150400.1.pm.1.x86_64 …[done]
(11/50) Installing: libxvidcore4-1.3.7-pm154.1.3.x86_64 …[done]
(12/50) Installing: libfdk-aac2-2.0.2-pm154.1.3.x86_64 …[done]
(13/50) Installing: libopencore-amrnb0-0.1.6-pm154.1.1.x86_64 …[done]
(14/50) Installing: libde265-0-1.0.9-pm154.1.1.x86_64 …[done]
(15/50) Installing: libswresample2-3.4.12-pm150400.1.1.x86_64 …[done]
(16/50) Installing: libswscale4-3.4.12-pm150400.1.1.x86_64 …[done]
(17/50) Installing: libpostproc54-3.4.12-pm150400.1.1.x86_64 …[done]
(18/50) Installing: libvlc5-3.0.18-150400.2.6.pm.1.x86_64 …[done]
(19/50) Installing: libavresample4_0-4.4.4-150400.1.pm.1.x86_64 …[done]
(20/50) Installing: libswscale5_9-4.4.4-150400.1.pm.1.x86_64 …[done]
(21/50) Installing: libpostproc55_9-4.4.4-150400.1.pm.1.x86_64 …[done]
(22/50) Installing: libswresample3_9-4.4.4-150400.1.pm.1.x86_64 …[done]
(23/50) Installing: gstreamer-plugins-ugly-codecs-1.20.1-pm154.1.5.x86_64 …[done]
(24/50) Installing: gstreamer-plugins-bad-codecs-1.20.1-pm154.3.1.x86_64 …[done]
(25/50) Installing: libheif1-1.15.2-150400.5.pm.1.x86_64 …[done]
(26/50) Installing: libavcodec57-3.4.12-pm150400.1.1.x86_64 …[done]
(27/50) Installing: libavcodec58_134-4.4.4-150400.1.pm.1.x86_64 …[done]
(28/50) Installing: libavformat57-3.4.12-pm150400.1.1.x86_64 …[done]
(29/50) Installing: libavformat58_76-4.4.4-150400.1.pm.1.x86_64 …[done]
(30/50) Installing: libSPIRV-Tools-suse15-2020.1~git24-1.26.x86_64 …[done]
(31/50) Installing: libebml5-1.4.2-bp154.2.69.x86_64 …[done]
(32/50) Installing: libglslang-suse9-8.13.3559+git20-1.27.x86_64 …[done]
(33/50) Installing: libixml11-1.14.12-bp154.1.66.x86_64 …[done]
(34/50) Installing: libliveMedia102-2021.11.23-bp154.1.72.x86_64 …[done]
(35/50) Installing: libvidstab1_1-1.1.0-bp154.1.31.x86_64 …[done]
(36/50) Installing: libmatroska7-1.6.3-bp154.1.50.x86_64 …[done]
(37/50) Installing: libshaderc_shared1-2019.1-1.26.x86_64 …[done]
(38/50) Installing: libupnp17-1.14.12-bp154.1.66.x86_64 …[done]
(39/50) Installing: libplacebo192-4.192.1-bp154.1.45.x86_64 …[done]
(40/50) Installing: libavfilter7_110-4.4.4-150400.1.pm.1.x86_64 …[done]
(41/50) Installing: vlc-noX-3.0.18-150400.2.6.pm.1.x86_64 …[done]
(42/50) Installing: vlc-codec-gstreamer-3.0.18-150400.2.6.pm.1.x86_64 …[done]
(43/50) Installing: libavdevice58_13-4.4.4-150400.1.pm.1.x86_64 …[done]
(44/50) Installing: vlc-codecs-3.0.18-150400.2.6.pm.1.x86_64 …[done]
(45/50) Installing: ffmpeg-4-4.4.4-150400.1.pm.1.x86_64 …[done]
(46/50) Installing: vlc-qt-3.0.18-150400.2.6.pm.1.x86_64 …[done]
(47/50) Installing: vlc-3.0.18-150400.2.6.pm.1.x86_64 …[done]
(48/50) Installing: vlc-vdpau-3.0.18-150400.2.6.pm.1.x86_64 …[done]
(49/50) Installing: netease-cloud-music-1.2.1-pm154.5.2.x86_64 …[done]
(50/50) Installing: vlc-lang-3.0.18-150400.2.6.pm.1.noarch …[done]