IP cameras

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

IP cameras

chmario
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
Reply | Threaded
Open this post in threaded view
|

Re: IP cameras

Stefan Sauer
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
Reply | Threaded
Open this post in threaded view
|

Re: IP cameras

chmario
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
Reply | Threaded
Open this post in threaded view
|

Re: IP cameras

Thiago Sousa Santos-2


On Fri, Oct 8, 2010 at 2:12 PM, chmario <[hidden email]> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
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
Reply | Threaded
Open this post in threaded view
|

Re: IP cameras

chmario
It is working now thank you very much Thiago Sousa Santos
MChC