如何在 ubuntu 12.04 中安装 gstreamer 1.0

如何在 ubuntu 12.04 中安装 gstreamer 1.0

论坛其他地方提供的安装是

sudo add-apt-repository ppa:gstreamer-developers/ppa        
sudo apt-get update        
sudo apt-get install gstreamer1.0*

目前无法在我的 12.04 安装上运行 [见下文]

有人有更新的信息或对说明的修复吗?

我按照上述操作后仍然找不到 Gst 命名空间,我收到消息

Traceback (most recent call last):
 File "webcam-1.0.py", line 4, in <module>
   gi.require_version('Gst', '1.0')
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 48, in require_version
  raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gst not available

为了确保万无一失,我重新执行了上述步骤,然后发现正则表达式识别了一些未标记为安装的库。我决定通过名称明确尝试其中一个,并得到了以下结果。

$ sudo add-apt-repository ppa:gstreamer-developers/ppa
$ sudo apt-get update
[all went OK]
$ sudo apt-get install libgstreamer1.0-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libgstreamer1.0-dev 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 'libgstreamer1.0-dev' has no installation candidate

答案1

我在安装 gstreamer1.0* 时也遇到了问题。从 Ubuntu Repository 安装 Gstreamer 后,问题得到了解决

可以使用官方 Ubuntu 安装存储库

sudo apt-get install libgstreamer0.10-dev libgstreamer0.10-0-dbg libgstreamer0.10-0 gstreamer0.10-tools gstreamer-tools gstreamer0.10-doc gstreamer0.10-ffmpeg gstreamer0.10-x

相关内容