在OS X上使用Gstreamer进行音频播放

我正试图在Mac OS X Mavericks(VirtualBox)上使用这些管道播放mp3音频:

gst-launch-1.0 playbin uri = file:///path/to/test.mp3

gst-launch-1.0 filesrc location = test.mp3! 解码器! audioconvert! audioresample! autoaudiosink

gst-launch-1.0 uridecodebin uri = file:///path/to/test.mp3! audioconvert! audioresample! autoaudiosink

但总是得到这个输出:

将管道设置为PAUSED ...
0:00:00.032003000 4120 0x7fe62bcd4900 WARN basesrc gstbasesrc.c:3470:void gst_base_src_start_complete(GstBaseSrc *,GstFlowReturn):pad not activated yet 0:00:00.033290000 4120 0x7fe62bcd4900 WARN basesrc gstbasesrc.c:3470:void gst_base_src_start_complete(GstBaseSrc *,GstFlowReturn ):垫尚未激活管道正在PREROLLING ...
0:00:00.106320000 4120 0x7fe62c032140 WARN osxaudiosink gstosxaudiosink.c:601:gst_osx_audio_sink_allowed_caps:无法识别的频道:-1
0:00:00.106584000 4120 0x7fe62c032140 WARN osxaudiosink gstosxaudiosink.c:601:gst_osx_audio_sink_allowed_caps:无法识别的频道:-1
0:00:00.128755000 4120 0x7fe62c032140 WARN audioresample gstaudioresample.c:1537:gboolean plugin_init(GstPlugin *):Orc被禁用,无法基准int与浮点重采样器
0:00:00.129217000 4120 0x7fe62c032140警告GST_PERFORMANCE gstaudioresample.c:1540:gboolean plugin_init(GstPlugin *): orc已禁用,未执行基准测试
0:00:00.133383000 4120 0x7fe62c032140 WARN baseparse gstbaseparse.c:3264:void gst_base_parse_loop(GstPad *):错误:流停止,原因未协商
0:00:00.133718000 4120 0x7fe62c032140 WARN队列gstqueue.c:860:gboolean gst_queue_handle_sink_event(GstPad *,GstObject *,GstEvent *):错误:内部数据流错误。
错误:来自元素/ GstPlayBin:playbin0 / GstURIDecodeBin:uridecodebin0 / GstDecodeBin:decodebin0 / GstMpegAudioParse:mpegaudioparse0:GStreamer遇到一般错误。
0:00:00.134308000 4120 0x7fe62c032140 WARN队列gstqueue.c:860:gboolean gst_queue_handle_sink_event(GstPad *,GstObject *,GstEvent *):错误:流任务暂停,原因未协商(-4)
其他调试信息:
gstbaseparse.c(3264):void gst_base_parse_loop(GstPad *)():/ GstPlayBin:playbin0 / GstURIDecodeBin:uridecodebin0 / GstDecodeBin:decodebin0 / GstMpegAudioParse:mpegaudioparse0:流停止,原因未协商
错误:管道不想预卷。
将管道设置为NULL ...
释放管道...

使用相同的音频,相同的管道在Windows 7上工作正常。

我如何在Mac OS X Mavericks上解决这个问题?

链接地址: http://www.djcxy.com/p/43985.html

上一篇: Audio playback using Gstreamer on OS X

下一篇: Stream audio and video with gstreamer