~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/readme1.txt

  • Committer: Osmo Antero Maatta
  • Date: 2011-01-17 08:09:50 UTC
  • Revision ID: osmoma@gmail.com-20110117080950-4cbm2fnnsr0332jw
InitialĀ importĀ 17.jan.2011

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
start at 10:20:30 
 
2
start after 1 h 20 min 
 
3
 
 
4
stop if silence 10 sec 5 db
 
5
pause if 
 
6
 
 
7
dB:
 
8
http://gstreamer-devel.966125.n4.nabble.com/Express-volume-in-db-instead-of-percent-td991748.html
 
9
 
 
10
 
 
11
Level
 
12
fakesink
 
13
http://www.gstreamer.net/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-level.html
 
14
 
 
15
http://www.majorsilence.com/pygtk_audio_and_video_playback_gstreamer
 
16
 
 
17
http://www.gstreamer.net/data/doc/gstreamer/head/manual/html/section-typefinding.html
 
18
 
 
19
Silence
 
20
http://www.0d.be/2007/06/09/silence-detection/
 
21
 
 
22
def bus_event(bus, message, *args):
 
23
    peak = message.structure['peak'][0]
 
24
    if peak < -50:
 
25
        print 'silence on the cable! help!'
 
26
    return True
 
27
 
 
28
mainloop = gobject.MainLoop()
 
29
 
 
30
s = 'gnomevfssrc location="http://local-stream:8000/local.ogg" ! '\
 
31
      'oggdemux ! vorbisdec ! audioconvert ! '\
 
32
      'level message=true interval=5000000000 ! fakesink'
 
33
 
 
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)
 
38
mainloop.run()
 
39