<div>Hi,</div>
<div>I dont see any issue in using audioconvert.</div>
<div>Did you see the log by setting debug level to 5?</div>
<div>When exactly &quot;Could not negotiate format&quot; error is coming? it might give some clue on whats happening.</div>
<div> </div>
<div>-Viraj<br><br></div>
<div class="gmail_quote">On Tue, Sep 29, 2009 at 5:55 PM, Jan Martinek <span dir="ltr">&lt;<a href="mailto:honza@dp.fce.vutbr.cz">honza@dp.fce.vutbr.cz</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br><br>this is interesting, thank you. But is it a recommended, clean solution<br>or just workaround?<br>
<br>I have tried mono recording on a different (older) computer and it works<br>fine there. Relevant line from &quot;lspci&quot; is this:<br><br>00:11.5 Multimedia audio controller: VIA Technologies, Inc.<br>VT8233/A/8235/8237 AC97 Audio Controller (rev 50)<br>
<br>On the other hand, one channel recording fails on my computer with<br>00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)<br><br>Does it depend on hardware? Do capabilities differ? I would be<br>surprised, because this seems to me as very basic functionality.<br>
<br>Thank you,<br>Jan Martinek<br>
<div class="im"><br>On 09/29/2009 01:57 PM, Viraj Karandikar wrote:<br>&gt; Hi,<br>&gt; You can capture 2 channels and then use audioconvert to convert it to<br>&gt; mono channel.<br>&gt; gst-launch gconfaudiosrc ! capsfilter \<br>
&gt; caps=audio/x-raw-int,rate=44100,channels=2,depth=16 ! \<br>&gt; audioconvert !<br>&gt; audio/x-raw-int,rate=8000,depth=16,channels=1,width=16,signed=\(boolean\)TRUE,endianness=\(int\)1234<br>&gt; ! wavenc ! filesink location=test.wav<br>
&gt; regards,<br>&gt; Viraj<br>&gt;<br>&gt; On Tue, Sep 29, 2009 at 4:53 PM, Jan Martinek &lt;<a href="mailto:honza@dp.fce.vutbr.cz">honza@dp.fce.vutbr.cz</a><br></div>
<div>
<div></div>
<div class="h5">&gt; &lt;mailto:<a href="mailto:honza@dp.fce.vutbr.cz">honza@dp.fce.vutbr.cz</a>&gt;&gt; wrote:<br>&gt;<br>&gt;     Hello,<br>&gt;<br>&gt;     I am unable to record only one channel (mono). I have only one<br>
&gt;     microphone attached to sound card. But if I run this<br>&gt;<br>&gt;     gst-launch gconfaudiosrc ! capsfilter \<br>&gt;     caps=audio/x-raw-int,rate=44100,channels=1,depth=16 ! \<br>&gt;     wavenc ! filesink location=test.wav<br>
&gt;<br>&gt;     then I get this error message:<br>&gt;<br>&gt;     Setting pipeline to PAUSED ...<br>&gt;     ERROR: Pipeline doesn&#39;t want to pause.<br>&gt;     ERROR: from element<br>&gt;     /GstPipeline:pipeline0/GstGConfAudioSrc:gconfaudiosrc0/GstBin:bin0/GstAlsaSrc:alsasrc0:<br>
&gt;     Could not negotiate format<br>&gt;     Additional debug info:<br>&gt;     gstbasesrc.c(2584): gst_base_src_start ():<br>&gt;     /GstPipeline:pipeline0/GstGConfAudioSrc:gconfaudiosrc0/GstBin:bin0/GstAlsaSrc:alsasrc0:<br>
&gt;     Check your filtered caps, if any<br>&gt;     Setting pipeline to NULL ...<br>&gt;     Freeing pipeline ...<br>&gt;<br>&gt;<br>&gt;     It can be solved if I use two channels for recording, so this<br>&gt;<br>&gt;     gst-launch gconfaudiosrc ! capsfilter \<br>
&gt;     caps=audio/x-raw-int,rate=44100,channels=2,depth=16 ! \<br>&gt;     wavenc ! filesink location=test.wav<br>&gt;<br>&gt;     works fine. But I would like to record one channel because further data<br>&gt;     processing is little easier.<br>
&gt;<br>&gt;     Thank you<br>&gt;     Jan Martinek<br>&gt;<br>&gt;     ------------------------------------------------------------------------------<br>&gt;     Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA<br>
&gt;     is the only developer event you need to attend this year. Jumpstart your<br>&gt;     developing skills, take BlackBerry mobile applications to market and<br>&gt;     stay<br>&gt;     ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register<br>
&gt;     now&amp;#33;<br>&gt;     <a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</a><br>&gt;     _______________________________________________<br>&gt;     gstreamer-devel mailing list<br>
&gt;     <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br></div></div>&gt;     &lt;mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>

<div class="im">&gt;     <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>
&gt; - Viraj<br>&gt; Reality is merely an illusion, albeit a very persistent one.<br>&gt;<br>&gt;<br></div>&gt; ------------------------------------------------------------------------<br>
<div>
<div></div>
<div class="h5">&gt;<br>&gt; ------------------------------------------------------------------------------<br>&gt; Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA<br>&gt; is the only developer event you need to attend this year. Jumpstart your<br>
&gt; developing skills, take BlackBerry mobile applications to market and stay<br>&gt; ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;<br>&gt; <a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</a><br>
&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; gstreamer-devel mailing list<br>&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br><br>------------------------------------------------------------------------------<br>
Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA<br>is the only developer event you need to attend this year. Jumpstart your<br>developing skills, take BlackBerry mobile applications to market and stay<br>
ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;<br><a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</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><br clear="all">
<div></div><br>-- <br>- Viraj<br>Reality is merely an illusion, albeit a very persistent one.<br>