appsink with cutter filter

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

appsink with cutter filter

Sagar
This post was updated on .
I want to pull buffer data (bytearray) from the audio stream without silence.

We can use appsink filter to pull audio stream buffer and cutter filter to rewind or seek the stream.
But how to link cutter with appsink, so that output of the cutter (trimmed audio stream) will be the input to the appsink to pull audio buffer data?

appsink example reference: appsink-src.c




Reply | Threaded
Open this post in threaded view
|

Re: appsink with cutter filter

Sebastian Dröge-3
On Di, 2016-03-15 at 05:20 -0700, Sagar wrote:
> I want to pull buffer data (bytearray) from the audio stream without silence.
>
> We can use appsink filter to pull audio stream buffer and cutter filter to
> rewind or seek the stream.
> But how to link cutter with appsink, so that output of the cutter (trimmed
> audio stream) will be the input to the appsink to pull audio buffer data?

What is the problem you're seeing when trying to link cutter and
appsink? You should be able to just link them together like any other
elements.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: appsink with cutter filter

Sagar
Actually there is no problem in linking cutter and appsink. I am able link them and also receiving the callbacks for same.

Using cutter and valve(to drop the silent audio buffers), receiving same size of audio buffer from appsink that means cutter and valve is not working here(with appsink) to remove the silence from media file.

Setting 'drop' property of valve to false/true when silence is detecting/not-detecting in cutter's callback respectively. It is working fine with multifilesink (creates .pcm files without silence).
The question is how does this exactly work for appsink?