Re: how do I convert this pipeline to gstreamer C language?(videomixer name=mix)
zhang007z
zhang007z at gmail.com
Fri Dec 25 07:20:59 PST 2015
I mean that using c language code like below:
//----------------------------------------------------------------//
pipeline = gst_pipeline_new ("pipeline");
appsrc = gst_element_factory_make ("appsrc", "source");
conv = gst_element_factory_make ("videoconvert", "conv");
videosink = gst_element_factory_make ("xvimagesink", "videosink");
/* setup */
g_object_set (G_OBJECT (appsrc), "caps",
gst_caps_new_simple ("video/x-raw",
"format", G_TYPE_STRING, "RGB16",
"width", G_TYPE_INT, 384,
"height", G_TYPE_INT, 288,
"framerate", GST_TYPE_FRACTION, 0, 1,
NULL), NULL);
gst_bin_add_many (GST_BIN (pipeline), appsrc, conv, videosink, NULL);
gst_element_link_many (appsrc, conv, videosink, NULL)
//----------------------------------------------------------------//
by above code snippet , you can see some functions such as
gst_element_factory_make,g_object_set and gst_element_link. I think use
these functions for my target ,however only using gst_parse_launch function
implementate this C code process ,beacause this situation is very easy,in
fact gst_parse_launch parse pipeline command parameter as same as excuting
pipeline command in terminal window.
Anybody have any idea for me, thank you in advancefor explaining this issue
for me
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/how-do-I-convert-this-pipeline-to-gstreamer-C-language-videomixer-name-mix-tp4675020p4675027.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list