2015-10-14 212 views
0

我在嘗試gstreamer SDC文檔中的例子。在安裝的gstreamer1.0中找不到uridecodebin

特別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?或者是否被棄用,應該被忽略?

+0

輸出的細節,你有兩個連續的! !在你的管道中.. – nayana

+0

有人(也許你)submited [文檔中的錯誤](https://bugzilla.gnome.org/show_bug.cgi?id=756630) – nayana

回答

2

你有兩個錯誤在你管

  • 一個是錯誤的路徑文件:///test.ogg(你需要有絕對路徑),
  • 兩部分! !在中間沒有元素..

這是爲我工作(希望你會從test.ogg的位置執行):

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

uridecodebin肯定不會被棄用.. 可以檢查您是否有命令有它:

gst-inspect-1.0 uridecodebin - 貝約的元素