Gstreamer Playbin无法确定流的类型

时间:2015-03-17 00:43:45

标签: c gstreamer playbin2

我目前正在尝试使用gstreamer 1.0在linux中创建一个音频应用程序。我遇到的主要问题是运行

gst-launch-1.0 playbin uri="file:///home/root/Documents/MP3/songs/test.mp3" 

导致错误,

ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind: Could not determine type of stream.
Additional debug info:
gsttypefindelement.c(1067): gst_type_find_element_loop (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind
ERROR: pipeline doesn't want to preroll.

我安装了疯狂的插件,这是我的音频解码器。我安装了一些插件:

playback:  playbin: Player Bin 2
playback:  playsink: Player Sink
playback:  streamsynchronizer: Stream Synchronizer
playback:  decodebin: Decoder Bin
playback:  uridecodebin: URI Decoder
mad:  mad: mad mp3 decoder

如果我跑

gst-launch-1.0 filesrc location=test.mp3 ! mad ! pulsesink 

音频运行完美但我想让playbin工作。任何经验丰富的gstreamer用户都知道最新情况如何?

0 个答案:

没有答案