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