gstreamer-devel Digest, Vol 95, Issue 16

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gstreamer-devel Digest, Vol 95, Issue 16

Mario García
"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."

Hi, yes could be, but my thinking is, there are two different things: 
  • Element propierties: we change them with the g_object_set() funtion.
  • Element capabilities: we usually change them with a capsFilter, or like my case, with the  function  gst_app_src_caps (). 
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".  

Please, if I wrong, let me know. 

Thanks, Mario. 

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer-devel Digest, Vol 95, Issue 16

David Ing
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.

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.

On Thu, Dec 13, 2018, 6:09 AM Mario García <[hidden email] wrote:
"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."

Hi, yes could be, but my thinking is, there are two different things: 
  • Element propierties: we change them with the g_object_set() funtion.
  • Element capabilities: we usually change them with a capsFilter, or like my case, with the  function  gst_app_src_caps (). 
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".  

Please, if I wrong, let me know. 

Thanks, Mario. 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel