我人生中第一次安装 OpenSuse。我正在尝试在上面播放一些视频。但 VLC 抛出错误
VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))
我尝试寻找一些解决方案,但找不到任何具体的解决方案。我尝试在 Suse 论坛上创建一个帐户,但不知何故无法让我的新帐户正常工作。所以我在这里问。我认为我已经安装了所有编解码器包。
答案1
您需要安装多媒体编解码器。您可以从 Packman Essentials 存储库获取它们:
zypper ar -cfp 90 http://ftp.gwdg.de/pub/linux/misc/packman/suse/\
openSUSE_Tumbleweed/Essentials packman-essentials
zypper dup --from packman-essentials --allow-vendor-change
sudo zypper install --from packman-essentials ffmpeg gstreamer-plugins-{good,bad,ugly,libav} libavcodec-full vlc-codecs
更多信息:https://en.opensuse.org/Portal:Tumbleweed和https://en.opensuse.org/SDB:Installing_codecs_from_Packman_repositories
答案2
有时 VLC 无法加载已安装的编解码器。然后你必须以详细方式启动 VLC 并检查是什么阻止了 VLC 加载编解码器
$ vlc -vvvv
...
[000055e59a4d1a30] main libvlc warning: cannot load module `/usr/lib64/vlc/plugins/access/libavio_plugin.so' (libvulkan.so.1: cannot open shared object file: No such file or directory)
[000055e59a4d1a30] main libvlc warning: cannot load module `/usr/lib64/vlc/plugins/codec/libavcodec_plugin.so' (libvulkan.so.1: cannot open shared object file: No such file or directory)
[000055e59a4d1a30] main libvlc warning: cannot load module `/usr/lib64/vlc/plugins/demux/libavformat_plugin.so' (libvulkan.so.1: cannot open shared object file: No such file or directory)
[000055e59a4d1a30] main libvlc warning: cannot load module `/usr/lib64/vlc/plugins/packetizer/libpacketizer_avparser_plugin.so' (libvulkan.so.1: cannot open shared object file: No such file or directory)
[000055e59a4d1a30] main libvlc warning: cannot load module `/usr/lib64/vlc/plugins/stream_out/libstream_out_chromaprint_plugin.so' (libvulkan.so.1: cannot open shared object file: No such file or directory)
[000055e59a4d1a30] main libvlc warning: cannot load module `/usr/lib64/vlc/plugins/video_chroma/libswscale_plugin.so' (libvulkan.so.1: cannot open shared object file: No such file or directory)
[000055e59a4d1a30] main libvlc warning: cannot load module `/usr/lib64/vlc/plugins/video_filter/libpostproc_plugin.so' (libvulkan.so.1: cannot open shared object file: No such file or directory)
[000055e59a4d1a30] main libvlc warning: cannot load module `/usr/lib64/vlc/plugins/video_output/libgl_plugin.so' (libvulkan.so.1: cannot open shared object file: No such file or directory)
[000055e59a4d1a30] main libvlc warning: cannot load module `/usr/lib64/vlc/plugins/vdpau/libvdpau_avcodec_plugin.so' (libvulkan.so.1: cannot open shared object file: No such file or directory)
...
就我而言,libvulkan
它丢失了,所以我安装了它sudo zypper in libvulkan1