<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
No , I am not .I am not going to do in the same way as mad used libmad
decoder.<br>
I was planned to dump the whole data (each 4K) in to a single buffer
and passing that <br>
buffer to decoder_init function of libmad which is doing decode
oparation and processing those stuffs.Because decoder_int takes whole
size of the source file(thats why i have been transfered all 4K's to a
single buffer).<br>
<br>
So my functionality is goes like this,<br>
<br>
filesrc -> passing 4K for each iteration <br>
Gbuf -> my own buffer for holding all 4K's in a single buffer<br>
decoder_init(&Gbuf) -> passing Gbuf to decoder_init (libmad
function)<br>
input ,output,error -> these are callback functions which is defined
in libmad.I am using all these call back functions altogether with this
decode of libmad.<br>
<br>
whether my flow is fine or any changes needed in the flow?<br>
<br>
Thanks and Regards,<br>
SK.Gnanasekar<br>
<br>
<br>
<br>
<br>
Edward Hervey wrote:
<blockquote cite="mid:1227094614.12788.4.camel@localhost" type="cite">
<pre wrap="">So...
Let me get this right. You want to create your own plugin using
'libmad' and for that you're looking at the code from the mad plugins
which ... already uses 'libmad'.
You realize you're trying to do the EXACT SAME THING as the mad
plugin ?
Edward
On Wed, 2008-11-19 at 14:59 +0530, Gnanasekar wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
My query is that
1. how to pass whole data from filesrc to plugin decoder?
2. how to use libmad in my plugin ?
3. how to pass output of decoded data to alsasink or osssink ?
Thanks and regards,
SK.Gnanasekar,
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
<a class="moz-txt-link-freetext" href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a>
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>