<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 "Could not negotiate format" 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"><<a href="mailto:honza@dp.fce.vutbr.cz">honza@dp.fce.vutbr.cz</a>></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 "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<br>
<div class="im"><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><br></div>
<div>
<div></div>
<div class="h5">> <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><br></div></div>> <mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
<div class="im">> <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>><br></div>> ------------------------------------------------------------------------<br>
<div>
<div></div>
<div class="h5">><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><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>