<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV><BR>At&nbsp;2011-10-02&nbsp;06:58:18,Hippi90&nbsp;&lt;hippi90ub@gmail.com&gt;&nbsp;wrote:<BR>&gt;Hello!&nbsp;I&nbsp;am&nbsp;trying&nbsp;to&nbsp;learn&nbsp;this&nbsp;framework&nbsp;by&nbsp;tutorial&nbsp;on&nbsp;official&nbsp;site&nbsp;and&nbsp;i<BR>&gt;need&nbsp;some&nbsp;help.&nbsp;How&nbsp;can&nbsp;i&nbsp;retrieve&nbsp;metadata&nbsp;from&nbsp;videofile,&nbsp;like&nbsp;resolution,<BR>&gt;codec,&nbsp;bitrate&nbsp;etc.?&nbsp;If&nbsp;i&nbsp;understand&nbsp;right,&nbsp;i&nbsp;need&nbsp;to&nbsp;create&nbsp;such&nbsp;pipeline:<BR>&gt;filesrc-&gt;demuxer-&gt;fakesink,&nbsp;add&nbsp;"pad-added"&nbsp;signal&nbsp;handler&nbsp;to&nbsp;demuxer,&nbsp;link<BR>&gt;new&nbsp;pads&nbsp;with&nbsp;fakesink,&nbsp;get&nbsp;list&nbsp;of&nbsp;capabilities&nbsp;from&nbsp;them,&nbsp;and&nbsp;then&nbsp;i&nbsp;can<BR>&gt;get&nbsp;metadata&nbsp;from&nbsp;this&nbsp;caps,&nbsp;right?&nbsp;In&nbsp;tutorial&nbsp;to&nbsp;get&nbsp;properties&nbsp;from&nbsp;caps<BR>&gt;such&nbsp;code&nbsp;is&nbsp;used:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; use the gst-inspect-0.10 to show the caps.</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; You could use the <STRONG>gst_caps_to_string </STRONG>api to&nbsp;print the caps in the "pad-added" signal handler.</DIV></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>