a not working 'tee' pipeline

ibrahim suliman iss_kh at yahoo.com
Tue Nov 15 10:11:41 PST 2011


You are right Nathanael, they need to be linked manually. Thanks for your help. 
I have another issue: 
I want to start the stream with only two bins in the pipeline which contain:
 
gst_bin_add_many (GST_BIN (bin_1), source , colorspace, tee , queue_1 , queue_2, NULL);
gst_bin_add_many (GST_BIN (bin_2), flv_encoder, sink_1 , NULL);

and while streaming, I want to add the third one:
 
gst_bin_add_many (GST_BIN (bin_3), mpeg_encoder, sink_2 , NULL);

I tryed this and it is working for me but with setting the state of the pipeline to NULL as follows: 
bin_1_pad = gst_element_get_pad (bin_1, "src");
bin_3_pad = gst_element_get_pad (bin_3 , "sink");
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_bin_add (GST_BIN (pipeline), bin_3);
gst_pad_link (bin_1_pad, bin_3_pad );gst_element_set_state (pipeline, GST_STATE_PLAYING);  
is there other ways to do this without changing the state to NULL? 
Thank you 
Ibra




________________________________
From: Nathanael D. Noblet <nathanael at gnat.ca>
To: ibrahim suliman <iss_kh at yahoo.com>; Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Cc: "Edwards, Christopher" <c.edwards at lancaster.ac.uk>
Sent: Friday, 11 November 2011, 17:05
Subject: Re: a not working 'tee' pipeline

On 11/11/2011 08:06 AM, ibrahim suliman wrote:
>
> /* link the elements */
> gst_element_link_many (source, vrate, filter, conv, tee, queue_1 , NULL);
> gst_element_link (tee, queue_2 );
> gst_element_link (bin_1, bin_2 );
> gst_element_link (bin_1, bin_3 );

Tee's don't link that way. You have to request a pad and then link the 
pads manually.


Using google I found the following which has a C code example you can use.

http://delog.wordpress.com/2011/06/06/gstreamer-pipeline-with-tee/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111115/17461844/attachment.htm>


More information about the gstreamer-devel mailing list