[gst-devel] Need info on how to set window size for gstremer.

Luciana Fujii Pontello luciana at holoscopio.com
Thu Aug 5 21:43:58 CEST 2010


On Wed, 2010-07-28 at 16:10 -0700, girish akasapu wrote:
> HI,
> 
> I have an app, which send samples of video to gstreamer. when the play
> back starts, gstreamer get the window size automatically based on the
> source.
> But I want to control it.
> 
> I tried 
> videoscale = gst_element_factory_make ("videoscale", "video_scale");
>     g_object_set (G_OBJECT (videoscale), "width", 500, NULL); 
>     g_object_set (G_OBJECT (videoscale), "height", 500, NULL); 
> 
> but I am getting 
>       * object class 'GstVideoScale' has not property named 'width'
>       * object class 'GstVideoScale' has not property named 'height'
> Need some help here. how do i set the width and height correctly, and
> is there any way to change the dimensions while the video is playing.

You can add a capsfilter after videoscale with the correct resolution.
videoscale will resize the video to fit the caps negotiated.

Regards,

Luciana Fujii




More information about the gstreamer-devel mailing list