pygobject / pgi

[Unmaintained: Use PyGObject instead] GTK+ / GObject Introspection Bindings for PyPy.
GNU Lesser General Public License v2.1
74 stars 16 forks source link

Unable to set nvstreammux properties #55

Open Rakhi-Pundir opened 3 months ago

Rakhi-Pundir commented 3 months ago

TypeError Traceback (most recent call last) /root/deepstream_python_apps/notebooks/deepstream_launchpad.ipynb Cell 27 line 1 12 sys.exit(1) # Exit the script if streammux creation failed 14 # Set streammux properties ---> 15 streammux.set_property('width', 1920) 16 streammux.set_property('height', 1080) 17 streammux.set_property('batch-size', 4) # Example value for number_sources

File ~/anaconda3/envs/gst/lib/python3.8/site-packages/pgi/obj.py:75, in Object.set_property(self, name, value) 69 """set_property(property_name: str, value: object) 70 71 Set property property_name to value. 72 """ 74 if not hasattr(self.props, name): ---> 75 raise TypeError("Unknown property: %r" % name) 76 setattr(self.props, name, value)

TypeError: Unknown property: 'width'