Still can't get videomixer to do live video at full frame rate

Stefan Kost ensonic at hora-obscura.de
Thu Aug 18 15:09:56 PDT 2011


On 08/17/11 18:37, wally_bkg wrote:
> wally_bkg wrote:
>>
>> I'm having some trouble with the C syntax to get the videomixer sink pads
>> and set the ypos properties on them as done by the gst-launch.  Any
>> examples out there?
>>
>>
>
> I figured out something that seems to work, the docs say function is
> depreciated and should not be used, but its all I could get to work:
>
> // build up the pipeline
>         // container blank frame
> 	link_ok=gst_element_link_many(blank, filter960, mixer, NULL);
> 	if (!link_ok) {
> 		g_warning ("Failed to link: blank, filter960, mixer\n");
> 	}
>         // camera R
> 	link_ok=gst_element_link_many(source, colorspace, I420filter, scale, tover,
> mixer, NULL);
> 	if (!link_ok) {
> 		g_warning ("Failed to link: source, colorspace, I420filter, scale,
> mixer\n");
> 	}
>         // camera L
> 	link_ok=gst_element_link_many(source1, colorspace1, I420filter1, scale1,
> tover1, mixer, NULL);
> 	if (!link_ok) {
> 		g_warning ("Failed to link: source1, colorspace1, I420filter1, scale1,
> mixer\n");
> 	}
>         // mixer to xvimagesink
> 	link_ok=gst_element_link(mixer, sink);
> 	if (!link_ok) {
> 		g_warning ("Failed to link: mixer, sink\n");
> 	}
>         // shift a camera to bottom half of container frame
> 	mixsink1=gst_element_get_pad(mixer,"sink_1");
gst_element_get_static_pad

Stefan

> 	if(mixsink1){
> 		g_object_set (G_OBJECT (mixsink1), "ypos", 480, NULL);	 
> 	}else
> 		g_print("Can't get mixer sink_1 pad!");
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Still-can-t-get-videomixer-to-do-live-video-at-full-frame-rate-tp3748457p3750509.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list