This post was updated on .
I am working with IP cameras I was wondering which one is the best plug-in for this task.
Currently I am using uridecodebin but I can not access the width and height capabilities. Knowing explicitly the dimension of the image is very important for my application. Does any one knows how to work with IP cameras?
MChC
|
On 04.10.2010 22:14, chmario wrote:
> I am working with IP cameras I was wondering which one is the best plug-in > for this task. > Currently I am using uridecodebin but I can not access the width and height > capabilities. Knowing explicitly the dimension of the image is very > important for my application. > > Does any one knows how to work with IP cameras? > > ----- > MChC > where do you try to access them? width and heigh will be available on the uridecodebins sink pad caps. Stefan ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
I am using:
GstCaps *videoCaps = gst_pad_get_caps(pad); GstStructure *str = gst_caps_get_structure (videoCaps, i); gst_structure_get_int (str, "width", &width); But seams that there is no width property of the type int. So I use gst_structure_n_fields (str), gst_structure_nth_field_name(str, j) to inspect the fields, I found: field0: width type: GstIntRange field1: height type: GstIntRange field2: framerate type: GstFractionRange field3: format type: GstFourcc There is a width and hight but of the type GstIntRange, so seams that is not set to a specific value.
MChC
|
On Fri, Oct 8, 2010 at 2:12 PM, chmario <[hidden email]> wrote:
Try using "gst_pad_get_negotiated_caps", that will give the current negotiated caps in the pad.
-- Thiago Sousa Santos ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |