cutter

Analyses the audio signal for periods of silence. The start and end of silence is signalled by bus messages named cutter.

The message's structure contains two fields:

  • GstClockTime timestamp: the timestamp of the buffer that triggered the message.
  • gboolean above: TRUE for begin of silence and FALSE for end of silence.

Example launch line

 gst-launch-1.0 -m filesrc location=foo.ogg ! decodebin ! audioconvert ! cutter ! autoaudiosink

Show cut messages.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──cutter

Factory details

Authors: – Thomas Vander Stichele

Classification:Filter/Editor/Audio

Rank – none

Plugin – gstcutter

Package – GStreamer Good Plug-ins git

Pad Templates

sink

audio/x-raw:
         format: { S8, S16LE }
           rate: [ 1, 2147483647 ]
       channels: [ 1, 2147483647 ]
         layout: interleaved

Presencealways

Directionsink


src

audio/x-raw:
         format: { S8, S16LE }
           rate: [ 1, 2147483647 ]
       channels: [ 1, 2147483647 ]
         layout: interleaved

Presencealways

Directionsrc


Properties

leaky

“leaky” gboolean

do we leak buffers when below threshold ?

Flags : Read / Write

Default value : false


name

“name” gchararray

The name of the object

Flags : Read / Write / Construct

Default value : NULL


parent

“parent” GstObject *

The parent of the object

Flags : Read / Write


pre-length

“pre-length” guint64

Length of pre-recording buffer (in nanoseconds)

Flags : Read / Write

Default value : 200000000


run-length

“run-length” guint64

Length of drop below threshold before cut_stop (in nanoseconds)

Flags : Read / Write

Default value : 500000000


threshold

“threshold” gdouble

Volume threshold before trigger

Flags : Read / Write

Default value : 0.1


threshold-dB

“threshold-dB” gdouble

Volume threshold before trigger (in dB)

Flags : Read / Write

Default value : -46.0517


The results of the search are