[gst-devel] videoscale plugin: how to use?
Tim Müller
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:
Hi Roel,
> 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 !
> xvimagesink
>
> 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:
GstCaps *filtercaps;
gboolean ret;
filtercaps = gst_caps_new_simple ("video/x-raw-yuv",
"width", G_TYPE_INT, 320,
"height", G_TYPE_INT, 240,
NULL);
ret = gst_element_link_filtered (videoscale, xvsink, filtercaps);
gst_caps_free (filtercaps);
if (ret == FALSE)
goto error_handling;
Cheers
-Tim
More information about the gstreamer-devel
mailing list