gstreamr-bad-plugin: remove silence adding "pre-length"

Mailing List SVR lists at svrinformatica.it
Thu Mar 24 10:31:45 UTC 2016


Il 24/03/2016 10:51, Sagar ha scritto:
> Mailing List SVR wrote
>> Il 24/03/2016 09:59, Sagar ha scritto:
>>> Mailing List SVR wrote
>>>> Il 24/03/2016 08:03, Sagar ha scritto:
>>>>> Hi,
>>>>>
>>>>> I am currently working on "removesilence" bad plugin, I have applied
>>>>> path
>>>>> provided by Nicola  https://bugzilla.gnome.org/show_bug.cgi?id=671954
>>>>> <https://bugzilla.gnome.org/show_bug.cgi?id=671954>
>>>>>
>>>>> using Nicola's patch we get the audio buffer as message callbacks, but
>>>>> I
>>>>> have noticed that for some small non-silent buffers to we are getting
>>>>> bus
>>>>> callback.
>>>>>
>>>>> I was thinking of adding one more property called *"pre-length"*
>>>>> inspired
>>>>> bu
>>>>> *cutter* element.
>>>> not sure if I have correctly understand what you mean, after applying my
>>>> patch you can specify:
>>>>
>>>> - My concern is that the non silent buffer which we receive are
>>>> sometimes
>>>> noise, I am using pulsesrc as an input and if there is background noise
>>>> even for fraction of second I get
>>> /
>>>> silence_finished
>>> /
>>>>    message
>>>>
>>>>
>>>> - minimum-silence-buffers or minimum-silence-time before detect silence
>>>> - get notified on the bus when silence is detected/not detected
>>>> - retimestamp when silence is detected/removed
>>>>
>>>> additionally you can specify the detection hysteresis too, this value is
>>>> applyed before minimum-silence-buffers/minimum-silence-time
>>>>
>>>> - can you please explain what
>>> *
>>>> detection hysteresis
>>> *
>>>>    mean in simple words, I didnt understand what it is.
>>
>> seems what you need, try to increase hysteresis,
>>
>> when a non silence sample is detected (based on the dB threshold) if
>> consecutive non silence samples exceed the hysteresis then silence is
>> considered finished,
>>
>> Nicola
>>
>>
>> - Thanks,
>>   I increased hysteresis it worked like a charm on prerecored videos and
>> audios

ok well!

>>   but if I pass source as pulse src there is a lot on noise in the
>> output...

you can experiment changhing the decibel threshold, now you know how to 
covert from decibel to hex ;-)

as said in another mail if useful I can make a property for this too,

Nicola


>>   I will try using it inside kurento server where i intend to use
>> it.
>>
>>>> is the plugin detecting silence for non silence buffers? Can you please
>>>> share an audio sample and indicate the pipeline you used, what you
>>>> expect and what you get?
>>>>
>>>> plugin is not detecting silence for non silence buffer but when there is
>>>> a
>>>> small amount of noise I am getting silence_finished message which is
>>>> correct BUT I want to ignore this non-silent buffer as it is noise.
>>>>
>>>> thanks
>>>> Nicola
>>>>
>>>>> I want to know what all scenarios should be considered and how can I
>>>>> make
>>>>> sure to properly add "pre-length" property
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://gstreamer-devel.966125.n4.nabble.com/gstreamr-bad-plugin-remove-silence-adding-pre-length-tp4676522.html
>>>>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>>>>> _______________________________________________
>>>>> gstreamer-devel mailing list
>>>>>
>>>> gstreamer-devel at .freedesktop
>>>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>> _______________________________________________
>>>> gstreamer-devel mailing list
>>>> gstreamer-devel at .freedesktop
>>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://gstreamer-devel.966125.n4.nabble.com/gstreamr-bad-plugin-remove-silence-adding-pre-length-tp4676522p4676525.html
>>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>>
>> gstreamer-devel at .freedesktop
>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at .freedesktop
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gstreamr-bad-plugin-remove-silence-adding-pre-length-tp4676522p4676527.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