在已安装的 gstreamer1.0 中找不到 uridecodebin

uridecodebin not found in installed gstreamer1.0

我正在尝试 gstreamer SDC 文档中的示例。

特别是this page,建议像这样使用URIDecodebin:

gst-launch-1.0 uridecodebin uri=file:///test.ogg ! ! audioconvert \
  ! audioresample ! autoaudiosink

但我立即收到此错误:

ERROR: pipeline could not be constructed: no element "uridecodebin".

我关注 this installation instruction Ubuntu。

我已经安装了这些东西:

i  gstreamer1.0-alsa - GStreamer plugin for ALSA
i  gstreamer1.0-clutter - Clutter PLugin for GStreamer 1.0
i  gstreamer1.0-libav - libav plugin for GStreamer
i  gstreamer1.0-nice - ICE library (GStreamer plugin)
i  gstreamer1.0-plugins-bad - GStreamer plugins from the "bad" set
i  gstreamer1.0-plugins-bad-faad - GStreamer faad plugin from the "bad" set
i  gstreamer1.0-plugins-bad-videoparsers - GStreamer videoparsers plugin from the "bad" set
i  gstreamer1.0-plugins-base - GStreamer plugins from the "base" set
i  gstreamer1.0-plugins-base-apps - GStreamer helper programs from the "base" set
i  gstreamer1.0-plugins-good - GStreamer plugins from the "good" set
i  gstreamer1.0-plugins-ugly - GStreamer plugins from the "ugly" set
i  gstreamer1.0-pulseaudio - GStreamer plugin for PulseAudio
i  gstreamer1.0-tools - Tools for use with GStreamer
i  gstreamer1.0-x    - GStreamer plugins for X11 and Pango
i  libgstreamer1.0-0 - Core GStreamer libraries and elements
i  libgstreamer1.0-0:i386 - Core GStreamer libraries and elements
i  phonon-backend-gstreamer1.0 - transitional package

如何安装 uridecodebin?或者它是否已被弃用并且应该被忽略?

你的管道有两个错误

  • 一个是错误的路径file:///test.ogg(需要有绝对路径),
  • 有两个的部分! !中间没有元素..

这对我有用(希望您将从 test.ogg 的位置执行):

gst-launch-1.0 uridecodebin uri=file://`pwd`/test.ogg ! audioconvert !  audioresample ! autoaudiosink

当然不会弃用 uridecodebin.. 你可以用命令检查你是否拥有它:

gst-inspect-1.0 uridecodebin - shell 输出有关元素的详细信息