我正在尝试gstreamer SDC docs的例子。
特别是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 :(得分:2)
您的管道中有两个错误
这对我有用(期望你将从test.ogg的位置执行):
gst-launch-1.0 uridecodebin uri=file://`pwd`/test.ogg ! audioconvert ! audioresample ! autoaudiosink
uridecodebin肯定不会弃用.. 您可以通过命令检查是否有它:
gst-inspect-1.0 uridecodebin
- 关于元素的shell输出详细信息