[gst-devel] raw audio stream

thiagoss thiagossantos at gmail.com
Sun Oct 18 01:51:24 CEST 2009


2009/10/17 Stanisław Pitucha <viraptor at gmail.com>

> Hi,
> I'm completely new to gstreamer... could someone tell me how to
> configure the pipeline to get audio from a specified (already open) fd
> assuming it doesn't have any header and is a raw 8kHz 16 bit signed 1
> channel stream?
> I know I should use the fdsrc, but how to force a format afterwards?
>
> From what I understood so far, I'll need:
> fdsrc fd=3 ! [XXX] ! audioconvert ! audioresample ! vader name=vad
> auto-threshold=true ....
>
> What goes in the [XXX] place?
>

You need a capsfilter and set its "caps" property. In gst-launch, you can
just put the caps under ""  and it will work.

Take a look at gst-inspect audioconvert and you'll see (at its pad
templates) plenty of raw audio caps examples.


>
> Thanks for any help
>
> --
> KTHXBYE,
>
> Stanisław Pitucha, Gradwell Voip Engineer
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Thiago Sousa Santos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20091017/c2c87d26/attachment.htm>


More information about the gstreamer-devel mailing list