Hi...<div><br></div><div> This is how  i  used the capsfilter</div><div><br></div><div><div>        vflt=gst_element_factory_make(&quot;capsfilter&quot;,&quot;imagefilter&quot;);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if(!vflt)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>g_print(&quot;\n Image Filter element could not be created \n&quot;);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>return 0;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>g_object_set(G_OBJECT(vflt),&quot;caps&quot;,gst_caps_new_simple(&quot;image/jpeg&quot;,</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span>&quot;width&quot;,G_TYPE_INT,320,</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>&quot;height&quot;,G_TYPE_INT,240,</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span>&quot;framerate&quot;,GST_TYPE_FRACTION,30,1,</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>NULL),NULL);</div></div><div>
I think this will help you...<br><br><div class="gmail_quote">On Tue, Jan 4, 2011 at 9:36 AM, Rohit Atri <span dir="ltr">&lt;<a href="mailto:rohitratri@gmail.com">rohitratri@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You will have to create a capsfilter element and set the relevant caps on it (with the frame size you require). Then follow it up with a video scale element. (...-&gt;decoder-&gt;capsfilter-&gt;videoscale-&gt;...-&gt;sink)<div>

Check out this doc here -</div><div><a href="http://pygstdocs.berlios.de/pygst-tutorial/capabilities.html" target="_blank">http://pygstdocs.berlios.de/pygst-tutorial/capabilities.html</a></div><div><br></div><div><a href="http://pygstdocs.berlios.de/pygst-tutorial/capabilities.html" target="_blank"></a>Its pygst but the concept is the same.</div>

<div><br></div><div><font color="#888888">Rohit</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Jan 4, 2011 at 2:36 AM, Nicolas <span dir="ltr">&lt;<a href="mailto:c.r.n.a@wanadoo.fr" target="_blank">c.r.n.a@wanadoo.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Lijin,<br>
<br>
Thanks for your reply.<br>
<br>
But how capsfilter can help me ?<br>
<br>
I only see in the doc:<br>
capsfilter — Pass data without modification, limiting formats<br>
<br>
Regards,<br>
<font color="#888888">Nicolas.<br>
</font><div><div></div><div><br>
------------------------------------------------------------------------------<br>
Learn how Oracle Real Application Clusters (RAC) One Node allows customers<br>
to consolidate database storage, standardize their database environment, and,<br>
should the need arise, upgrade to a full multi-node Oracle RAC database<br>
without downtime or disruption<br>
<a href="http://p.sf.net/sfu/oracle-sfdevnl" target="_blank">http://p.sf.net/sfu/oracle-sfdevnl</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div></div></div>
<br>------------------------------------------------------------------------------<br>
Learn how Oracle Real Application Clusters (RAC) One Node allows customers<br>
to consolidate database storage, standardize their database environment, and,<br>
should the need arise, upgrade to a full multi-node Oracle RAC database<br>
without downtime or disruption<br>
<a href="http://p.sf.net/sfu/oracle-sfdevnl" target="_blank">http://p.sf.net/sfu/oracle-sfdevnl</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>