Custom element : could not send sticky events

adrien_sch adrien.schwartzentruber at gmail.com
Tue May 6 11:31:02 PDT 2014


I found my mistake, it was as you said in the caps log.

The caps negocation failed because of the caps property pixel-aspect-ratio
who wasn't shared by the two caps....

Thx for your response, and concerning your suggestion of using GstBaseSrc,
in my case, it's impossible because it's a filter who transform multiple
sink (on request).




On Tue, May 6, 2014 at 8:26 PM, Sebastian Dröge-3 [via GStreamer-devel] <
ml-node+s966125n4666786h29 at n4.nabble.com> wrote:

> On Di, 2014-05-06 at 05:01 -0700, adrien_sch wrote:
>
> > This is a part of the gst trace :
> >
> > 0:00:00.105010268  5737      0x26548f0 DEBUG          basetransform
> >
> gstbasetransform.c:741:gst_base_transform_query_caps:<videoconvert0:sink>
> > our template  video/x-raw, format=$
> > 0:00:00.105081606  5737      0x26548f0 DEBUG          basetransform
> >
> gstbasetransform.c:744:gst_base_transform_query_caps:<videoconvert0:sink>
> > intersected video/x-raw, height=(i$
> > 0:00:00.105102157  5737      0x26548f0 DEBUG          basetransform
> > gstbasetransform.c:768:gst_base_transform_query_caps:<videoconvert0>
> > returning  video/x-raw, height=(int)50,$
> > 0:00:00.105116935  5737      0x26548f0 DEBUG               GST_PADS
> > gstpad.c:3516:gst_pad_query:<videoconvert0:sink> sent query 0x2654b70
> > (caps), result 1
> > 0:00:00.105125936  5737      0x26548f0 DEBUG               GST_CAPS
> > gstutils.c:2768:gst_pad_query_caps:<videoconvert0:sink> query returned
> > video/x-raw, height=(int)50, width=(i$
> > 0:00:00.105138896  5737      0x26548f0 DEBUG          basetransform
> >
> gstbasetransform.c:1268:gst_base_transform_acceptcaps_default:<videoconvert0>
>
> > allowed caps video/x-raw, heig$
> > $sform video/x-raw, height=(int)50, width=(int)50, format=(string)BGRx,
> > framerate=(fraction)25/1 in anything we support
> > 0:00:00.105164184  5737      0x26548f0 DEBUG               GST_PADS
> > gstpad.c:3516:gst_pad_query:<videoconvert0:sink> sent query 0x2654b20
> > (accept-caps), result 1
> > 0:00:00.105172553  5737      0x26548f0 DEBUG                default
> > gstutils.c:2849:gst_pad_query_accept_caps:<videoconvert0:sink> query
> > returned 0
> >
> >
> > It's probably obvious for someone, but I doesn't understand why the
> > videoconvert element doesn't accept my caps.
> The log is either corrupted or you dropped some parts when copying it
> into the mail. The lines are incomplete and not including the
> interesting parts of the caps :)
>
> But it would also be useful to know what kind of element you're writing
> (a source element?) and what it is supposed to do and why, and what base
> class it is using. Sending buffers and stream-start event and other
> things only in PAUSED->PLAYING is a bit late though unless you're
> writing a live source. And in any case, if somehow possible you should
> use GstBaseSrc as base class for sources as a lot of the complicated
> things are handled in there already.
>
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4666786&i=0>
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> *signature.asc* (985 bytes) Download Attachment<http://gstreamer-devel.966125.n4.nabble.com/attachment/4666786/0/signature.asc>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://gstreamer-devel.966125.n4.nabble.com/Custom-element-could-not-send-sticky-events-tp4666741p4666786.html
>  To unsubscribe from Custom element : could not send sticky events, click
> here<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4666741&code=YWRyaWVuLnNjaHdhcnR6ZW50cnViZXJAZ21haWwuY29tfDQ2NjY3NDF8LTEzMzg3MjA4Nw==>
> .
> NAML<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Custom-element-could-not-send-sticky-events-tp4666741p4666788.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140506/a1cda13b/attachment.html>


More information about the gstreamer-devel mailing list