[gst-devel] level element in playbin2

Arnout Vandecappelle arnout at mind.be
Wed Dec 30 09:44:31 CET 2009


 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




More information about the gstreamer-devel mailing list