audiofx plugins work with gst-launch but not from code

Stefan Kost ensonic at hora-obscura.de
Wed Aug 31 05:45:16 PDT 2011


On 08/31/11 01:32, cleojones wrote:
> Working on my first program using gstreamer, on Maemo (nokia N900), and have
> the following problem:
>
> I can do this:
>
> gst-launch-0.10 autoaudiosrc ! audioconvert ! audioamplify amplification=2 !
> lame quality=9 ! shout2send ip=myip password=mypass mount=/mount port=myport
>
> But I the same pipeline, constructed in C, streams total silence from my
> program. I've tried created pipeline in C using gst_parse_launch as well as
> by creating each element manually, with the same problem. If I omit the
> audioamplify element, works fine (streams microphone input). As soon as I
> try to add audioamplify, silence (no matter what I set amplification to).  
first for simple gain - use volume element. In your case my guess (you
did not pointed us to the source code) is that you are doing
g_object_set(audioamplify,"amplification",2,NULL); instead of
g_object_set(audioamplify,"amplification",2.0f,NULL);

Stefan

> Eventually I want to run this through the audiocheblimit element as well
> (which works fine with gst-launch) but it also seems to have a problem when
> created from my own code.
>
> Any help much appreciated!
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/audiofx-plugins-work-with-gst-launch-but-not-from-code-tp3779942p3779942.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list