Removing silence from a stream

Mailing List SVR lists at svrinformatica.it
Sat Mar 5 21:46:23 UTC 2016


Hi,

I rebased my patch for removesilence against current master,

I tested with a pipeline like this:

filesrc location=/tmp/input.wav ! wavparse ! audioconvert ! 
audioresample ! removesilence remove=true squash=true ! wavenc ! 
filesink location=/tmp/output.wav

input.wav was 19 seconds long and contains about 5 seconds of silence, 
the generated output.wav is 14 seconds long and contain no silence,

you can find updated patch here:

https://bugzilla.gnome.org/show_bug.cgi?id=671954

Nicola

Il 02/03/2016 08:17, Sagar ha scritto:
> I guess I was assuming the functionality of level/cutter wrong, I thought
> output will be non-silence audio
>
> I used something like this /gst-launch filesrc location=audiowithsilence.mp4
> ! decodebin ! audioconvert !  cutter threshold-dB=-41  run-length=300000000
> !tee name=t ! queue ! fakesink t. ! queue ! valve name=valve ! audioconvert
> ! wavenc ! filesink output.wav/
>
> when ever the callback from cutter *above* is true I *drop</d> the value to
> *true* and when the above value is false i close it.
>
> but being a newbie I feel that there is not much example samples on the
> internet when it comes to gstreamer.
>
> Thanks for your help.
> Happy Coding....
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Removing-silence-from-a-stream-tp973199p4676127.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list