4
stop if silence 10 sec 5 db
8
http://gstreamer-devel.966125.n4.nabble.com/Express-volume-in-db-instead-of-percent-td991748.html
13
http://www.gstreamer.net/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-level.html
15
http://www.majorsilence.com/pygtk_audio_and_video_playback_gstreamer
17
http://www.gstreamer.net/data/doc/gstreamer/head/manual/html/section-typefinding.html
20
http://www.0d.be/2007/06/09/silence-detection/
22
def bus_event(bus, message, *args):
23
peak = message.structure['peak'][0]
25
print 'silence on the cable! help!'
28
mainloop = gobject.MainLoop()
30
s = 'gnomevfssrc location="http://local-stream:8000/local.ogg" ! '\
31
'oggdemux ! vorbisdec ! audioconvert ! '\
32
'level message=true interval=5000000000 ! fakesink'
34
pipeline = gst.parse_launch(s)
35
pipeline.get_bus().add_signal_watch()
36
i = pipeline.get_bus().connect('message::element', bus_event)
37
pipeline.set_state(gst.STATE_PLAYING)