a not working 'tee' pipeline

Nathanael D. Noblet nathanael at gnat.ca
Tue Nov 15 10:33:35 PST 2011


On 11/15/2011 11:11 AM, ibrahim suliman wrote:
> 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);

I don't fully get what you are trying to do, but NULL is for when you 
are done with the pipeline, try setting it to READY?

> 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
> <mailto:gstreamer-devel at lists.freedesktop.org>
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> _______________________________________________
> 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