<div dir="auto">The caps is a structure which defines the properties of data flowing out of the element on a src pad (in this case). It is not a property of the element itself. ANY means that these caps are unrestricted for the element, so you can make any caps structure at runtime and use it to describe the data coming from a src pad on your GstAppSrc. You can even follow standard conventions for video/* caps and put height snd width into the caps structure.<div dir="auto"><br></div><div dir="auto">A GObject property is just a property of the element itself. It is not directly related to any caps unless the element's programmer defines the property and a relationship to the caps. In this case that has not been done.</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 13, 2018, 6:09 AM Mario García <<a href="mailto:garciam4d@gmail.com">garciam4d@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">"While you may be able to define a width through setting the caps, you cannot set a GObject property called "width" because there is no such property for GstAppSrc. You cannot make up new GObject properties just because the caps are ANY."<div><br></div><div>Hi, yes could be, but my thinking is, there are two different things: </div><div><ul><li>Element propierties: we change them with the g_object_set() funtion.</li><li>Element capabilities: we usually change them with a capsFilter, or like my case, with the function
gst_app_src_caps (). </li></ul><div>Well, if it is true, in my code, I´m changing a cap not a propierty, so the error don´t make sense. And shoul be somethin like: "the element appsrc has not width capability". But he has "ANY". </div></div><div><br></div><div>Please, if I wrong, let me know. </div><div><br></div><div>Thanks, Mario. </div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>