GStreamer 是否适用于 Ubuntu 21.04?如果可以,那么如何安装它?

GStreamer 是否适用于 Ubuntu 21.04?如果可以,那么如何安装它?

我第一次尝试在 Ubuntu 21.04 上安装 GStreamer,如下所示:

user@localhost:~$ sudo apt install gstreamer
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package gstreamer

因为那不起作用,因此我访问了 GStreamer 网页以在 Linux 上进行安装: https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c。按照上述网页上的说明,我第二次尝试安装 GStreamer 如下所示:

user@localhost:~$ sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package gstreamer1.0-doc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gstreamer1.0-doc' has no installation candidate

什么程序可以在 Ubuntu 21.04 上安装 GStreamer?

答案1

您正在尝试使用源代码包的部分名称。

请访问相关搜索 结果packages.ubuntu.com并选择适合您需要的正确二进制包名称。

如果你知道相关 pkg-config/pkgconfig 配置文件的名称,那么你可以在相同的 地点

以下安装命令看起来合理:

sudo add-apt-repository universe
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev

相关内容