Writable parameter of an element is considered as not writable in GstControlBinding object

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

Writable parameter of an element is considered as not writable in GstControlBinding object

sk_gst
Hello,

I am trying to set certain properties for an element, more of trying to
control the element properties at runtime. Here is the source code, as
described int he previous  post
<http://gstreamer-devel.966125.n4.nabble.com/GStreamer-CRITICAL-gst-object-add-control-binding-assertion-binding-gt-pspec-failed-td4688007.html>  
.

Here are the additional debug messages that I came across :
0:00:00.174410648 [336m 8309[00m       0xd1b750 [37mTRACE  [00m
[00;01;31;44m     GST_REFCOUNTING
gstobject.c:207:gst_object_init:<GstObject@0x10b0020>[00m 0x10b0020 new
0:00:00.174697421 [336m 8309[00m       0xd1b750 [37mTRACE  [00m
[00;01;31;44m     GST_REFCOUNTING
gstobject.c:207:gst_object_init:<GstObject@0x10b20f0>[00m 0x10b20f0 new
0:00:00.174716708 [336m 8309[00m       0xd1b750 [36mINFO   [00m [00m  
gstcontrolbinding
gstcontrolbinding.c:144:gst_control_binding_constructor:<gltrnsfrm>[00m
trying to put property 'rotation-x' under control
0:00:00.174723927 [336m 8309[00m       0xd1b750 [37mDEBUG  [00m [00m  
gstcontrolbinding
gstcontrolbinding.c:150:gst_control_binding_constructor:<gltrnsfrm>[00m  
psec->flags : 0x000000e3
0:00:00.174729088 [336m 8309[00m       0xd1b750 [33;01mWARN   [00m [00m  
gstcontrolbinding
gstcontrolbinding.c:161:gst_control_binding_constructor:<gltrnsfrm>[00m
property 'rotation-x' on class 'GstGLTransformation' needs to be writeable,
controlable and not construct_only
0:00:00.174733951 [336m 8309[00m       0xd1b750 [37mTRACE  [00m
[00;01;31;44m     GST_REFCOUNTING
gstobject.c:264:gst_object_unref:<gltrnsfrm>[00m 0x10a60e0 unref 4->3

(python3:8309): GStreamer-CRITICAL **: 10:37:00.609:
gst_object_add_control_binding: assertion 'binding->pspec' failed


Now as per the man page of 'gltransformation', the element properties
rotation-x/y/z are readable and writeable.

 #gst-inspect-1.0 gltransformation
  translation-x       : Translates the video at the X-Axis, in universal
[0-1] coordinate.
                        flags: readable, writable
                        Float. Range:   -3,402823e+38 -    3,402823e+38
Default:               0
  translation-y       : Translates the video at the Y-Axis, in universal
[0-1] coordinate.
                        flags: readable, writable
                        Float. Range:   -3,402823e+38 -    3,402823e+38
Default:               0
  translation-z       : Translates the video at the Z-Axis, in universal
[0-1] coordinate.
                        flags: readable, writable
                        Float. Range:   -3,402823e+38 -    3,402823e+38
Default:               0
  rotation-x          : Rotates the video around the X-Axis in degrees.
                        flags: readable, writable
                        Float. Range:   -3,402823e+38 -    3,402823e+38
Default:               0
  rotation-y          : Rotates the video around the Y-Axis in degrees.
                        flags: readable, writable
                        Float. Range:   -3,402823e+38 -    3,402823e+38
Default:               0
  rotation-z          : Rotates the video around the Z-Axis in degrees.
                        flags: readable, writable
                        Float. Range:   -3,402823e+38 -    3,402823e+38
Default:

 However, in this case the property is considered as not writable. here is
the source code for the  gstcontrolbinding
<https://github.com/ford-prefect/gstreamer/blob/master/gst/gstcontrolbinding.c>  
.  
Does anyone know why this is causing an issue in this case.




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

Re: Writable parameter of an element is considered as not writable in GstControlBinding object

Tim Müller
On Tue, 2018-08-07 at 04:51 -0500, vk_gst wrote:

Hi,

> I am trying to set certain properties for an element, more of trying
> to control the element properties at runtime. Here is the source
> code, as described int he previous  post (snip)
>
> gstcontrolbinding.c:161:gst_control_binding_constructor:<gltrnsfrm>
> property 'rotation-x' on class 'GstGLTransformation' needs to be
> writeable, controlable and not construct_only
>
> Now as per the man page of 'gltransformation', the element properties
> rotation-x/y/z are readable and writeable.

The problem is that the properties are not marked as "controllable",
compare to the properties on "gst-inspect-1.0 volume".

This is something that would need fixing in the element implementation.

Cheers
-Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference! 25-26 October 2018 in Edinburgh,
Scotland

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

Re: Writable parameter of an element is considered as not writable in GstControlBinding object

sk_gst
That explains this. Thanks.

As a work around, I tried setting the element property rotation-x/y/z
continously.  However, this results in a choppy video, where the last frames
are also displayed along with the current frame.
Here are the images :

Image 1 <https://i.imgur.com/m8NM141.png>  
Image 2 <https://i.imgur.com/gJY30xY.png>  
Image 3 <https://i.imgur.com/NbuqkO4.png>  

I have tried giving timeouts, but it does not work.
Could this be avoided ?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel