[Bug 597822] Add removesilence plugin

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Jun 26 10:16:31 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=597822
  GStreamer | gst-plugins-bad | git

--- Comment #22 from tiagokatcipis at gmail.com 2011-06-26 17:16:29 UTC ---
> Note that this doesn't result in continous timestamps/durations. You're just dropping the buffer here while (from what you've written before) you want the next buffer to replace it. In that case you have to adjust all following timestamps after dropping the first buffer by the accumulated duration of all
buffers.

It seemed to me that this behaviour is more appropriate, it is up to the
elements downstream in the pipeline to decide what to do with the gaps. For
example, on the application I'm working the end of the pipeline has an appsink,
with sync=false, so i just ignore the gaps generated by the removesilence
element and stream the audio without silence periods. But if you link the
removesilence element to the pulsesink, the pulsesink element will replace the
gaps with silence, which would be useless in this case.

Another example would be the following:

gst-launch filesrc location=audio.wav ! decodebin2 ! removesilence remove=true
! wavenc ! filesink location=no_silence.wav

The no_silence.wav will have no silence periods on it. But if you execute the
following:

gst-launch filesrc location=audio.wav ! decodebin2 ! removesilence remove=true
! wavenc ! pulsesink

the pulsesink element will fill the gaps with silence.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gstreamer-bugs mailing list