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? 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
2009/10/17 Stanisław Pitucha <[hidden email]> Hi, 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.
-- Thiago Sousa Santos ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Stanisław Pitucha
On Sun, 2009-10-18 at 00:29 +0100, Stanisław Pitucha wrote:
> 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? The audioparse element from gst-plugins-bad should do the job here (and will also ensure correct chunking/buffer sizes). Cheers -Tim ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |