[gst-devel] Need help for rezising video.

liJin lijinsyam at gmail.com
Tue Jan 4 07:00:03 CET 2011


 Hi...

 This is how  i  used the capsfilter

        vflt=gst_element_factory_make("capsfilter","imagefilter");
if(!vflt)
{
g_print("\n Image Filter element could not be created \n");
 return 0;
}
g_object_set(G_OBJECT(vflt),"caps",gst_caps_new_simple("image/jpeg",
"width",G_TYPE_INT,320,
"height",G_TYPE_INT,240,
"framerate",GST_TYPE_FRACTION,30,1,
NULL),NULL);
I think this will help you...

On Tue, Jan 4, 2011 at 9:36 AM, Rohit Atri <rohitratri at gmail.com> wrote:

> 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. (...->decoder->capsfilter->videoscale->...->sink)
> Check out this doc here -
> http://pygstdocs.berlios.de/pygst-tutorial/capabilities.html
>
> <http://pygstdocs.berlios.de/pygst-tutorial/capabilities.html>Its pygst
> but the concept is the same.
>
> Rohit
>
>
> On Tue, Jan 4, 2011 at 2:36 AM, Nicolas <c.r.n.a at wanadoo.fr> wrote:
>
>> Hi Lijin,
>>
>> Thanks for your reply.
>>
>> But how capsfilter can help me ?
>>
>> I only see in the doc:
>> capsfilter — Pass data without modification, limiting formats
>>
>> Regards,
>> Nicolas.
>>
>>
>> ------------------------------------------------------------------------------
>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
>> to consolidate database storage, standardize their database environment,
>> and,
>> should the need arise, upgrade to a full multi-node Oracle RAC database
>> without downtime or disruption
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110104/1438c94a/attachment.htm>


More information about the gstreamer-devel mailing list