How to get caps from a pipeline?

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

How to get caps from a pipeline?

Mailing List SVR
Hi all,


If i use gst-lauch I have the -v options that print caps to the console, I need something similar from my python program,


my pipeline is built with gst_parse_lauch, so I have something similar to this:


pipeline=gst.parse_launch(.....)


how can I get caps for this pipeline?



thanks
Nicola


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to get caps from a pipeline?

Mailing List SVR
In data venerdì 29 maggio 2009 17:01:34, MailingList SVR ha scritto:
: > Hi all,
>
> If i use gst-lauch I have the -v options that print caps to the console, I need something similar from my python program,
>
> my pipeline is built with gst_parse_lauch, so I have something similar to this:
>
> pipeline=gst.parse_launch(.....)
>
> how can I get caps for this pipeline?
>
>
> thanks
> Nicola
>


Ok solved:


for i in pipeline.elements():
for j in i.src_pads():
print dir(j)
print j.get_caps()



------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel