[gst-devel] How to register Gstreamer Plugin with Playbin so that playbin detect my plugins

Tim-Philipp Müller t.i.m at zen.co.uk
Wed Jan 21 09:55:28 CET 2009


On Tue, 2009-01-20 at 23:01 -0800, rakesh sharma wrote:

> and sink caps
> klass->dec->sink_caps = gst_caps_from_string("audio/x-mp3-unknown, "
>                                           "outsize = (int) [ 1, MAX ], "
>                                           "layer = (int) {1,2,3}, "
>                                           "version = (int) {1,2,25}, "
>                                           "rate = (int) { 8000, 11025,
> 12000, 16000, 22050, 24000, 32000, 44100, 48000 }, "
>                                           "channels = (int) { 1, 2 }");
> sink_template = gst_pad_template_new("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
>                                         klass->dec->sink_caps);
> 
> If i am doing it GST_STATIC_CAPS ("ANY"));
> then its working.... might be the caps are not proper ....
> can u suggest me the proper caps for mp3 parser and the proper way...!!

Where did you get the audio/x-mp3-unknown caps from? If you want to be
compatible with other parts of GStreamer, like the typefinders, you
can't just make up new media types (unless you also register some
corresponding typefinder of your own as well).

Have a look at one of the existing mp3 decoders/parsers (mad,
mp3parse/mpegaudioparse) for the right caps.

Cheers
 -Tim






More information about the gstreamer-devel mailing list