<div>Hi,</div>
<div>You can capture 2 channels and then use audioconvert to convert it to mono channel.</div>
<div> </div>
<div>gst-launch gconfaudiosrc ! capsfilter \<br>caps=audio/x-raw-int,rate=44100,channels=2,depth=16 ! \<br>audioconvert ! audio/x-raw-int,rate=8000,depth=16,channels=1,width=16,signed=\(boolean\)TRUE,endianness=\(int\)1234 ! wavenc ! filesink location=test.wav</div>

<div> </div>
<div>regards,</div>
<div>Viraj<br><br></div>
<div class="gmail_quote">On Tue, Sep 29, 2009 at 4:53 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">Hello,<br><br>I am unable to record only one channel (mono). I have only one<br>microphone attached to sound card. But if I run this<br>
<br>gst-launch gconfaudiosrc ! capsfilter \<br>caps=audio/x-raw-int,rate=44100,channels=1,depth=16 ! \<br>wavenc ! filesink location=test.wav<br><br>then I get this error message:<br><br>Setting pipeline to PAUSED ...<br>
ERROR: Pipeline doesn&#39;t want to pause.<br>ERROR: from element<br>/GstPipeline:pipeline0/GstGConfAudioSrc:gconfaudiosrc0/GstBin:bin0/GstAlsaSrc:alsasrc0:<br>Could not negotiate format<br>Additional debug info:<br>gstbasesrc.c(2584): gst_base_src_start ():<br>
/GstPipeline:pipeline0/GstGConfAudioSrc:gconfaudiosrc0/GstBin:bin0/GstAlsaSrc:alsasrc0:<br>Check your filtered caps, if any<br>Setting pipeline to NULL ...<br>Freeing pipeline ...<br><br><br>It can be solved if I use two channels for recording, so this<br>
<br>gst-launch gconfaudiosrc ! capsfilter \<br>caps=audio/x-raw-int,rate=44100,channels=2,depth=16 ! \<br>wavenc ! filesink location=test.wav<br><br>works fine. But I would like to record one channel because further data<br>
processing is little easier.<br><br>Thank you<br>Jan Martinek<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></blockquote></div><br><br clear="all">
<div></div><br>-- <br>- Viraj<br>Reality is merely an illusion, albeit a very persistent one.<br>