[gst-devel] How to get caps from a pipeline?

MailingList SVR lists at svrinformatica.it
Fri May 29 17:54:00 CEST 2009


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()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090529/a0fadaf3/attachment.htm>


More information about the gstreamer-devel mailing list