我第一次尝试在 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
Run Code Online (Sandbox Code Playgroud)
因为这不起作用,因此我访问了 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 …Run Code Online (Sandbox Code Playgroud)