[gst-devel] Problem in pad negotiation

sudarshan bisht bisht.sudarshan at gmail.com
Tue Dec 30 11:54:26 CET 2008


Hi vikas ,,

             Sorry ,,  I want to the caps  know at src pad ,, and tell me
the pipeline (elements) you are using  .

On Tue, Dec 30, 2008 at 4:07 PM, Vikas Patel <Vikas.Patel at imgtec.com> wrote:

>  Hi sudarshan,
>
>
>
>  I get this kind of caps at sink pad
>
>
>
> Pad Templates:
>
>   SINK template: 'sink'
>
>     Availability: Always
>
>     Capabilities:
>
>       video/mpeg
>
>             mpegversion: 4
>
>            systemstream: false
>
>                   width: [ 16, 4096 ]
>
>                  height: [ 16, 4096 ]
>
>               framerate: [ 1, 60 ]
>
>
>
>
>
> Regards
>
> Vikas
>
>
>  ------------------------------
>
> *From:* sudarshan bisht [mailto:bisht.sudarshan at gmail.com]
> *Sent:* Tuesday, December 30, 2008 3:55 PM
> *To:* Discussion of the development of GStreamer
> *Subject:* Re: [gst-devel] Problem in pad negotiation
>
>
>
> Hi Vikas ,
>
>
>
>               Can u tell me when you do gst-inspect ur-decoder-plugin ,
> what caps u get at sink pad ?
>
> On Tue, Dec 30, 2008 at 3:24 PM, Vikas Patel <Vikas.Patel at imgtec.com>
> wrote:
>
> Hi,
>
> I'm developing a Gstreamer plugin for video decoder.
>
> But when I try to create a complete pipeline by connecting with
> ffmpegcolorscale plugin it throws a error by saying that…
>
>
>
> *"pad returned caps ANY which are not a real subset of its template caps
> video/x-raw-yuv, format=(fourcc){ YV12, I420, Y42B }, width=(int)[ 16, 4096
> ], height=(int)[ 16, 4096 ], framerate=(int)[ 1, 60 ]"*
>
>
>
>
>
> Template for sink is like as
>
>
>
> static GstPadTemplate *src_templ (void)
>
> {
>
>     static GstPadTemplate *templ = NULL;
>
>
>
>     if (!templ)
>
>     {
>
>         GstCaps *caps;
>
>         GstStructure *structure;
>
>         GValue list = { 0 } ,fmt = { 0};
>
>         char *fmts[] = { "YV12", "I420", "Y42B", NULL };
>
>         guint n;
>
>
>
>         caps = gst_caps_new_simple ("video/x-raw-yuv",
>
>                                     "format", GST_TYPE_FOURCC,
>
>                                         GST_MAKE_FOURCC ('I', '4', '2',
> '0'),
>
>                                     "width", GST_TYPE_INT_RANGE, 16, 4096,
>
>                                     "height", GST_TYPE_INT_RANGE, 16, 4096,
>
>
>                                     "framerate", GST_TYPE_INT_RANGE,  1,
> 60,
>
>                                     NULL);
>
>
>
>         structure = gst_caps_get_structure (caps, 0);
>
>
>
>         g_value_init (&list, GST_TYPE_LIST);
>
>         g_value_init (&fmt, GST_TYPE_FOURCC);
>
>         for (n = 0; fmts[n] != NULL; n++)
>
>         {
>
>             gst_value_set_fourcc (&fmt, GST_STR_FOURCC (fmts[n]));
>
>             gst_value_list_append_value (&list, &fmt);
>
>         }
>
>         gst_structure_set_value (structure, "format", &list);
>
>         g_value_unset (&list);
>
>         g_value_unset (&fmt);
>
>
>
>         templ = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
> caps);
>
>     }
>
>   return templ;
>
> }
>
>
>
>
>
> Please let me know where I am wrong.
>
>
>
> Regards
>
> Vikas
>
>
>
>
>
>
> -
> This message is subject to Imagination Technologies' e-mail terms:
> http://www.imgtec.com/e-mail.htm
> -
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
>
>
> -
> This message is subject to Imagination Technologies' e-mail terms:
> http://www.imgtec.com/e-mail.htm
> -
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> 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/20081230/ef3e4eef/attachment.htm>


More information about the gstreamer-devel mailing list