<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:10pt; font-weight:400; font-style:normal;">In data venerd́ 29 maggio 2009 17:01:34, MailingList SVR ha scritto:<br>
: &gt; Hi all,<br>
&gt; <br>
&gt; If i use gst-lauch I have the -v options that print caps to the console, I need something similar from my python program,<br>
&gt; <br>
&gt; my pipeline is built with gst_parse_lauch, so I have something similar to this:<br>
&gt; <br>
&gt; pipeline=gst.parse_launch(.....)<br>
&gt; <br>
&gt; how can I get caps for this pipeline?<br>
&gt; <br>
&gt; <br>
&gt; thanks<br>
&gt; Nicola<br>
&gt; <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Ok solved:<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>for i in pipeline.elements():<br>
        for j in i.src_pads():   <br>
            print dir(j)        <br>
            print j.get_caps()<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>