Hi, gstreamer-devel:<br><br> I have not Mac so I cannot test your problem. I'd like to get one but Mac is expensive in China and seems that scratchbox cannot be installed on Mac. I need a cross-compile environment so now Linux is the prefer OS for me.<br>
<br> Sjoerd, Maybe you should run this pipeline with root privilege? In Linux, we use `sudo' to get root permission.<br><br>Eric Zhang<br><br><div class="gmail_quote">2008/11/13 Sjoerd Op 't Land <span dir="ltr"><<a href="mailto:sjoerd@intercue.nl">sjoerd@intercue.nl</a>></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>
Meanwhile I read some more on autoplugging and capfilters, but I still<br>
can't seem to get this pipeline to work. To determine whether or not<br>
this is a bug, could anyone using a Mac try these pipelines and report<br>
on the results? For example, does it work under 10.4?<br>
<br>
I also mailed with the creator of the plugin, but he wrote:<br>
> Please send to the gstreamer-devel mailing list.<br>
><br>
> Zaheer<br>
<br>
<br>
And so I did...<br>
<br>
Thanks in advance for any input,<br>
Sjoerd Op 't Land<br>
<br>
Op 12 nov 2008, om 09:11 heeft Sjoerd Op 't Land het volgende<br>
geschreven:<br>
<div><div></div><div class="Wj3C7c"><br>
> Hi Eric,<br>
><br>
> Thanks for your quick response. In fact my problem is with<br>
> osxaudiosrc, so let's focus on that element. In the source code of<br>
> osxaudiosrc, I found this "Example launch line"<br>
><br>
> gst-launch -v -m osxaudiosrc ! fakesink<br>
><br>
> Which generates (...)osxaudiosrc0: Could not negotiate format.<br>
> Apparently, either (a) there is no format that satisfies the pads of<br>
> osxaudiosrc and fakesink, or (b) there are multiple formats that<br>
> satisfy the pads of osxaudiosrc and fakesink (is this reasoning<br>
> correct?). Adding audioconvert ! audioresample does not help:<br>
><br>
> gst-launch -v -m osxaudiosrc ! audioconvert ! audioresample !<br>
> fakesink<br>
><br>
> Also results in (...)osxaudiosrc0: Could not negotiate format. Perhaps<br>
> I should force the format:<br>
><br>
> gst-launch -v -m osxaudiosrc ! audioconvert ! audioresample ! audio/<br>
> x-raw-float,rate=44100,channels=2,width=32,depth=32 ! fakesink<br>
><br>
> gst-launch -v -m osxaudiosrc ! audio/x-raw-<br>
> float,rate=44100,channels=2,width=32,depth=32 ! audioconvert !<br>
> audioresample ! audio/x-raw-<br>
> float,rate=44100,channels=2,width=32,depth=32 ! fakesink<br>
><br>
> Both result in (...)osxaudiosrc0: Could not negotiate format. For<br>
> completeness I added the complete output at the bottom of this e-mail.<br>
><br>
> Thanks in advance for any suggestions,<br>
> Sjoerd Op 't Land<br>
><br>
> Op 12 nov 2008, om 02:29 heeft Eric Zhang het volgende geschreven:<br>
><br>
>> Hi, gstreamer-devel:<br>
>><br>
>> Actually, I don't get what your problem is. Maybe this is<br>
>> because a language limitation. if you wanna use osxaudiosink, add<br>
>> converter or any other filter elements into your pipeline, otherwise<br>
>> the not-negotiation error occurs. This is the sample pipeline from<br>
>> osxaudiosink's manual:<br>
>><br>
>> gst-launch -v filesrc location=sine.ogg ! oggdemux ! vorbisdec !<br>
>> audioconvert ! audioresample ! osxaudiosink<br>
>><br>
>> I think your can read gstreamer developer guide and maybe you<br>
>> will figure out the answer yourself while reading it.<br>
>><br>
>> Eric Zhang<br>
>><br>
>><br>
>> 2008/11/11 Sjoerd Op 't Land <<a href="mailto:sjoerd@intercue.nl">sjoerd@intercue.nl</a>><br>
>> 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-<br>
>> 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>
>>> gst-launch audiotestsrc ! audioconvert ! audio/x-raw-<br>
>> float,channels=2,width=32,depth=32 ! osxaudiosink<br>
>><br>
>> (My first attempt failed, I don't know whether this is expected<br>
>> behaviour:<br>
>>> 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't want to preroll.<br>
>> Setting pipeline to NULL ...<br>
>> FREEING pipeline ...)<br>
>><br>
>> The reason I am mailing you, is that I can'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>
>>> gst-launch -v -m osxaudiosrc ! fakesink<br>
>> Setting pipeline to PAUSED ...<br>
>> ERROR: Pipeline doesn't want to pause.<br>
>> Got Message from element "fakesink0" (state-changed):<br>
>> 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 "osxaudiosrc0" (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 "pipeline0" (state-changed):<br>
>> 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 "osxaudiosrc0" (error): GstMessageError,<br>
>> gerror=(GstGError)(NULL), debug=(string)"gstbasesrc.c\(2484\):\<br>
>> gst_base_src_start\ \(\):\ /GstPipeline:pipeline0/<br>
>> GstOsxAudioSrc:osxaudiosrc0:\012Check\ your\ filtered\ caps\,\ if\<br>
>> any";<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 't Land<br>
><br>
> ========= Output listing 1 =========<br>
> $ gst-launch -v -m osxaudiosrc ! fakesink<br>
> Setting pipeline to PAUSED ...<br>
> ERROR: Pipeline doesn't want to pause.<br>
> Got Message from element "fakesink0" (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 "osxaudiosrc0" (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 "pipeline0" (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 "osxaudiosrc0" (error): GstMessageError,<br>
> gerror=(GstGError)(NULL), debug=(string)"gstbasesrc.c\(2484\):\<br>
> gst_base_src_start\ \(\):\ /GstPipeline:pipeline0/<br>
> GstOsxAudioSrc:osxaudiosrc0:\012Check\ your\ filtered\ caps\,\ if\<br>
> any";<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>
> ========= Output listing 2 =========<br>
> $ gst-launch -v -m osxaudiosrc ! audioconvert ! audioresample !<br>
> fakesink<br>
> Setting pipeline to PAUSED ...<br>
> ERROR: Pipeline doesn't want to pause.<br>
> Got Message from element "fakesink0" (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 "audioresample0" (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 "audioconvert0" (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 "osxaudiosrc0" (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 "pipeline0" (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 "audioresample0" (state-changed):<br>
> GstMessageState, old-state=(GstState)GST_STATE_READY, new-<br>
> state=(GstState)GST_STATE_PAUSED, pending-<br>
> state=(GstState)GST_STATE_VOID_PENDING;<br>
> Got Message from element "audioconvert0" (state-changed):<br>
> GstMessageState, old-state=(GstState)GST_STATE_READY, new-<br>
> state=(GstState)GST_STATE_PAUSED, pending-<br>
> state=(GstState)GST_STATE_VOID_PENDING;<br>
> Got Message from element "osxaudiosrc0" (error): GstMessageError,<br>
> gerror=(GstGError)(NULL), debug=(string)"gstbasesrc.c\(2484\):\<br>
> gst_base_src_start\ \(\):\ /GstPipeline:pipeline0/<br>
> GstOsxAudioSrc:osxaudiosrc0:\012Check\ your\ filtered\ caps\,\ if\<br>
> any";<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>
> ========= Output listing 3 =========<br>
> $ gst-launch -v -m osxaudiosrc ! audioconvert ! audioresample ! audio/<br>
> x-raw-float,rate=44100,channels=2,width=32,depth=32 ! fakesink<br>
> Setting pipeline to PAUSED ...<br>
> ERROR: Pipeline doesn't want to pause.<br>
> Got Message from element "fakesink0" (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 "capsfilter0" (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 "audioresample0" (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 "audioconvert0" (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 "osxaudiosrc0" (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 "pipeline0" (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 "capsfilter0" (state-changed):<br>
> GstMessageState, old-state=(GstState)GST_STATE_READY, new-<br>
> state=(GstState)GST_STATE_PAUSED, pending-<br>
> state=(GstState)GST_STATE_VOID_PENDING;<br>
> Got Message from element "audioresample0" (state-changed):<br>
> GstMessageState, old-state=(GstState)GST_STATE_READY, new-<br>
> state=(GstState)GST_STATE_PAUSED, pending-<br>
> state=(GstState)GST_STATE_VOID_PENDING;<br>
> Got Message from element "audioconvert0" (state-changed):<br>
> GstMessageState, old-state=(GstState)GST_STATE_READY, new-<br>
> state=(GstState)GST_STATE_PAUSED, pending-<br>
> state=(GstState)GST_STATE_VOID_PENDING;<br>
> Got Message from element "osxaudiosrc0" (error): GstMessageError,<br>
> gerror=(GstGError)(NULL), debug=(string)"gstbasesrc.c\(2484\):\<br>
> gst_base_src_start\ \(\):\ /GstPipeline:pipeline0/<br>
> GstOsxAudioSrc:osxaudiosrc0:\012Check\ your\ filtered\ caps\,\ if\<br>
> any";<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>
> ========= Output listing 4 =========<br>
> $ gst-launch -v -m osxaudiosrc ! audio/x-raw-<br>
> float,rate=44100,channels=2,width=32,depth=32 ! audioconvert !<br>
> audioresample ! audio/x-raw-<br>
> float,rate=44100,channels=2,width=32,depth=32 ! fakesink<br>
> Setting pipeline to PAUSED ...<br>
> ERROR: Pipeline doesn't want to pause.<br>
> Got Message from element "fakesink0" (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 "capsfilter1" (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 "audioresample0" (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 "audioconvert0" (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 "capsfilter0" (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 "osxaudiosrc0" (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 "pipeline0" (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 "capsfilter1" (state-changed):<br>
> GstMessageState, old-state=(GstState)GST_STATE_READY, new-<br>
> state=(GstState)GST_STATE_PAUSED, pending-<br>
> state=(GstState)GST_STATE_VOID_PENDING;<br>
> Got Message from element "audioresample0" (state-changed):<br>
> GstMessageState, old-state=(GstState)GST_STATE_READY, new-<br>
> state=(GstState)GST_STATE_PAUSED, pending-<br>
> state=(GstState)GST_STATE_VOID_PENDING;<br>
> Got Message from element "audioconvert0" (state-changed):<br>
> GstMessageState, old-state=(GstState)GST_STATE_READY, new-<br>
> state=(GstState)GST_STATE_PAUSED, pending-<br>
> state=(GstState)GST_STATE_VOID_PENDING;<br>
> Got Message from element "capsfilter0" (state-changed):<br>
> GstMessageState, old-state=(GstState)GST_STATE_READY, new-<br>
> state=(GstState)GST_STATE_PAUSED, pending-<br>
> state=(GstState)GST_STATE_VOID_PENDING;<br>
> Got Message from element "osxaudiosrc0" (error): GstMessageError,<br>
> gerror=(GstGError)(NULL), debug=(string)"gstbasesrc.c\(2484\):\<br>
> gst_base_src_start\ \(\):\ /GstPipeline:pipeline0/<br>
> GstOsxAudioSrc:osxaudiosrc0:\012Check\ your\ filtered\ caps\,\ if\<br>
> any";<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>
><br>
><br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win<br>
> great prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in<br>
> the world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&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>
><br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & 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&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&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>
</div></div></blockquote></div><br>