[gst-devel] newbie questions

Ronald S. Bultje rbultje at ronald.bitfreak.net
Tue May 24 03:02:54 CEST 2005


On Tue, 24 May 2005, Akos Maroy wrote:
> - difference / converting between audio/x-raw-int and audio/x-raw-float
> I see that some audio related plugins use x-raw-int, some use
> x-raw-float as the raw audio format. is there a plugin that would
> convert between these two formats?

audioconvert does exactly that.

> - how to write a play offset plugin?
> I'd need the following functionality: for an input, I'd either need to
> play only a portion, or I'd need to add extra silence before or after
> the input.
> for example, say I have a 60 second audio input, I need to play it as
> follows:
>     - only play from the 5th second up to the 45th second,
>       making it a 40 second input
>          +--------- 60 second input -----------------+
>             +---- 5th to 45th second ---------+
>     - start playing only 11seconds later, and after the 60secs, have
>       a 5second silence afterwards, making it a 76second input
>            +--------- 60 second input -----------------+
>   +-11sec-++--------- 60 second input -----------------++-5sec-+
> I wonder how this could be achieved with a plugin (or if there's already
> a plugin that achieves this functionality). why I'm wondering is that
> the chains channel data through the whole chain, but here a plugin
> making the above functionality available whould need to act to some
> extent without receiving input on its sink.

You could write a bin containing the actual elements, and which in itself
behaves like a source. This is genrerally called a 'manager', and is how
elements such as playbin (Totem) or applications such as Cupid act.


More information about the gstreamer-devel mailing list