[gst-devel] level element in playbin2

J. Rios jrioslists at gmail.com
Wed Dec 30 13:37:43 CET 2009


This doenst work. How works but without level notifications is how i posted
before.

But I want the level be after the replay gain volume. So I can get the
signal level after the replay gain have done its gain adjust but not
influenced by the playbin volume.

I dont know how to do something like that

Thanks in advance
J.Rios

On Wed, Dec 30, 2009 at 8:44 AM, Arnout Vandecappelle <arnout at mind.be>wrote:

>  Without actually trying anything or knowing how the level element works,
> I'd say that at least you have to link your elements appropriately.  See
> below.
>
>  I'm surprised that the replaygain does work...
>
>  Regards,
>  Arnout
>
> On Monday 28 December 2009 13:34:11, J. Rios wrote:
> > Hello,
> >    Im tryign to incorporate the level element into a playbin2. This is
> >  the significant part of what I have tried
> >
> >     GstElement * outputsink;
> >     outputsink = gst_element_factory_make( "gconfaudiosink", "audio-sink"
> >  ); ...
> >     GstElement * m_Playbin = gst_element_factory_make( "playbin2", "play"
> >  ); ...
> >     GstElement * level = gst_element_factory_make( "level", "levelctrl"
> >  );
> >
> >     GstElement * replay = gst_element_factory_make( "rgvolume",
> >  "replaygain" );
> >
> >
>      gst_bin_add( GST_BIN( m_Playbin ), replay );
>     gst_bin_add( GST_BIN( m_Playbin ), outputsink );
>     gst_element_link_many ( level, replay, outputsink );
>     g_object_set( G_OBJECT( m_Playbin ), "audio-sink", level, NULL );
> >
> >     g_object_set( level, "message", true, NULL );
> >
> >     g_object_set( G_OBJECT( m_Playbin ), "flags", 0x02|0x10, NULL );
> >
> >     gst_bus_add_watch( gst_pipeline_get_bus( GST_PIPELINE( m_Playbin ) ),
> >             ( GstBusFunc ) gst_bus_async_callback, this );
>
> --
> Arnout Vandecappelle                               arnout at mind be
> Senior Embedded Software Architect                 +32-16-286540
> Essensium/Mind                                     http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR
> Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  31BB CF53 8660 6F88 345D  54CC A836 5879 20D7 CF43
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20091230/6bfee978/attachment.htm>


More information about the gstreamer-devel mailing list