<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I think this is just defaulting to your HW capabilities. Use <b>–v</b>
to see whats happening.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>examples on my machine, <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>gst-launch <b>-v </b>alsasrc device=hw:1 ! audioconvert !
alsasink device=hw:1<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>gst-launch <b>-v</b> alsasrc device=hw:0 ! audioconvert !
alsasink device=hw:0<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>produce differing numbers of source channels. I suspect your
older computer only has one channel.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>>LAUNCH 1<o:p></o:p></span></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/pipeline0/alsasrc0.src: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16,
rate=(int)48000, channels=(int)1<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>……. <o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/pipeline0/audioconvert0.src: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16,
rate=(int)48000, channels=(int)2<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/pipeline0/audioconvert0.sink: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16,
rate=(int)48000, channels=(int)1<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/pipeline0/alsasink0.sink: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16,
rate=(int)48000, channels=(int)2<o:p></o:p></span></i></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>>LAUNCH 2<o:p></o:p></span></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>pipeline0/alsasrc0.src: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32,
rate=(int)44100, channels=(int)2<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>….<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/pipeline0/audioconvert0.src: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32,
rate=(int)44100, channels=(int)2<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/pipeline0/audioconvert0.sink: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32,
rate=(int)44100, channels=(int)2<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>New clock: GstAudioSrcClock<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/pipeline0/alsasink0.sink: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32,
rate=(int)44100, channels=(int)2</span></i><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>/<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I can do <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>gst-launch <b>-v</b> alsasrc device=hw:0 ! alsasink device=hw:0<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>but not<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>gst-launch <b>-v </b>alsasrc device=hw:1 ! alsasink device=hw:1<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>as I need to modify the number of channels, I need the
audioconvert for this one!<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Viraj Karandikar
[mailto:virajk@gmail.com] <br>
<b>Sent:</b> 29 September 2009 14:13<br>
<b>To:</b> Discussion of the development of GStreamer<br>
<b>Subject:</b> Re: [gst-devel] One microphone, recording mono fails<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>Hi,<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>I dont see any issue in using audioconvert.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Did you see the log by setting debug level to 5?<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>When exactly "Could not negotiate format" error is
coming? it might give some clue on whats happening.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'>-Viraj<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>On Tue, Sep 29, 2009 at 5:55 PM, Jan Martinek <<a
href="mailto:honza@dp.fce.vutbr.cz">honza@dp.fce.vutbr.cz</a>> wrote:<o:p></o:p></p>
<p class=MsoNormal>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 "lspci" 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<o:p></o:p></p>
<div>
<p class=MsoNormal><br>
On 09/29/2009 01:57 PM, Viraj Karandikar wrote:<br>
> Hi,<br>
> You can capture 2 channels and then use audioconvert to convert it to<br>
> mono channel.<br>
> gst-launch gconfaudiosrc ! capsfilter \<br>
> caps=audio/x-raw-int,rate=44100,channels=2,depth=16 ! \<br>
> audioconvert !<br>
> audio/x-raw-int,rate=8000,depth=16,channels=1,width=16,signed=\(boolean\)TRUE,endianness=\(int\)1234<br>
> ! wavenc ! filesink location=test.wav<br>
> regards,<br>
> Viraj<br>
><br>
> On Tue, Sep 29, 2009 at 4:53 PM, Jan Martinek <<a
href="mailto:honza@dp.fce.vutbr.cz">honza@dp.fce.vutbr.cz</a><o:p></o:p></p>
</div>
<div>
<div>
<p class=MsoNormal>> <mailto:<a href="mailto:honza@dp.fce.vutbr.cz">honza@dp.fce.vutbr.cz</a>>>
wrote:<br>
><br>
> 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'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&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<br>
> stay<br>
> ahead of the curve. Join us from November 9&#45;12,
2009. Register<br>
> now&#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><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal>> <mailto:<a
href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><o:p></o:p></p>
<div>
<p class=MsoNormal>> <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>
> --<br>
> - Viraj<br>
> Reality is merely an illusion, albeit a very persistent one.<br>
><br>
><o:p></o:p></p>
</div>
<p class=MsoNormal>>
------------------------------------------------------------------------<o:p></o:p></p>
<div>
<div>
<p class=MsoNormal>><br>
>
------------------------------------------------------------------------------<br>
> Come build with us! The BlackBerry&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&#45;12, 2009. Register
now&#33;<br>
> <a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</a><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><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>
Come build with us! The BlackBerry&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&#45;12, 2009. Register
now&#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><o:p></o:p></p>
</div>
</div>
</div>
<p class=MsoNormal><br>
<br clear=all>
<o:p></o:p></p>
<p class=MsoNormal><br>
-- <br>
- Viraj<br>
Reality is merely an illusion, albeit a very persistent one.<o:p></o:p></p>
</div>
</body>
</html>