[gst-devel] Caps problem when writing encoder/decoder

sudarshan bisht bisht.sudarshan at gmail.com
Mon May 17 18:49:34 CEST 2010


 Ok ,
As u have written earlier ;

Everything works fine if I use “ANY” or “audio/x-raw-int” in the source of
the encoder and sink of the decoder

But source of the encoder is the pad which generates compressed audio ( that
means caps would have mimetype "audio/xyz"  instead of "audio/x-raw-int" )
and sink of decoder will consume again compressed audio .

I think you are missing something here .

Please have a look at lame and mad plugins which are encoder and decoder
respectively for mp3 audio format .


pad details of lame ;


name
sink

direction
sink

presence
always

details
audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16,
depth=(int)16, rate=(int){ 8000, 11025, 12000, 16000, 22050, 24000, 32000,
44100, 48000 }, channels=(int)[ 1, 2 ]

name
src

direction
source

presence
always

details
audio/mpeg, mpegversion=(int)1, layer=(int)3, rate=(int){ 8000, 11025,
12000, 16000, 22050, 24000, 32000, 44100, 48000 }, channels=(int)[ 1, 2 ]



 pad details of mad ;


name
src

direction
source

presence
always

details
audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32,
depth=(int)32, rate=(int){ 8000, 11025, 12000, 16000, 22050, 24000, 32000,
44100, 48000 }, channels=(int)[ 1, 2 ]

name
sink

direction
sink

presence
always

details
audio/mpeg, mpegversion=(int)1, layer=(int)[ 1, 3 ], rate=(int){ 8000,
11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 }, channels=(int)[ 1,
2 ]


On Mon, May 17, 2010 at 9:06 PM, Hunterwood <markus.jagerskogh at imentum.se>
wrote:
>
> Hi Sudarshan,
>
> I am writing both the encoder and the decoder. The goal is to sent raw
audio
> into the encoder, pass the compressed audio over a network and then decod
> the audio back into raw and pass it on to another sink.
>
> Since the audio is compressed while transmitted over the network I need
> another MIME-type for it.
>
> Markus
> --
> View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/Caps-problem-when-writing-encoder-decoder-tp2219436p2219822.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>
------------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Regards,

Sudarshan Bisht
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100517/c2dfad30/attachment.htm>


More information about the gstreamer-devel mailing list