[gst-devel] IP cameras

thiagossantos at gmail.com thiagossantos at gmail.com
Fri Oct 8 19:24:23 CEST 2010


On Fri, Oct 8, 2010 at 2:12 PM, chmario <chmario at hotmail.com> wrote:

>
> 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);
>

Try using "gst_pad_get_negotiated_caps", that will give the current
negotiated caps in the pad.


>
> 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
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/IP-cameras-tp2954912p2968730.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> 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
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Thiago Sousa Santos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101008/57907254/attachment.htm>


More information about the gstreamer-devel mailing list