[gst-devel] videoscale plugin: how to use?
t.i.m at zen.co.uk
Thu Nov 4 10:41:53 CET 2004
On Thursday 04 November 2004 16:24, Roel Schiphorst wrote:
> I am trying to write a simple application using the plugins v4lsrc
> (webcam), videoscale and xvimagesink plugin. When I use the gst-launch
> utility I am able to configure the videoscale plugin:
> gst-launch v4lsrc ! videoscale ! "video/x-raw-yuv",width=320,height=240 !
> But how can I configure the videoscale plugin in c-code? To me, it is a
> very basic question but I haven't found (working) examples in the
> documentation or mailing list to solve my problem.
Probably something along the lines of:
filtercaps = gst_caps_new_simple ("video/x-raw-yuv",
"width", G_TYPE_INT, 320,
"height", G_TYPE_INT, 240,
ret = gst_element_link_filtered (videoscale, xvsink, filtercaps);
if (ret == FALSE)
More information about the gstreamer-devel