我目前正在尝试使用 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.
我安装了 mad 插件,它是我的音频解码器。我安装的一些插件:
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 用户知道发生了什么吗?