[gst-devel] mp3 decoder

Felipe Contreras felipe.contreras at gmail.com
Wed Nov 19 18:48:11 CET 2008


On Wed, Nov 19, 2008 at 11:29 AM, Gnanasekar
<sk.gnanasekar at gdatech.co.in> wrote:
> Hi all,
>
>          I am working on developing plug-in for mp3.From the help of
> mad plugin i found some of the ideas.from this what i came to know is
> filesrc is getting an every 4K of data and passing it to chain function
> of mad plugin.Here in chain this 4K is processed in some manner and
> pushed to ( gst_pad_push (filter->srcpad, buf) ) source pad.
>
>          But the thing is that i dont want to use this mad .. i have to
> use my own plugin for mp3 decoder ... for this i found a decoder called
> libmad. which is having some decoding algorithm.
> But it is getting data as a single buffer of whole data.

Why don't you want to use the mad element?

>          My query is that
>         1. how to pass whole data from filesrc to plugin decoder?

You can use GstAdapter.

>         2. how to use libmad in my plugin ?

Check the mad element.

>         3. how to pass output of decoded data to alsasink or osssink ?

Read the plugin's writer guide, it explains that you need to do a pad push.

-- 
Felipe Contreras




More information about the gstreamer-devel mailing list