<br><br><div class="gmail_quote">2009/10/17 Stanisław Pitucha <span dir="ltr">&lt;<a href="mailto:viraptor@gmail.com">viraptor@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br>
I&#39;m completely new to gstreamer... could someone tell me how to<br>
configure the pipeline to get audio from a specified (already open) fd<br>
assuming it doesn&#39;t have any header and is a raw 8kHz 16 bit signed 1<br>
channel stream?<br>
I know I should use the fdsrc, but how to force a format afterwards?<br>
<br>
>From what I understood so far, I&#39;ll need:<br>
fdsrc fd=3 ! [XXX] ! audioconvert ! audioresample ! vader name=vad<br>
auto-threshold=true ....<br>
<br>
What goes in the [XXX] place?<br></blockquote><div><br>You need a capsfilter and set its &quot;caps&quot; property. In gst-launch, you can just put the caps under &quot;&quot;  and it will work.<br><br>Take a look at gst-inspect audioconvert and you&#39;ll see (at its pad templates) plenty of raw audio caps examples.<br>

 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks for any help<br>
<br>
--<br>
KTHXBYE,<br>
<br>
Stanisław Pitucha, Gradwell Voip Engineer<br>
<br>
------------------------------------------------------------------------------<br>
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!<br>
<a href="http://p.sf.net/sfu/devconference" target="_blank">http://p.sf.net/sfu/devconference</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"><br>-- <br>Thiago Sousa Santos<br>