[gst-devel] dynamic pipeline questions

René Stadler mail at renestadler.de
Sat Nov 25 18:47:55 CET 2006

Am Samstag, den 25.11.2006, 11:05 -0600 schrieb John Stritch:
> On Sat, 2006-11-25 at 04:48 +0000, Pavan Kumar Patale wrote: 
> > Will try to answer your first questioin
> > 
> > You can add a bus_sync_handler to the pipeline and look for the
> > GST_MESSAGE_STATE_CHANGED in the handler.
> > The message->src will give the source element which has
> > generated this message.  GST_ELEMENT_STATE(message->src) will give
> > you the current state of the element.
> > 
> > BR, Pavan.
> I tried this and see the state transitions.  But they are not
> indicating silence on the line.  I want to know when there is sound or
> not, like a voice-activated recorder.
> John 

The cutter element from gst-plugins-good probably does what you want.
It analyzes raw audio data and posts messages on the bus if there is a
transition from silence to non-silence and vice-versa.

  René Stadler

More information about the gstreamer-devel mailing list