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

rakesh sharma rakesh2.sharma at aricent.com
Wed Jan 21 08:01:13 CET 2009


i am using the caps like this
src caps
src_template = gst_pad_template_new("src", GST_PAD_SRC, GST_PAD_ALWAYS,
                         gst_caps_from_string("audio/x-raw-int, "
                                          "rate = (int) [ 1, MAX ], "
                                          "endianness = (int) BYTE_ORDER, "
                                          "signed = (boolean) { true, false
}, "
                                          "channels = (int) { 1, 2}, "
                                          "width = (int) { 8, 16 }, "
                                         "depth = (int) { 8, 16 }"));

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...!!

-- 
View this message in context: http://www.nabble.com/How-to-register-Gstreamer-Plugin-with-Playbin-so-that-playbin-detect-my-plugins-tp21541362p21578039.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.





More information about the gstreamer-devel mailing list