Hi, gstreamer-devel:<br><br>&nbsp;&nbsp;&nbsp; Actually, I don&#39;t get what your problem is. Maybe this is because a language limitation. if you wanna use osxaudiosink, add converter or any other filter elements into your pipeline, otherwise the not-negotiation error occurs. This is the sample pipeline from osxaudiosink&#39;s manual:<br>
<br>gst-launch -v filesrc location=sine.ogg ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! osxaudiosink<br><br>&nbsp;&nbsp;&nbsp; I think your can read gstreamer developer guide and maybe you will figure out the answer yourself while reading it.<br>
<br>Eric Zhang<br><br><br><div class="gmail_quote">2008/11/11 Sjoerd Op &#39;t Land <span dir="ltr">&lt;<a href="mailto:sjoerd@intercue.nl">sjoerd@intercue.nl</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br>
<br>
I am new to gstreamer, so please forgive me if the errors encountered<br>
are due to my inexperience. I am running Mac OS 10.5.5 on a MacBook<br>
Core 2 Duo and I compiled gstreamer, gst-plugins-base and gst-plugins-<br>
good from cvs (<a href="http://0.10.21.1" target="_blank">0.10.21.1</a>).<br>
<br>
To start off, I wanted to create an audio loopthrough. First, I tried<br>
to get the output to work. With a little modification, I was able to<br>
produce a sine:<br>
<br>
&nbsp;&gt; gst-launch audiotestsrc ! audioconvert ! audio/x-raw-<br>
float,channels=2,width=32,depth=32 ! osxaudiosink<br>
<br>
(My first attempt failed, I don&#39;t know whether this is expected<br>
behaviour:<br>
&nbsp;&gt; gst-launch audiotestsrc ! osxaudiosink<br>
Setting pipeline to PAUSED ...<br>
Pipeline is PREROLLING ...<br>
ERROR: from element /GstPipeline:pipeline0/<br>
GstAudioTestSrc:audiotestsrc0: Internal data flow error.<br>
Additional debug info:<br>
gstbasesrc.c(2292): gst_base_src_loop (): /GstPipeline:pipeline0/<br>
GstAudioTestSrc:audiotestsrc0:<br>
streaming task paused, reason not-negotiated (-4)<br>
ERROR: pipeline doesn&#39;t want to preroll.<br>
Setting pipeline to NULL ...<br>
FREEING pipeline ...)<br>
<br>
The reason I am mailing you, is that I can&#39;t seem to get osxaudiosrc<br>
to function, tried various stream types and convert/resample options.<br>
The command line suggested in the source code unfortunately does not<br>
function:<br>
<br>
&nbsp;&gt; gst-launch -v -m osxaudiosrc ! fakesink<br>
Setting pipeline to PAUSED ...<br>
ERROR: Pipeline doesn&#39;t want to pause.<br>
Got Message from element &quot;fakesink0&quot; (state-changed): GstMessageState,<br>
old-state=(GstState)GST_STATE_NULL, new-<br>
state=(GstState)GST_STATE_READY, pending-<br>
state=(GstState)GST_STATE_VOID_PENDING;<br>
Got Message from element &quot;osxaudiosrc0&quot; (state-changed):<br>
GstMessageState, old-state=(GstState)GST_STATE_NULL, new-<br>
state=(GstState)GST_STATE_READY, pending-<br>
state=(GstState)GST_STATE_VOID_PENDING;<br>
Got Message from element &quot;pipeline0&quot; (state-changed): GstMessageState,<br>
old-state=(GstState)GST_STATE_NULL, new-<br>
state=(GstState)GST_STATE_READY, pending-<br>
state=(GstState)GST_STATE_PAUSED;<br>
Got Message from element &quot;osxaudiosrc0&quot; (error): GstMessageError,<br>
gerror=(GstGError)(NULL), debug=(string)&quot;gstbasesrc.c\(2484\):\<br>
gst_base_src_start\ \(\):\ /GstPipeline:pipeline0/<br>
GstOsxAudioSrc:osxaudiosrc0:\012Check\ your\ filtered\ caps\,\ if\ any&quot;;<br>
ERROR: from element /GstPipeline:pipeline0/<br>
GstOsxAudioSrc:osxaudiosrc0: Could not negotiate format<br>
Additional debug info:<br>
gstbasesrc.c(2484): gst_base_src_start (): /GstPipeline:pipeline0/<br>
GstOsxAudioSrc:osxaudiosrc0:<br>
Check your filtered caps, if any<br>
Setting pipeline to NULL ...<br>
FREEING pipeline ...<br>
<br>
Thanks in advance for any suggestions. Again, I apologise beforehand<br>
if this is an error of mine, due to my inexperience with GStreamer.<br>
<br>
Best regards,<br>
Sjoerd Op &#39;t Land<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>