Hi,
I want to add a property to a camera source element. This property contains five field. How can create this property with one property id and extract it?
For example, to add the ae_windows property to the v4l2src, the user can use the command
gst-launch v4l2src ae_windows=”width=49, height=60, centerx=20, centery=30, weight=3” ! xvimagesink.
to specify the ae_windows.
Thanks.
------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Administrator
|
You aren't adding properties to v4l2src, they already exist in the element and you are just setting values into them. See gst-inspect v4l2src for details.
You'd need a rewritten version of your element if you need your property to be settable and to have it actually do something. Wes |
In reply to this post by Hu, Gang A
Am 01.01.2011 04:52, schrieb Hu, Gang A:
> Hi, > I want to add a property to a camera source element. This property contains five > field. How can create this property with one property id and extract it? > For example, to add the ae_windows property to the v4l2src, the user can use the > command > gst-launch v4l2src ae_windows=”width=49, height=60, centerx=20, centery=30, > weight=3” ! xvimagesink. > to specify the ae_windows. While you could define your own gparamspec type, i would sugest you to simply add 4 properties instead. Please use a descriptive name so that people won't have to guess what "ae" stands for. Stefan > Thanks. > > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > > > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Stefan.
Thanks for your suggestion. I would like to keep the property list small. As composited property is not common in GStreamer, adding 5 property for the Windows settings maybe a good choice right now. Thanks. -----Original Message----- From: Stefan Kost [mailto:[hidden email]] Sent: Saturday, January 08, 2011 7:20 PM To: Discussion of the development of GStreamer Cc: Hu, Gang A Subject: Re: [gst-devel] How to add a complicate property to an element Am 01.01.2011 04:52, schrieb Hu, Gang A: > Hi, > I want to add a property to a camera source element. This property contains five > field. How can create this property with one property id and extract it? > For example, to add the ae_windows property to the v4l2src, the user can use the > command > gst-launch v4l2src ae_windows="width=49, height=60, centerx=20, centery=30, > weight=3" ! xvimagesink. > to specify the ae_windows. While you could define your own gparamspec type, i would sugest you to simply add 4 properties instead. Please use a descriptive name so that people won't have to guess what "ae" stands for. Stefan > Thanks. > > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > > > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |